[yocto] "do_patch" error when I build Tizen

Dorian VEGARA dorian.vegara at gmail.com
Thu Feb 19 08:27:22 PST 2015


Hello to everyone,

I try to build the image "tizen-common-core-image-minimal-dev" thanks
to Yocto. But I encounter an error when I execute the bitbake command
:

ERROR: Function failed: do_prep (log file is located at
/home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/temp/log.do_patch.18439)
ERROR: Logfile of failure stored in:
/home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/temp/log.do_patch.18439
Log data follows : [...] (I will put it latter in this message, and
inside an attachment)
ERROR: Task 95 (virtual:native:/home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm_git.bb,
do_patch) failed with exit code '1'

The logs are contained in the attached text file, and farther in this mail.

I followed these steps to try to build the image :
1. git clone git://review.tizen.org/scm/bb/tizen-distro
2. cd tizen-distro; git checkout tizen;
build_directory_name=build-common; source
./tizen-common-init-build-env $build_directory_name
3. I didn't modify the [...]/conf/local.conf file because I don't need it.
4. Then, I typed : tizen-common-core-image-minimal-dev

Why is it bugging according to you ?
Thanks a lot.

Best regards,
Dorian Vegara.


LOGS (also contained in the attachment) :
DEBUG: Executing python function do_patch
DEBUG: Executing python function patch_do_patch
DEBUG: Searching for disable_debuginfo.patch in paths:
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
DEBUG: Searching for disable_shortcircuited.patch in paths:
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
DEBUG: Searching for fix_libdir.patch in paths:
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
DEBUG: Searching for rpm-scriptetexechelp.patch in paths:
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
DEBUG: Searching for fix-python-rpm-conf.patch in paths:
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
DEBUG: Searching for rpmmodule.c.patch in paths:
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
DEBUG: Searching for python-rpm.Makefile.am.patch in paths:
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
DEBUG: Searching for pythondeps.sh in paths:
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/tizen
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/x86-64
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm-4.11.0.1/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/rpm/
    /home/dvegara/Documents/tizen-distro/meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/
NOTE: Applying patch 'disable_debuginfo.patch'
(../meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/disable_debuginfo.patch)
NOTE: Applying patch 'disable_shortcircuited.patch'
(../meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/disable_shortcircuited.patch)
NOTE: Applying patch 'fix_libdir.patch'
(../meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/fix_libdir.patch)
NOTE: Applying patch 'rpm-scriptetexechelp.patch'
(../meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/rpm-scriptetexechelp.patch)
NOTE: Applying patch 'fix-python-rpm-conf.patch'
(../meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/fix-python-rpm-conf.patch)
NOTE: Applying patch 'rpmmodule.c.patch'
(../meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/rpmmodule.c.patch)
NOTE: Applying patch 'python-rpm.Makefile.am.patch'
(../meta-tizen/meta-tizen-common-base/recipes-devtools/rpm/files/python-rpm.Makefile.am.patch)
DEBUG: Python function patch_do_patch finished
DEBUG: Executing shell function do_prep
+ cd /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git

+ do_prep

+ cd /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git

+ chmod -Rf a+rX,u+w,g-w,o-w
/home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git

+ cp /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git/packaging/rpm.manifest
.

+ rm -rf sqlite

+ tar xjf /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git/packaging/db-4.8.30.tar.bz2

+ ln -sfn db-4.8.30 db

+ chmod -R u+w db/LICENSE db/README db/btree db/build_brew
db/build_s60 db/build_unix db/build_vxworks db/build_wince
db/build_windows db/clib db/common db/crypto db/csharp db/cxx db/db
db/db185 db/db_archive db/db_checkpoint db/db_deadlock db/db_dump
db/db_dump185 db/db_hotbackup db/db_load db/db_printlog db/db_recover
db/db_sql db/db_stat db/db_upgrade db/db_verify db/dbinc db/dbinc_auto
db/dbm db/dbreg db/dist db/docs db/docs_src db/env db/examples_c
db/examples_csharp db/examples_cxx db/examples_java db/examples_stl
db/fileops db/hash db/hmac db/hsearch db/java db/libdb_csharp
db/libdb_java db/lock db/log db/mod_db4 db/mp db/mutex db/os
db/os_brew db/os_qnx db/os_s60 db/os_vxworks db/os_windows db/perl
db/php_db4 db/qam db/rep db/repmgr db/sequence db/stl db/tcl db/test
db/test_micro db/test_stl db/txn

+ rm -f rpmdb/db.h

+ patch -p0

Refusing to follow symbolic link db

+ bb_exit_handler
+ ret=2
+ case $ret in
+ case $BASH_VERSION in
+ echo 'WARNING:
/home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/temp/run.do_prep.18439:1
exit 2 from
  patch' -p0 '<'
/home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git/packaging/db-4.8.30-integration.dif
WARNING: /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/temp/run.do_prep.18439:1
exit 2 from
  patch -p0 < /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git/packaging/db-4.8.30-integration.dif
+ exit 2

+ cd /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git
+ do_prep
+ cd /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git
+ chmod -Rf a+rX,u+w,g-w,o-w
/home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git
+ cp /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git/packaging/rpm.manifest
.
+ rm -rf sqlite
+ tar xjf /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git/packaging/db-4.8.30.tar.bz2
+ ln -sfn db-4.8.30 db
+ chmod -R u+w db/LICENSE db/README db/btree db/build_brew
db/build_s60 db/build_unix db/build_vxworks db/build_wince
db/build_windows db/clib db/common db/crypto db/csharp db/cxx db/db
db/db185 db/db_archive db/db_checkpoint db/db_deadlock db/db_dump
db/db_dump185 db/db_hotbackup db/db_load db/db_printlog db/db_recover
db/db_sql db/db_stat db/db_upgrade db/db_verify db/dbinc db/dbinc_auto
db/dbm db/dbreg db/dist db/docs db/docs_src db/env db/examples_c
db/examples_csharp db/examples_cxx db/examples_java db/examples_stl
db/fileops db/hash db/hmac db/hsearch db/java db/libdb_csharp
db/libdb_java db/lock db/log db/mod_db4 db/mp db/mutex db/os
db/os_brew db/os_qnx db/os_s60 db/os_vxworks db/os_windows db/perl
db/php_db4 db/qam db/rep db/repmgr db/sequence db/stl db/tcl db/test
db/test_micro db/test_stl db/txn
+ rm -f rpmdb/db.h
+ patch -p0
Refusing to follow symbolic link db
+ bb_exit_handler
+ ret=2
+ case $ret in
+ case $BASH_VERSION in
+ echo 'WARNING:
/home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/temp/run.do_prep.18439:1
exit 2 from
  patch' -p0 '<'
/home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git/packaging/db-4.8.30-integration.dif
WARNING: /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/temp/run.do_prep.18439:1
exit 2 from
  patch -p0 < /home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/git/packaging/db-4.8.30-integration.dif
+ exit 2
DEBUG: Python function do_patch finished
ERROR: Function failed: do_prep (log file is located at
/home/dvegara/Documents/tizen-distro/build-common/tmp-glibc/work/x86_64-linux/rpm-native/4.11.0.1-r0/temp/log.do_patch.18439)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.do_patch.18439
Type: application/octet-stream
Size: 16629 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150219/a599003e/attachment.obj>


More information about the yocto mailing list