hppa2.0w-hp-hpux11.00 linker error: spurious behaviour of -fweak (differs from i686-pc-linux-gnu)
Markus Werle
markus@lufmech.rwth-aachen.de
Tue Jun 26 09:23:00 GMT 2001
Hi!
I finally found out what gave me linkage errors on hpux:
option -fweak hinders template instatiation on hpux every second time
Look at this
[markus] HP_LINKER_BUG/ > rm *.o
[markus] HP_LINKER_BUG/ > make
g++ -fweak -c Test.C
g++ -fweak -c main.C
g++ -fweak -o test.exe Test.o main.o
collect: recompiling Test.C
collect: relinking
/usr/ccs/bin/ld: Unsatisfied symbols:
Test<Dummy>::DoIt() (code)
collect2: ld returned 1 exit status
make: *** [all] Error 1
[markus] HP_LINKER_BUG/ > rm *.o
[markus] HP_LINKER_BUG/ > make
g++ -fweak -c Test.C
g++ -fweak -c main.C
g++ -fweak -o test.exe Test.o main.o
collect: recompiling Test.C
collect: relinking
AND SO ON, reproducable!
Any explanation?
[markus@tresca] HP_LINKER_BUG/ > g++ -v
Reading specs from
/opt/FREE-SOFTWARE/gcc-3.0/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0/specs
Configured with: ../gcc-3.0/configure --host=hppa2.0w-hp-hpux11.00
--prefix=/opt/FREE-SOFTWARE/gcc-3.0 --enable-languages=c,c++
--with-gnu-as --without-gnu-ld
--with-as=/opt/FREE-SOFTWARE/gcc-3.0/bin/as
--with-ld=/opt/FREE-SOFTWARE/gcc-3.0/bin/ld --enable-threads
--enable-version-specific-runtime-libs
Thread model: single
gcc version 3.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HP_LINKER_BUG.tar.bz2
Type: application/x-bzip2
Size: 771 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20010626/9961c878/attachment.bz2>
More information about the Gcc-bugs
mailing list