[OE-core] Issue of Yocto multilib sdk
Alexandru-Cezar Sardan
alexandru.sardan at freescale.com
Fri Jul 26 12:36:21 UTC 2013
> Hi experts,
>
> I use Yocto to generate multilib sdk, I append following content in my
local.conf.
>
> require conf/multilib.conf
> MULTILIBS = "multilib:lib64"
> DEFAULTTUNE_virtclass-multilib-lib64 = "x86-64"
>
> IMAGE_INSTALL_append = " \
> ${ <at> multilib_pkg_extend(d, "binutils")} \
>
>
> ${ <at> multilib_pkg_extend(d, "eglibc")} \
>
> ${ <at> multilib_pkg_extend(d, "eglibc-dev")} \
> ${ <at> multilib_pkg_extend(d, "eglibc-staticdev")} \
>
> ${ <at> multilib_pkg_extend(d, "gcc")} \
>
> ${ <at> multilib_pkg_extend(d, "glib-2.0")} \
> ${ <at> multilib_pkg_extend(d, "glib-2.0-dev")} \
>
> ${ <at> multilib_pkg_extend(d, "libgcc-dev")} \
> ${ <at> multilib_pkg_extend(d, "libstdc++")} \
>
> ${ <at> multilib_pkg_extend(d, "libstdc++-dev")} \
> ${ <at> multilib_pkg_extend(d, "libstdc++-staticdev")} \
> "
>
>
>
> The sdk is generated successfully, I installed poky-eglibc-x86_64-i586-
toolchain-gmae-1.4+snapshot-20130619.sh in the default
path(/opt/poky/1.4+snapshot/).
>
> 1. 32bit build for my test C program, it passed,
> $ source /opt/poky/1.4+snapshot/environment-setup-i586-poky-linux
> $ $CC mytest.c -o mytest.c
> 2. 64bit build for the same test C program, it failed.
> $ source /opt/poky/1.4+snapshot/environment-setup-x86_64-pokymllib64-
linux
> $ $CC mytest.c -o mytest
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: cannot find
crtbegin.o: No such file or directory
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: cannot find -lgcc
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: skipping
incompatible /opt/poky/1.4+snapshot/sysroots/i586-poky-linux/lib/libgcc_s.so
when searching for -lgcc_s
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: skipping
incompatible /opt/poky/1.4+snapshot/sysroots/i586-poky-linux/lib/libgcc_s.so
when searching for -lgcc_s
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: cannot find -lgcc_s
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: skipping
incompatible /opt/poky/1.4+snapshot/sysroots/i586-poky-linux/usr/lib/libc.so
when searching for -lc
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: skipping
incompatible /opt/poky/1.4+snapshot/sysroots/i586-poky-linux/usr/lib/libc.so
when searching for -lc
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: cannot find -lc
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: cannot find -lgcc
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: skipping
incompatible /opt/poky/1.4+snapshot/sysroots/i586-poky-linux/lib/libgcc_s.so
when searching for -lgcc_s
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: skipping
incompatible /opt/poky/1.4+snapshot/sysroots/i586-poky-linux/lib/libgcc_s.so
when searching for -lgcc_s
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: cannot find -lgcc_s
> /opt/poky/1.4+snapshot/sysroots/x86_64-pokysdk-linux/usr/libexec/x86_64-
pokymllib64-linux/gcc/x86_64-pokymllib64-linux/4.7.2/ld: cannot find
crtend.o: No such file or directory
> collect2: error: ld returned 1 exit status
>
> Am I missing something?
>
>
> Cheers,
>
> Bruce
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at ...
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
I am experiencing the same issue with poky-dylan-9.0.0.
Can someone please help with this problem?
Kind regards,
Alex
More information about the Openembedded-core
mailing list