[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 11:47:05 UTC 2010


Am Dienstag, den 12.01.2010, 12:29 +0100 schrieb Frans Meulenbroeks:
> 2010/1/12 Paul Menzel <paulepanter at users.sourceforge.net>:
> > 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?
> 
> Did you start from scratch (with an empty tmp)?

I think so. In my `local.conf` I made the following change.

-TMPDIR = "${OETREE}/${DISTRO}-dev"
+TMPDIR = "${OETREE}/t${DISTRO}-dev"

I hope that is correct.

[…]


Thanks,

Paul
-------------- 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/94bb967f/attachment-0002.sig>


More information about the Openembedded-devel mailing list