From: "Nelson H. F. Beebe" <beebe@xxxxxxxxxxxxx>
I've been testing the sgicc compiler from the pro64-0.01.0-13.ia64.rpm
file obtained from http://oss.sgi.com/projects/Pro64/ on the HP IA-64
emulator running on a Red Hat Linux 6.2 installation on an dual-CPU
Intel Pentium III 600MHz system.
With several programs compiled with "sgicc -O2", I've gotten link-time
errors like this, always to the same symbol, Formal_Arg_StkSeg:
array.o(.debug_info+0x1f46): undefined reference to
`Formal_Arg_StkSeg'
If optimization is reduced to -O1, the link succeeds.
This is the same error that Helf reported a few days ago.
It happens when you do -O -g. If you just do -O it won't happen.
I have a fix checked in; if you don't want to wait for new binaries,
you can apply this patch to the source and build:
be/cg/cgdwarf.cxx:
*** 708,713 ****
--- 708,714 ----
if (ST_is_not_used(st)) return;
Base_Symbol_And_Offset (st, &base_st, &base_ofst);
+ if (ST_is_not_used(base_st)) return;
deref = FALSE;
if (DST_IS_deref(flag)) /* f90 formals, dope, etc */
-- Mike Murphy
-- mpm@xxxxxxx
-- quote of the day:
-- "The only thing necessary for the triumph of evil
-- is for good men to do nothing." (Edmund Burke, 1795)
|