Patch to update libtool in GCC and binutils trees

Steve Ellcey sje@cup.hp.com
Thu Mar 29 16:58:00 GMT 2007


Here is an update on my attempts to use the new libtool in the GCC and
Src trees.  It seems to be mostly working but I am having problems with
the libstdc++-v3 directory in the GCC tree.

On IA64 HP-UX (a multidir platform), I can build everything fine but
when I run the libstdc++-v3 testsuite in 32 and 64 modes the 32 bit
tests pass and the 64 bit tests fail.  It looks like the -L arguments
are set wrong in the 64 bit mode so g++ finds a 32 bit (default)
libstdc++ library instead of the 64 bit one and fails to link.

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.

Can someone familiar with the libstdc++ make setup offer any suggestions?

Steve Ellcey
sje@cup.hp.com



More information about the Gcc-patches mailing list