[yocto] aarch64-oe-linux/bin/ld: cannot find -lgcc . Adding native build support for arm64/aarch64 in oe-rootfs.

Khem Raj raj.khem at gmail.com
Wed Apr 27 13:10:18 PDT 2016


you could use multilib add something like this below to local.conf

require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "armv7at-neon”

> On Apr 26, 2016, at 10:53 PM, Jaggi, Manish <Manish.Jaggi at caviumnetworks.com> wrote:
> 
> It worked, thanks!!
> 
> But I couldnt find support to include multilibs say for 32bit and 64bit gcc.
> There is a MULTILIB macro but I am not sure how to use it?
> I think multilib recipes (bbfiles) are required, how to get them?
> 
> 
> Regards,
> Manish Jaggi
> From: Burton, Ross <ross.burton at intel.com <mailto:ross.burton at intel.com>>
> Sent: Tuesday, April 26, 2016 2:27:12 PM
> To: Jaggi, Manish
> Cc: yocto at yoctoproject.org <mailto:yocto at yoctoproject.org>
> Subject: Re: [yocto] aarch64-oe-linux/bin/ld: cannot find -lgcc . Adding native build support for arm64/aarch64 in oe-rootfs.
> 
> 
> On 26 April 2016 at 09:37, Jaggi, Manish <Manish.Jaggi at caviumnetworks.com <mailto:Manish.Jaggi at caviumnetworks.com>> wrote:
> IMAGE_INSTALL_append = "gcc"
> IMAGE_INSTALL_append += " glibc"
> IMAGE_INSTALL_append += " libgcc"
> IMAGE_INSTALL_append += " binutils"
> IMAGE_INSTALL_append += " gccmakedep"
> 
> You left out the development headers and libraries required to actually link.
> 
> IMAGE_FEATURES is a more efficient way of doing this.  EXTRA_IMAGE_FEATURES += "tools-sdk" will add gcc/cpp/make/etc, and "dev-pkgs" will ensure that all of the -dev packages are installed on your image, so you can link against anything you've installed.
> 
> Ross
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org <mailto:yocto at yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160427/b7978a4e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160427/b7978a4e/attachment.pgp>


More information about the yocto mailing list