Skip to contentSkip to conversation

Yocto Bitbake Error - rmp-native task failure

DISCUSSION Anoop 3 participants 9 messages Jul 23, 2014 – Jul 24, 2014

lore
Share & tools
lore

Anoop

author
#0 lore raw

I gave bitbake for imx6qsabreauto

command used
bitbake -v tizen-common-core-image-minimal-dev

below is the error section from the log
+ patch -p0

patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory

+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2

ERROR: Function failed: do_prep (log file is located at /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/temp/log.do_patch.32228)
/usr/bin/install -c -m 644 ./Lib/test/test_bool.py /home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/usr/lib/python2.7/test

ERROR: Logfile of failure stored in:
/home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/temp/log.do_patch.32228
NOTE: recipe rpm-native-git-r0: task do_patch: Failed
ERROR: Task 85 (virtual:native:/home/sfm/yocto_temp/meta-tizen/recipes- tizen/rpm/rpm_git.bb, do_patch) failed with exit code '1'

Error log from patch file
+
chmod
-Rf
a+rX,u+w,g-w,o-w /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git

+ cp /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/git/packaging/rpm.manifest .

+ rm -rf sqlite

+ tar xjf /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/git/packaging/db-4.8.30.tar.bz2

+ ln -s 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

patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory

+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2

+ cd /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git
+ do_prep
+ cd /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git
+ chmod -Rf a+rX,u+w,g-w,o-w /home/sfm/yocto_temp/build/tmp/work/i686- linux/rpm-native/git-r0/git
+ cp /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/git/packaging/rpm.manifest .
+ rm -rf sqlite
+ tar xjf /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/git/packaging/db-4.8.30.tar.bz2
+ ln -s 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
patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory
+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2
DEBUG: Python function do_patch finished
ERROR: Function failed: do_prep (log file is located at /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/temp/log.do_patch.32228)

can any one help on how to resolve this error

#1 lore raw

Good day Anoop,

Error is from do_patch task for rpm-native unit:
patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory

Please verify in your recipe all the SRC_URIs (patches) to be applied. Could be that your SRCREV and patches are in conflict. The odd thing is why the patch -p0 is not specifying a patch file.

To sum it up, please check the rpm-native recipe.

Thanks,
Joseph

Quoted 124 lines · Anoop

I gave bitbake for imx6qsabreauto

command used
bitbake -v tizen-common-core-image-minimal-dev

below is the error section from the log
+ patch -p0

patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory

+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2

ERROR: Function failed: do_prep (log file is located at /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/temp/log.do_patch.32228)
/usr/bin/install -c -m 644 ./Lib/test/test_bool.py /home/sfm/yocto_temp/build/tmp/sysroots/i686-linux/usr/lib/python2.7/test

ERROR: Logfile of failure stored in:
/home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/temp/log.do_patch.32228
NOTE: recipe rpm-native-git-r0: task do_patch: Failed
ERROR: Task 85 (virtual:native:/home/sfm/yocto_temp/meta-tizen/recipes- tizen/rpm/rpm_git.bb, do_patch) failed with exit code '1'

Error log from patch file
+
chmod
-Rf
a+rX,u+w,g-w,o-w /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git

+ cp /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/git/packaging/rpm.manifest .

+ rm -rf sqlite

+ tar xjf /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/git/packaging/db-4.8.30.tar.bz2

+ ln -s 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

patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory

+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2

+ cd /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git
+ do_prep
+ cd /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git-r0/git
+ chmod -Rf a+rX,u+w,g-w,o-w /home/sfm/yocto_temp/build/tmp/work/i686- linux/rpm-native/git-r0/git
+ cp /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/git/packaging/rpm.manifest .
+ rm -rf sqlite
+ tar xjf /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/git/packaging/db-4.8.30.tar.bz2
+ ln -s 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
patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory
+ bb_exit_handler
+ ret=2
+ echo WARNING: exit code 2 from a shell command.
WARNING: exit code 2 from a shell command.
+ exit 2
DEBUG: Python function do_patch finished
ERROR: Function failed: do_prep (log file is located at /home/sfm/yocto_temp/build/tmp/work/i686-linux/rpm-native/git- r0/temp/log.do_patch.32228)

can any one help on how to resolve this error

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

author
#2 lore raw

Good day Joseph Andrew

Thank you for the inputs.

#3 lore raw
In reply to Anoop
Quoted 2 lines · Anoop

patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory

This is a bug in the meta-tizen rpm package. Until they fix it you'll have to do bitbake rpm-native -cclean and then re-run bitbake tizen-common-core-image-minimal-dev.

Ross

author
#4 lore raw
Quoted 10 lines · Ross
Quoted 2 lines · Anoop

patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory

This is a bug in the meta-tizen rpm package. Until they fix it you'll have to do bitbake rpm-native -cclean and then re-run bitbake tizen-common-core-image-minimal-dev.

Ross

Good day Ross

Thank you for the inputs.
So until I over come this error I need to do bitbake rpm-native -cclean and then re-run bitbake tizen-common-core-image-minimal-dev. ?
I'm asking this since i'm continuously getting task error on meta-tizen rpm receipt.

Best regards
Anoop

#5 lore raw
Quoted 5 lines · Anoop

Thank you for the inputs.
So until I over come this error I need to do bitbake rpm-native -cclean and then re-run bitbake tizen-common-core-image-minimal-dev. ?
I'm asking this since i'm continuously getting task error on meta-tizen rpm receipt.

That was how I fixed it when I hit this problem. I suggest contacting the maintainers of meta-tizen directly, they're probably not on this mailing list.

Ross

#6 lore raw
In reply to Anoop
Quoted 2 lines · Anoop

patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory

I just re-read this mail and remembered that this was a different problem with rpm-native, and I fixed it in oe-core/poky. Their fork of poky has been updated to incorporate the fix but if you can't upgrade then cherry-pick this commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=442efc3959a65fc9da73f79b3afda95d1cffadf3

Sorry for the wrong reply at first, there are several ways that the meta-tizen rpm can fail... :/

Ross

author
#7 lore raw
Quoted 11 lines · Ross
Quoted 2 lines · Anoop

patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory

I just re-read this mail and remembered that this was a different problem with rpm-native, and I fixed it in oe-core/poky. Their fork of poky has been updated to incorporate the fix but if you can't upgrade then cherry-pick this commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?

id=442efc3959a65fc9da73f79b3afda95d1cffadf3

Quoted 5 lines

Sorry for the wrong reply at first, there are several ways that the meta-tizen rpm can fail... :/

Ross

Once again thank you ross I could resolve the error with the stated changes you had mentioned

author
#8 lore raw
In reply to Burton, Ross

thank you I applied the patch the earlier stated error is not seen . but I have hit on another error.

Patch redhat-portability.diff does not apply (enforce with -f)
ERROR: Function failed: patch_do_patch
ERROR: Logfile of failure stored in:
/home/sfm/yocto_temp/build/tmp/work/i686-linux/elfutils-native/0.158-r0/temp/log.do_patch.3531
ERROR: Task 993 (virtual:native:/home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/ elfutils_0.158.bb, do_patch) failed with exit code '1'

have come across this error?

Best regards

     A.B

P Please think about the environment before printing this e-mail

*7 Switch off as you go | qAlways recycle | P Save a tree...please don't print this e-mail unless you really need to.*

Quoted 17 lines · Ross
Quoted 2 lines · Anoop

patch: **** Can't create file /tmp/tmpT3pUSD/poMZnbmM : No such file or directory

I just re-read this mail and remembered that this was a different problem with rpm-native, and I fixed it in oe-core/poky. Their fork of poky has been updated to incorporate the fix but if you can't upgrade then cherry-pick this commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=442efc3959a65fc9da73f79b3afda95d1cffadf3

Sorry for the wrong reply at first, there are several ways that the meta-tizen rpm can fail... :/

Ross