Bitbake error for elfutils-native
bitbake for imx6qsabreauto
command used
bitbake -v tizen-common-core-image-minimal-dev
I have applied fix to - meta/classes/patch.bbclass
i.e
+ del os.environ['TMPDIR']
***Error Log****
ERROR: Command Error: exit status: 1 Output:
Applying patch redhat-portability.diff
patching file backends/ChangeLog
patching file backends/Makefile.am
patching file backends/Makefile.in
patching file ChangeLog
patching file config/ChangeLog
patching file config/eu.am
patching file config/Makefile.in
Hunk #1 succeeded at 147 (offset 1 line).
Hunk #2 succeeded at 179 (offset 1 line).
patching file config.h.in
patching file configure
Hunk #1 FAILED at 661.
Hunk #2 FAILED at 678.
Hunk #3 FAILED at 802.
Hunk #4 FAILED at 1461.
Hunk #5 succeeded at 4943 with fuzz 1 (offset 234 lines). Hunk #6 FAILED at 4869.
Hunk #7 succeeded at 5535 (offset 256 lines).
Hunk #8 FAILED at 6015.
Hunk #9 succeeded at 7010 with fuzz 1 (offset 257 lines).
6 out of 9 hunks FAILED -- rejects in file configure patching file configure.ac
patching file lib/ChangeLog
patching file lib/eu-config.h
patching file lib/Makefile.in
patching file libasm/ChangeLog
patching file libasm/Makefile.in
patching file libcpu/ChangeLog
patching file libcpu/i386_disasm.c
patching file libcpu/Makefile.in
patching file libdw/ChangeLog
patching file libdw/dwarf_begin_elf.c
patching file libdw/libdw.h
patching file libdw/Makefile.in
patching file libdwfl/ChangeLog
patching file libdwfl/linux-core-attach.c
patching file libdwfl/linux-pid-attach.c
patching file libdwfl/Makefile.in
patching file libebl/ChangeLog
patching file libebl/Makefile.in
patching file libelf/ChangeLog
patching file libelf/common.h
patching file libelf/gnuhash_xlate.h
patching file libelf/Makefile.in
patching file m4/Makefile.in
patching file Makefile.in
patching file src/addr2line.c
patching file src/ChangeLog
patching file src/findtextrel.c
patching file src/ld.h
patching file src/Makefile.am
patching file src/Makefile.in
patching file src/readelf.c
patching file src/strings.c
patching file src/strip.c
patching file tests/backtrace.c
patching file tests/ChangeLog
patching file tests/line2addr.c
patching file tests/Makefile.in
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'
************do patch log file************************************
/home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/elfutils/ /home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/files/
NOTE: Applying patch 'redhat-portability.diff' (../poky/meta/recipes- devtools/elfutils/elfutils-0.158/redhat-portability.diff)
ERROR: Command Error: exit status: 1 Output:
Applying patch redhat-portability.diff
patching file backends/ChangeLog
patching file backends/Makefile.am
patching file backends/Makefile.in
patching file ChangeLog
patching file config/ChangeLog
patching file config/eu.am
patching file config/Makefile.in
Hunk #1 succeeded at 147 (offset 1 line).
Hunk #2 succeeded at 179 (offset 1 line).
patching file config.h.in
patching file configure
Hunk #1 FAILED at 661.
Hunk #2 FAILED at 678.
Hunk #3 FAILED at 802.
Hunk #4 FAILED at 1461.
Hunk #5 succeeded at 4943 with fuzz 1 (offset 234 lines). Hunk #6 FAILED at 4869.
Hunk #7 succeeded at 5535 (offset 256 lines).
Hunk #8 FAILED at 6015.
Hunk #9 succeeded at 7010 with fuzz 1 (offset 257 lines). 6 out of 9 hunks FAILED -- rejects in file configure patching file configure.ac
patching file lib/ChangeLog
patching file lib/eu-config.h
patching file lib/Makefile.in
patching file libasm/ChangeLog
patching file libasm/Makefile.in
patching file libcpu/ChangeLog
patching file libcpu/i386_disasm.c
patching file libcpu/Makefile.in
patching file libdw/ChangeLog
patching file libdw/dwarf_begin_elf.c
patching file libdw/libdw.h
patching file libdw/Makefile.in
patching file libdwfl/ChangeLog
patching file libdwfl/linux-core-attach.c
patching file libdwfl/linux-pid-attach.c
patching file libdwfl/Makefile.in
patching file libebl/ChangeLog
patching file libebl/Makefile.in
patching file libelf/ChangeLog
patching file libelf/common.h
patching file libelf/gnuhash_xlate.h
patching file libelf/Makefile.in
patching file m4/Makefile.in
patching file Makefile.in
patching file src/addr2line.c
patching file src/ChangeLog
patching file src/findtextrel.c
patching file src/ld.h
patching file src/Makefile.am
patching file src/Makefile.in
patching file src/readelf.c
patching file src/strings.c
patching file src/strip.c
patching file tests/backtrace.c
patching file tests/ChangeLog
patching file tests/line2addr.c
patching file tests/Makefile.in
Patch redhat-portability.diff does not apply (enforce with -f)
DEBUG: Python function patch_do_patch finished
DEBUG: Python function do_patch finished
ERROR: Function failed: patch_do_patch
Any inputs to resolve this error
Good day Anoop,
Error is in do_patch task when applying patch for configure. Please check the hashes in your patch if it's compatible with the HEAD or some upstream changes for configure.
Thanks,
Joseph
Quoted 162 lines · Anoop
bitbake for imx6qsabreauto
command used
bitbake -v tizen-common-core-image-minimal-devI have applied fix to - meta/classes/patch.bbclass i.e
+ del os.environ['TMPDIR']***Error Log****
ERROR: Command Error: exit status: 1 Output:
Applying patch redhat-portability.diff
patching file backends/ChangeLog
patching file backends/Makefile.am
patching file backends/Makefile.in
patching file ChangeLog
patching file config/ChangeLog
patching file config/eu.am
patching file config/Makefile.in
Hunk #1 succeeded at 147 (offset 1 line).
Hunk #2 succeeded at 179 (offset 1 line).
patching file config.h.in
patching file configure
Hunk #1 FAILED at 661.
Hunk #2 FAILED at 678.
Hunk #3 FAILED at 802.
Hunk #4 FAILED at 1461.
Hunk #5 succeeded at 4943 with fuzz 1 (offset 234 lines). Hunk #6 FAILED at 4869.
Hunk #7 succeeded at 5535 (offset 256 lines).
Hunk #8 FAILED at 6015.
Hunk #9 succeeded at 7010 with fuzz 1 (offset 257 lines).
6 out of 9 hunks FAILED -- rejects in file configure patching file configure.ac
patching file lib/ChangeLog
patching filelib/eu-config.h
patching filelib/Makefile.in
patching file libasm/ChangeLog
patching file libasm/Makefile.in
patching file libcpu/ChangeLog
patching filelibcpu/i386_disasm.c
patching file libcpu/Makefile.in
patching file libdw/ChangeLog
patching filelibdw/dwarf_begin_elf.c
patching filelibdw/libdw.h
patching file libdw/Makefile.in
patching file libdwfl/ChangeLog
patching filelibdwfl/linux-core-attach.c
patching filelibdwfl/linux-pid-attach.c
patching file libdwfl/Makefile.in
patching file libebl/ChangeLog
patching file libebl/Makefile.in
patching file libelf/ChangeLog
patching filelibelf/common.h
patching filelibelf/gnuhash_xlate.h
patching file libelf/Makefile.in
patching file m4/Makefile.in
patching file Makefile.in
patching filesrc/addr2line.c
patching file src/ChangeLog
patching filesrc/findtextrel.c
patching filesrc/ld.h
patching file src/Makefile.am
patching file src/Makefile.in
patching filesrc/readelf.c
patching filesrc/strings.c
patching filesrc/strip.c
patching filetests/backtrace.c
patching file tests/ChangeLog
patching filetests/line2addr.c
patching file tests/Makefile.in
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'************do patch log file************************************
/home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/elfutils//home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/files/
NOTE: Applying patch 'redhat-portability.diff' (../poky/meta/recipes-devtools/elfutils/elfutils-0.158/redhat-portability.diff)
ERROR: Command Error: exit status: 1 Output:
Applying patch redhat-portability.diff
patching file backends/ChangeLog
patching file backends/Makefile.am
patching file backends/Makefile.in
patching file ChangeLog
patching file config/ChangeLog
patching file config/eu.am
patching file config/Makefile.in
Hunk #1 succeeded at 147 (offset 1 line).
Hunk #2 succeeded at 179 (offset 1 line).
patching file config.h.in
patching file configure
Hunk #1 FAILED at 661.
Hunk #2 FAILED at 678.
Hunk #3 FAILED at 802.
Hunk #4 FAILED at 1461.
Hunk #5 succeeded at 4943 with fuzz 1 (offset 234 lines). Hunk #6 FAILED at 4869.
Hunk #7 succeeded at 5535 (offset 256 lines).
Hunk #8 FAILED at 6015.
Hunk #9 succeeded at 7010 with fuzz 1 (offset 257 lines). 6 out of 9 hunks FAILED -- rejects in file configure patching file configure.ac
patching file lib/ChangeLog
patching filelib/eu-config.h
patching filelib/Makefile.in
patching file libasm/ChangeLog
patching file libasm/Makefile.in
patching file libcpu/ChangeLog
patching filelibcpu/i386_disasm.c
patching file libcpu/Makefile.in
patching file libdw/ChangeLog
patching filelibdw/dwarf_begin_elf.c
patching filelibdw/libdw.h
patching file libdw/Makefile.in
patching file libdwfl/ChangeLog
patching filelibdwfl/linux-core-attach.c
patching filelibdwfl/linux-pid-attach.c
patching file libdwfl/Makefile.in
patching file libebl/ChangeLog
patching file libebl/Makefile.in
patching file libelf/ChangeLog
patching filelibelf/common.h
patching filelibelf/gnuhash_xlate.h
patching file libelf/Makefile.in
patching file m4/Makefile.in
patching file Makefile.in
patching filesrc/addr2line.c
patching file src/ChangeLog
patching filesrc/findtextrel.c
patching filesrc/ld.h
patching file src/Makefile.am
patching file src/Makefile.in
patching filesrc/readelf.c
patching filesrc/strings.c
patching filesrc/strip.c
patching filetests/backtrace.c
patching file tests/ChangeLog
patching filetests/line2addr.c
patching file tests/Makefile.in
Patch redhat-portability.diff does not apply (enforce with -f)
DEBUG: Python functionpatch_do_patchfinished
DEBUG: Python functiondo_patchfinished
ERROR: Function failed:patch_do_patchAny inputs to resolve this error
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 1 line · Anoop
Patch redhat-portability.diff does not apply (enforce with -f)
Please update your poky, this has been fixed already and the meta-tizen fork of Poky has already integrated this fix.
(poky commit 52a6d20519870103134166d91e22d21fd736195d)
Ross
Quoted 10 lines · Ross
Quoted 1 line · Anoop
Patch redhat-portability.diff does not apply (enforce with -f)
Please update your poky, this has been fixed already and the meta-tizen fork of Poky has already integrated this fix.
(poky commit
52a6d20519870103134166d91e22d21fd736195d)Ross
Ross
many thanks for the valuable input.
I had been building tizen with yocto based on the following link.
https://wiki.tizen.org/wiki/Build_Tizen_with_Yocto
For poky it is mentioned to use
git clone https://github.com/eurogiciel-oss/poky.git
I think the redhat-portability.diff file in the path /home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/elfutils-0.158 as well as /home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/elfutils might not have been updated based on the poky commit 52a6d20519870103134166d91e22d21fd736195d.
Quoted 9 lines · Anoop
Ross
many thanks for the valuable input.
I had been building tizen with yocto based on the following link.https://wiki.tizen.org/wiki/Build_Tizen_with_Yocto
For poky it is mentioned to use
git clone https://github.com/eurogiciel-oss/poky.git
Quoted 6 lines
I think the redhat-portability.diff file in the path
/home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/elfutils-0.158as well as/home/sfm/yocto_temp/poky/meta/recipes-devtools/elfutils/elfutilsmight not have been updated based on the poky commit52a6d20519870103134166d91e22d21fd736195d.
https://github.com/eurogiciel-oss/poky/commit/52a6d20519870103134166d91e22d21fd736195d
It's there - you need to pull the latest commits.
Ross
Thank you Ross for the wonderful support.
I cherrypicked the commit. The issue is resolved now.