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

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]: *** [] 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

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