From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.gw90.de ([188.40.100.199]) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1NUeCu-00033B-2U for openembedded-devel@lists.openembedded.org; Tue, 12 Jan 2010 11:42:43 +0100 Received: from g225082252.adsl.alicedsl.de ([92.225.82.252] helo=[192.168.178.25]) by mail.gw90.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NUeAq-0006hE-Hf for openembedded-devel@lists.openembedded.org; Tue, 12 Jan 2010 10:40:32 +0000 From: Paul Menzel To: openembedded-devel@lists.openembedded.org Date: Tue, 12 Jan 2010 11:40:40 +0100 Message-ID: <1263292840.20557.80.camel@mattotaupa.wohnung.familie-menzel.net> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 X-SA-Exim-Connect-IP: 188.40.100.199 X-SA-Exim-Mail-From: paulepanter@users.sourceforge.net X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: No (on linuxtogo.org); Unknown failure Subject: [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 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2010 10:42:43 -0000 X-Groupsio-MsgNum: 15585 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-gnvZewtaqX/8eziDg/xc" --=-gnvZewtaqX/8eziDg/xc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =C3=85ngstr=C3=B6m with BeagleBoard [2]. Am Montag, den 11.01.2010, 23:42 +0100 schrieb Paul Menzel: [=E2=80=A6] > Putting >=20 > PREFERRED_VERSION_binutils =3D "2.20" > PREFERRED_VERSION_binutils-cross =3D "2.20" > PREFERRED_VERSION_binutils-cross-sdk =3D "2.20" > =20 > PREFERRED_VERSION_gcc =3D "4.4.2" > PREFERRED_VERSION_gcc-cross =3D "4.4.2" > PREFERRED_VERSION_gcc-cross-sdk =3D "4.4.2" > PREFERRED_VERSION_gcc-cross-initial =3D "4.4.2" > PREFERRED_VERSION_gcc-cross-intermediate =3D "4.4.2" >=20 > in my `local.conf` and running `bitbake vdr` gave me an error in > `do_compile` for `libcap_1.10.bb`. >=20 > arm-angstrom-linux-gnueabi-ld -soname libcap.so.1 -x -shared -o l= ibcap.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 =C3=85ngstr=C3=B6m which is 4.1.1. Adding `-fPIC` to the flags as suggested= in [3] solves the problem for me. Does anyone know if GCC=E2=80=99s behavior was changed somehow? Thanks, Paul [1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2010-January/01= 6142.html [2] http://www.angstrom-distribution.org/building-angstrom [3] http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=3D1&chap= =3D3 --=-gnvZewtaqX/8eziDg/xc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAktMUaAACgkQPX1aK2wOHVixFACfZC1+GtjVW5p8uo05xx+6g+xt fjwAn2U1ZqT3nK0oGKDiPsn2OE5B+Ib3 =9Slr -----END PGP SIGNATURE----- --=-gnvZewtaqX/8eziDg/xc--