gcc 3.3.3 complitation error on HP

John David Anglin dave@hiauly1.hia.nrc.ca
Wed Apr 7 03:38:00 GMT 2004


> cc1plus: warning: -g option disabled
> as: error 7403: undefined label - _ZTISt8bad_cast (7403)

This is a known issue when using the HP assembler.  Configure GCC
with the GNU assembler and the HP linker.  This provides the best
support for C++.

Weak support is not available when using the HP assembler.  Without
weak support, there are significant problems with vtable support and
template instantiation.  3.3 is worse than 3.[0-2] in this respect.
There is weak support under HP-UX 11 using the GNU assembler.  In
my opinion, the ia64 ABI adopted for C++ only works when a target
has one-only support.  There is some possibility that we might be
able to provide one-only support using the GNU assembler under HP-UX
10.20.  This would use the linkers support for common symbols.
Again however, this won't work with the HP assembler (HP Fortran
doesn't use the HP assembler).

The GNU linker has a number of problems (e.g., -static doesn't work).
Thus, it's better to use HP ld at this time.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)



More information about the Gcc-help mailing list