This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to update libtool in GCC and binutils trees
- From: Andreas Schwab <schwab at suse dot de>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 29 Mar 2007 18:47:15 +0200
- Subject: Re: Patch to update libtool in GCC and binutils trees
- References: <200703291628.JAA16644@hpsje.cup.hp.com>
Steve Ellcey <sje@cup.hp.com> writes:
> On x86_64 Linux (x86_64-suse-linux-gnu) the build for libstdc++ fails, I
> wind up with:
>
> /proj/opensrc/nightly/gcc-x86_64-suse-linux-gnu-trunk/x86_64-suse-linux-gnu/bin/ld: ../libsupc++/.libs/libsupc++convenience.a(array_type_info.o): relocation R_X86_64_32S against `vtable for __cxxabiv1::__array_type_info' can not be used when making a shared object; recompile with -fPIC
> ../libsupc++/.libs/libsupc++convenience.a(array_type_info.o): could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[4]: *** [libstdc++.la] Error 1
>
> So something is not getting compiled with -fPIC but I don't know why.
I sometimes see that configure thinks -fPIC is not usable. I'd suggest to
look at config.log to check that the test does not find a spurious
failure.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."