[OE-core] Re: [PATCH] matchbox-keyboard: Fix build failure with ld-is-gold

Carlos Alberto Lopez Perez clopez at igalia.com
Fri Sep 11 16:46:45 UTC 2015


On 11/09/15 16:51, Phil Blundell wrote:
> On Fri, 2015-09-11 at 14:49 +0200, Carlos Alberto Lopez Perez wrote:
>>   * When ld-is-gold is enabled in DISTRO_FEATURES, matchbox-keyboard
>>     will fail to build with this error:
>>
>>     ld: error: matchbox-keyboard-image.o: requires unsupported dynamic
>>                reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC
> 
> This is only an issue for ARM (and only for Thumb2 at that).  I don't
> think it's necessarily appropriate to force -fPIC on all targets.
> 
> Also, before adding this sort of hack it would be worth verifying
> whether this is in fact a toolchain bug and, if it is, fixing it there.
> 
> p.
> 
> 
> 

If you (or somebody else) want to investigate whether this is a bug on
the toolchain or not, I can give you more data:

* I forced GCC 4.9 (GCC 5.X was failing to build the kernel, and I don't
bothered with it).

$ grep GCCVERSION conf/local.conf
GCCVERSION = "4.9%"

* The target machine is a Freescale imx6qsabresd board, so I also used
the meta-freescale layer (master)

If you need more details, let me know.

I'm not bothering more with this, as the above patch is good enough for
me. Feel free to take it or not, or to contribute a better one if you wish.

Regards.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 883 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150911/78c17772/attachment-0002.sig>


More information about the Openembedded-core mailing list