G++ 2.95.2 installation problem on IRIX6.2, PLUS PATCH
Jon Sablatnig
jhs@cs.tu-berlin.de
Fri Mar 24 13:43:00 GMT 2000
Hi,
I just installed gcc/g++ version 2.95.2 (comes with libstdc++ 2.10.0) on an
Irix 6.2 system.
I configured the two bundles with:
$ ../../gcc-2.95.2/configure --prefix=/u/wavelet --enable-shared --enable-threads --enable-languages=c,c++
So now I get:
$ g++ -v
Reading specs from /u/wavelet/lib/gcc-lib/mips-sgi-irix6.2/2.95.2/specs
gcc version 2.95.2 19991024 (release)
And it compiles, too.
Unfortunately, during linking, I get about two dozen warnings of the style:
$ g++ main.o
ld32: WARNING 85: definition of __throw in /u/wavelet/lib/gcc-lib/mips-sgi-irix6.2/2.95.2/libgcc.a(_eh.o) preempts that definition in /u/wavelet/lib/gcc-lib/mips-sgi-irix6.2/2.95.2/libstdc++.so.
...
The resulting binary seems to run OK, though.
This is NOT really a gcc bug, more of an IRIX linker bug (the 6.5 linker has
no problems). Nevertheless, g++ should work on IRIX 6.2, as well, so a
workaround should be given.
I found the same problem described in install/SPECIFIC, albeit for
alpha*-dec-osf* platforms.
So I fooled around with it for a bit, tried some possibilities, and noted
my recommendations in the install/* files.
Attached to this mail is a context diff which has all my additional comment/
new files.
Note it only affects files in the install/ directory.
And it only adds stuff, this will not affect any other configuration/system.
To apply this patch, move INTO gcc-2.95.2. Then do
$ patch -Np1 < gcc-2.95.2-irix6.2-shlibstdc++.patch
Done.
seeya,
jon.
------------------------------------------------------------------------
Jon Sablatnig "He who laughs, lasts."
jhs@cs.tu-berlin.de I disclaim everything.
More information about the Gcc-bugs
mailing list