This is the mail archive of the 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 <> 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]: *** [] 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


Andreas Schwab, SuSE Labs,
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]