pro64-support
[Top] [All Lists]

pro64-0.01.0-13.ia64 sgicc compiler with -O2 produces unresolved

To: pro64-support@xxxxxxxxxxx
Subject: pro64-0.01.0-13.ia64 sgicc compiler with -O2 produces unresolved function references
From: "Nelson H. F. Beebe" <beebe@xxxxxxxxxxxxx>
Date: Tue, 24 Apr 2001 07:46:57 -0600 (MDT)
Cc: beebe@xxxxxxxxxxxxx, meyering@xxxxxxxxxxxxx
Sender: owner-pro64-support@xxxxxxxxxxx
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.

I have not been able to reproduce this with a short test program, and
indeed, all of the lcc compiler test programs built fine with -O2,
except for the assertion failure for struct.c reported in a previous
message.  Nor did it occur in a build of Brian Kernighan's latest awk
release (http://cm.bell-labs.com/who/bwk/awk.tar.gz).

However, the bug can be reproduced with the latest GNU fileutils and
textutils beta test releases, available at either

        ftp://alpha.gnu.org/gnu/fetish/fileutils-4.0.45.tar.gz
        ftp://alpha.gnu.org/gnu/fetish/textutils-2.0.14.tar.gz
or
        ftp://freefriends.org/gnu/fetish/fileutils-4.0.45.tar.gz
        ftp://freefriends.org/gnu/fetish/textutils-2.0.14.tar.gz

Just unpack them, and do

        env CC=sgicc ./configure && make

The first failure I get in fileutils is

        % sgicc  -g -O2   -o chgrp  chgrp.o chown-core.o ../lib/libfetish.a
        chgrp.o(.debug_info+0xe85): undefined reference to `Formal_Arg_StkSeg'
        chgrp.o(.debug_info+0xe98): undefined reference to `Formal_Arg_StkSeg'
        chgrp.o(.debug_info+0x10d5): undefined reference to `Formal_Arg_StkSeg'
        chgrp.o(.debug_info+0x1250): undefined reference to `Formal_Arg_StkSeg'
        chgrp.o(.debug_info+0x1266): undefined reference to `Formal_Arg_StkSeg'

and in textutils,

        % sgicc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I.. 
-I. -I../lib -I../intl    -g -O2 -c -o cat.o `test -f cat.c || echo './'`cat.c
        sgicc  -g -O2   -o cat  cat.o ../lib/libfetish.a
        cat.o(.debug_info+0xc03): undefined reference to `Formal_Arg_StkSeg'
        cat.o(.debug_info+0xdb5): undefined reference to `Formal_Arg_StkSeg'
        cat.o(.debug_info+0xdce): undefined reference to `Formal_Arg_StkSeg'
        cat.o(.debug_info+0x1055): undefined reference to `Formal_Arg_StkSeg'
        cat.o(.debug_info+0x106c): undefined reference to `Formal_Arg_StkSeg'

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 585 1640, +1 801 581 4148 -
- University of Utah                    Internet e-mail: beebe@xxxxxxxxxxxxx  -
- Department of Mathematics, 322 INSCC      beebe@xxxxxxx  beebe@xxxxxxxxxxxx -
- 155 S 1400 E RM 233                       beebe@xxxxxxxx                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>
  • pro64-0.01.0-13.ia64 sgicc compiler with -O2 produces unresolved function references, Nelson H. F. Beebe <=