[yocto] external-sourcery-toolchain: ERROR: Function failed: do_install
Elvis Dowson
elvis.dowson at gmail.com
Fri Aug 10 08:59:59 PDT 2012
Hi,
On Aug 10, 2012, at 7:37 PM, Elvis Dowson wrote:
> I cloned the meta-sourcery repo, added it to my bblayers.conf
>
> $ cd /tool/yocto
> $ git clone git://github.com/MentorEmbedded/meta-sourcery.git
>
> I specified the following variables in my local.conf:
>
> # Set the toolchain.
> TCMODE = "external-csl"
> EXTERNAL_TOOLCHAIN = "/tool/mentor/csl-2011.03-39"
> CSL_TARGET_SYS_powerpc = "powerpc-eabi"
>
> I get the following error, when I try to run bitbake core-image-minimal:
>
> ERROR: Function failed: do_install (see /tool/yocto/poky/build/tmp/work/ppc440-poky-linux/external-sourcery-toolchain-2011.03-39-r12/temp/log.do_install.31646 for further information)
> ERROR: Logfile of failure stored in: /tool/yocto/poky/build/tmp/work/ppc440-poky-linux/external-sourcery-toolchain-2011.03-39-r12/temp/log.do_install.31646
> Log data follows:
> | DEBUG: Executing shell function do_install
> | cp: target `/tool/yocto/poky/build/tmp/work/ppc440-poky-linux/external-sourcery-toolchain-2011.03-39-r12/image/lib' is not a directory
> | ERROR: Function failed: do_install (see /tool/yocto/poky/build/tmp/work/ppc440-poky-linux/external-sourcery-toolchain-2011.03-39-r12/temp/log.do_install.31646 for further information)
> NOTE: package external-sourcery-toolchain-2011.03-39-r12: task do_install: Failed
> ERROR: Task 41 (/tool/yocto/meta-sourcery/recipes/meta/external-sourcery-toolchain.bb, do_install) failed with exit code '1'
> Waiting for 3 running tasks to finish:
> 0: ncurses-native-5.9-r10.1 do_configure (pid 31329)
> 1: openssl-native-1.0.0j-r15.3 do_unpack (pid 31503)
> 2: zlib-native-1.2.7-r0 do_compile (pid 31632)
> NOTE: package attr-native-2.4.46-r4: task do_fetch: Started
> Waiting for 4 running tasks to finish:
> 0: ncurses-native-5.9-r10.1 do_configure (pid 31329)
> 1: openssl-native-1.0.0j-r15.3 do_unpack (pid 31503)
> 2: zlib-native-1.2.7-r0 do_compile (pid 31632)
> 3: attr-native-2.4.46-r4 do_fetch (pid 31843)
> NOTE: package attr-native-2.4.46-r4: task do_fetch: Succeeded
> Waiting for 3 running tasks to finish:
> 0: ncurses-native-5.9-r10.1 do_configure (pid 31329)
> 1: openssl-native-1.0.0j-r15.3 do_unpack (pid 31503)
> 2: zlib-native-1.2.7-r0 do_compile (pid 31632)
> NOTE: package openssl-native-1.0.0j-r15.3: task do_unpack: Succeeded
> Waiting for 2 running tasks to finish:
> 0: ncurses-native-5.9-r10.1 do_configure (pid 31329)
> 1: zlib-native-1.2.7-r0 do_compile (pid 31632)
> NOTE: package zlib-native-1.2.7-r0: task do_compile: Succeeded
> Waiting for 1 running tasks to finish:
> 0: ncurses-native-5.9-r10.1 do_configure (pid 31329)
> NOTE: package ncurses-native-5.9-r10.1: task do_configure: Succeeded
> NOTE: Tasks Summary: Attempted 97 tasks of which 63 didn't need to be rerun and 1 failed.
>
> Summary: 1 task failed:
> /tool/yocto/meta-sourcery/recipes/meta/external-sourcery-toolchain.bb, do_install
> Summary: There were 5 ERROR messages shown, returning a non-zero exit code.
>
> How can I resolve this error?
>
I found the solution. I had to specify NO32LIBS = "0", since I'm building on an Ubuntu 12.04 64-bit machine.
# Set the toolchain.
TCMODE = "external-csl"
EXTERNAL_TOOLCHAIN = "/tool/mentor/csl-2012.03.71"
NO32LIBS = "0"
CSL_TARGET_SYS_powerpc = "powerpc-mentor-linux-gnu"
PREFERRED_PROVIDER_linux-libc-headers = "external-sourcery-toolchain"
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "external-sourcery-toolchain"
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-initial = "external-sourcery-toolchain"
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "external-sourcery-toolchain"
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "external-sourcery-toolchain"
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}binutils = "external-sourcery-toolchain"
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "external-sourcery-toolchain"
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "external-sourcery-toolchain"
PREFERRED_PROVIDER_libgcc = "external-sourcery-toolchain"
PREFERRED_PROVIDER_eglibc = "external-sourcery-toolchain"
PREFERRED_PROVIDER_virtual/libc = "external-sourcery-toolchain"
PREFERRED_PROVIDER_virtual/libintl = "external-sourcery-toolchain"
PREFERRED_PROVIDER_virtual/libiconv = "external-sourcery-toolchain"
PREFERRED_PROVIDER_gdbserver = "external-sourcery-toolchain"
The build is progressing along now.
Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20120810/25de7f3a/attachment.html>
More information about the yocto
mailing list