binutils_2.21.bb: fails with Minimal: `ERROR: Task 1266 (/oe/openembedded/recipes/binutils/binutils-cross_2.21.bb, do_patch) failed with 256`
Dear OE folks,
I have a strange error when running bitbake -k console-image with Minimal or Minimal uClibc. I have
MACHINE ?= "beagleboard"
BUILD_ARCH = "i686"
BUILD_OS = "linux"
LIBC = "eglibc"
PREFERRED_BINUTILS_VERSION = "2.21"
in local.conf.
[…]
NOTE: Running task 273 of 7158 (ID: 1383, virtual:native:/oe/openembedded/recipes/update-rc.d/update-rc.d_0.7.bb, do_package_stage)
NOTE: package update-rc.d-native-0.7-r2: task do_package_stage: Started
NOTE: Applying patch 'binutils-uclibc-gas-needs-libm.patch' (../openembedded/recipes/binutils/binutils-2.21/binutils-uclibc-gas-needs-libm.patch)
FATAL: [Errno 2] No such file or directory: '/oe/openembedded/recipes/binutils/binutils-2.21/./libtool-update.patch'
ERROR: Error in executing python function in: /oe/openembedded/recipes/binutils/binutils-cross_2.21.bb
ERROR: Exception:<type 'exceptions.SystemExit'> Message:1
ERROR: Printing the environment of the function
ERROR: Function patch_do_patch failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /oe/openembedded/recipes/binutils/binutils-cross_2.21.bb do_patch failed
NOTE: Applying patch 'fix-clone-conflicts.patch' (../openembedded/recipes/binutils/binutils-2.21/fix-clone-conflicts.patch)
NOTE: package update-rc.d-native-0.7-r2: task do_package_stage: Succeeded
ERROR: Task 1266 (/oe/openembedded/recipes/binutils/binutils-cross_2.21.bb, do_patch) failed with 256
NOTE: Running task 274 of 7158 (ID: 667, /oe/openembedded/recipes/linux-libc-headers/linux-libc-headers_2.6.31.bb, do_patch)
NOTE: Applying patch 'libtool-update.patch' (../openembedded/recipes/binutils/binutils-2.21/libtool-update.patch)
FATAL: [Errno 2] No such file or directory: '/oe/openembedded/recipes/binutils/binutils-2.21/./libtool-update.patch'
ERROR: TaskFailed event exception, aborting
ERROR: Build of /oe/openembedded/recipes/linux-libc-headers/linux-libc-headers_2.6.31.bb do_patch failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /oe/openembedded/recipes/gcc/gcc-cross-intermediate_4.5.bb do_unpack failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /oe/openembedded/recipes/m4/m4-native_1.4.14.bb do_configure failed
[…]
I searched for libtool-update.patch
$ git grep libtool-update.patch
recipes/binutils/binutils_2.20.1.bb: ${@['file://libtool-update.patch','file://libtool-2.4-update.patch'][bb.data.getVar('LIBTOOL_HAS_SYSROOT', d, 1) == 'yes']} \So I am quite confused why the task patch wants to apply something from a different recipe.
Thanks,
Paul
Build Configuration:BB_VERSION = "1.10.0"METADATA_BRANCH = "org.openembedded.dev"METADATA_REVISION = "887b6a2"
TARGET_ARCH = "arm" TARGET_OS = "linux-gnueabi" MACHINE = "beagleboard" DISTRO = "minimal" DISTRO_VERSION = "dev-snapshot-20101213" TARGET_FPU = "hard"
Quoted 8 lines · Paul Menzel
searched for
libtool-update.patch$ git grep libtool-update.patch recipes/binutils/binutils_2.20.1.bb: ${@['file://libtool-update.patch','file://libtool-2.4-update.patch'][bb.data.getVar('LIBTOOL_HAS_SYSROOT', d, 1) == 'yes']} \So I am quite confused why the task
patchwants to apply something from a different recipe.
It should not. It was an oversight libtool-update.patch is not needed for 2.21
Am Montag, den 13.12.2010, 12:02 -0800 schrieb Khem Raj:
Quoted 11 lines
Quoted 7 lines · Paul Menzel
searched for
libtool-update.patch$ git grep libtool-update.patch recipes/binutils/binutils_2.20.1.bb: ${@['file://libtool-update.patch','file://libtool-2.4-update.patch'][bb.data.getVar('LIBTOOL_HAS_SYSROOT', d, 1) == 'yes']} \So I am quite confused why the task
patchwants to apply something from a different recipe.It should not. It was an oversight libtool-update.patch is not needed for 2.21
I know and it is not present in binutils_2.21.bb. But it gets picked up anyway.
Thanks,
Paul