All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Menzel <paulepanter@users.sourceforge.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [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
Date: Tue, 12 Jan 2010 12:47:05 +0100	[thread overview]
Message-ID: <1263296825.20557.139.camel@mattotaupa.wohnung.familie-menzel.net> (raw)
In-Reply-To: <ac9c93b11001120329wfe39627vda59932fb1c3784b@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1957 bytes --]

Am Dienstag, den 12.01.2010, 12:29 +0100 schrieb Frans Meulenbroeks:
> 2010/1/12 Paul Menzel <paulepanter@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

[-- Attachment #2: Dies ist ein digital signierter Nachrichtenteil --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

  reply	other threads:[~2010-01-12 11:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-12 10:40 [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
2010-01-12 11:29 ` Frans Meulenbroeks
2010-01-12 11:47   ` Paul Menzel [this message]
2010-01-16 13:59 ` [PATCH] libcap: Append `-fPIC` to `CFLAGS` to fix compilation on newer binutils/ld. (was: [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
2010-01-19  9:55   ` [PATCH] libcap: Append `-fPIC` to `CFLAGS` to fix compilation on newer binutils/ld Paul Menzel
2010-01-21 22:20   ` [PATCH] libcap: Append `-fPIC` to `CFLAGS` to fix compilation on newer binutils/ld. (was: [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) Phil Blundell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1263296825.20557.139.camel@mattotaupa.wohnung.familie-menzel.net \
    --to=paulepanter@users.sourceforge.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.