This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to update libtool in GCC and binutils trees


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]