Resend: 19980906 problems with libgcc2.a on mips-sgi-irix6.5
Martin Knoblauch
knobi@knobisoft.de
Sat Sep 12 03:39:00 GMT 1998
Resent, as this never appeared. Probably due to a large
attachment :-(
---------------------------------------------------------------------
Hi,
after some more investigation, it seems that the mainline
has a problem that the 1.1.release does not have. When building
libgcc2.a, a global symbol "_vt$9type_info" is missing in the
mailine, causing lots of unresolved symbols during "check".
Basically every program using libstdc++ fails.
The problem lies with tinfo.cc. for libgcc2.a it is compiled
the following way:
% ./xgcc -B./ -O2 -DIN_GCC -g -W -Wall -I./include -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I../../egcs-19980906/gcc
-I../../egcs-19980906/gcc/config -I../../egcs-19980906/gcc/../include -c
../../egcs-19980906/gcc/cp/tinfo.cc
I have generated *.s files using this options for egcs-19980906 and
egcs-1.1.
% ./xgcc -B./ -O2 -DIN_GCC -g -W -Wall -I./include -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I../../egcs-19980906/gcc
-I../../egcs-19980906/gcc/config -I../../egcs-19980906/gcc/../include -S
../../egcs-19980906/gcc/cp/tinfo.cc -o tinfo.s
% gcc -O2 -DIN_GCC -g -W -Wall -I./include -g1 -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I../../egcs-19980906/gcc
-I../../egcs-19980906/gcc/config -I../../egcs-19980906/gcc/../include -S
../../egcs-19980906/gcc/cp/tinfo.cc -o tinfo-1.1.s
% ./xgcc -v
Using builtin specs.
gcc version egcs-2.92.04 19980906 (gcc2 ss-980609 experimental)
% gcc -v
Reading specs from
/usr/egcsroot/lib/gcc-lib/mips-sgi-irix6.5/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
Searching for _vt$9type_info yields:
% grep _vt\$9 tinfo.s
la $2,_vt$9type_info
la $2,_vt$9type_info
la $2,_vt$9type_info
la $2,_vt$9type_info
.weakext _vt$9type_info
.size _vt$9type_info,16
_vt$9type_info:
la $2,_vt$9type_info
la $2,_vt$9type_info
la $2,_vt$9type_info
la $3,_vt$9type_info
% grep _vt\$9 tinfo-1.1.s
la $2,_vt$9type_info
la $2,_vt$9type_info
la $2,_vt$9type_info
la $2,_vt$9type_info
.globl _vt$9type_info
.size _vt$9type_info,16
_vt$9type_info:
la $2,_vt$9type_info
la $2,_vt$9type_info
la $2,_vt$9type_info
la $3,_vt$9type_info
It seams that the mainline version does not generate
the symbol as global. This leads to the unresolved symbols,
as tinfo2.cc needs it.
Hope this helps. If necessary, I will do more test.
Martin
--
+---------------------------------+
|Martin Knoblauch |
|---------------------------------|
| http://www.knobisoft.de |
+---------------------------------+
|e-mail: <knobi@knobisoft.de> |
+---------------------------------+
More information about the Gcc-bugs
mailing list