[oe] [gcc 4.4.2] [libcap, vdr] relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
Paul Menzel
paulepanter at users.sourceforge.net
Tue Jan 12 10:40:40 UTC 2010
Dear OE hackers,
sorry for bothering you with this. I am trying to reproduce the errors
Henning has seen with g++ 4.4.2 [1] and therefore added the following
lines to my `local.conf` for Ångström with BeagleBoard [2].
Am Montag, den 11.01.2010, 23:42 +0100 schrieb Paul Menzel:
[…]
> Putting
>
> PREFERRED_VERSION_binutils = "2.20"
> PREFERRED_VERSION_binutils-cross = "2.20"
> PREFERRED_VERSION_binutils-cross-sdk = "2.20"
>
> PREFERRED_VERSION_gcc = "4.4.2"
> PREFERRED_VERSION_gcc-cross = "4.4.2"
> PREFERRED_VERSION_gcc-cross-sdk = "4.4.2"
> PREFERRED_VERSION_gcc-cross-initial = "4.4.2"
> PREFERRED_VERSION_gcc-cross-intermediate = "4.4.2"
>
> in my `local.conf` and running `bitbake vdr` gave me an error in
> `do_compile` for `libcap_1.10.bb`.
>
> arm-angstrom-linux-gnueabi-ld -soname libcap.so.1 -x -shared -o libcap.so.1.10 cap_alloc.o cap_proc.o cap_extint.o cap_flag.o cap_text.o cap_sys.o
> arm-angstrom-linux-gnueabi-ld: cap_text.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
I do not get these errors if I use the standard versions defined for
Ångström which is 4.1.1. Adding `-fPIC` to the flags as suggested in [3]
solves the problem for me.
Does anyone know if GCC’s behavior was changed somehow?
Thanks,
Paul
[1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2010-January/016142.html
[2] http://www.angstrom-distribution.org/building-angstrom
[3] http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100112/b8f2c04e/attachment-0002.sig>
More information about the Openembedded-devel
mailing list