🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49513

Compilation Error with gcc-2.5.7 on RS6000

#49513
From: D. Doucet
Date: Thu, 20 Jan 1994 02:52
72 lines
3554 bytes
You can chalk one more up to the compilation problems on the RS6000!


I recently updated our copy of gcc on our RS600 (AIX 3.2.4) to V2.5.7 (from
2.4.5) and have been getting illegal instruction and unrecognisable instruction
errors (Examples below).  The strange thing is that these some of these errors
do not always seem to occur; the code may compile fine one time in 20 (for 
example, I had one more error to list below, but when I recompiled to capture
the errors to a file, it went away).  Is this a known bug (and is there a 
patch)?	  I built gcc with 4 stages the first time (the make compare after 
stage2 went fine); the first time I bothered with the extra passes.  Thinking
this may have been my downfall, I then re-compiled using three stages the way
I have for years now, but the errors are still there.

Bugs & Fishes,

Roy

BTW:  These examples are from Sam Leffels Flexfax-2.2, which compiled fine 
under gcc V2.4.5.

make[3]: Entering directory `/usr/local/inet/flexfax-2.2/util'
/usr/local/bin/gcc -D__ANSI_CPP__       -DAIXV3 -DAIX -D_PATH_GETTY=\"/usr/sbin
/getty\" -DfxSIGHANDLER=int '-DfxSIGVECHANDLER=(void(*)())' -I. -I.. -I../port/
generic -I../port/aix32/gcc-related -I../util -I../iv -I../libtiff -g -c -x c++
 \
    -DFONTDIR=\"/usr/local/lib/afm\"  \
    textfmt.c++
textfmt.c++: In function `int main(int, char **)':
textfmt.c++:139: warning: implicit declaration of function `int getopt(...)'
textfmt.c++:250: warning: implicit declaration of function `int localtime(...)'

textfmt.c++:250: warning: initialization of pointer from integer lacks a cast
textfmt.c++: In function `void newPage()':
textfmt.c++:562: internal error--unrecognizable insn:
(insn 27 26 29 (set (reg:SI 86)
        (div:SI (reg:SI 87)
            (reg:SI 88))) -1 (nil)
    (expr_list:REG_EQUAL (div:SI (reg:SI 87)
            (const_int 2))
        (nil)))
make[3]: *** [textfmt.o] Error 1
make[3]: Leaving directory `/usr/local/inet/flexfax-2.2/util'



make[3]: Entering directory `/usr/local/inet/flexfax-2.2/faxd'
/usr/local/bin/gcc -D__ANSI_CPP__       -DAIXV3 -DAIX -D_PATH_GETTY=\"/usr/sbin
/getty\" -DfxSIGHANDLER=int '-DfxSIGVECHANDLER=(void(*)())' -I. -I.. -I../port/
generic -I../port/aix32/gcc-related -I../util -I../iv -I../libtiff -g -x c++ -c
 Everex.c++
Everex.c++: In method `void EverexModem::decodeCSI(class fxStr &, const class f
xStr &)':
Everex.c++:178: internal error--unrecognizable insn:
(insn 41 40 43 (set (reg:SI 86)
        (div:SI (reg:SI 84)
            (reg:SI 87))) -1 (nil)
    (expr_list:REG_EQUAL (div:SI (reg:SI 84)
            (const_int 2))
        (nil)))
make[3]: *** [Everex.o] Error 1
make[3]: Leaving directory `/usr/local/inet/flexfax-2.2/faxd'

--
_________________
Roy Nicholl
Atlantic Systems Group
Incutech Centre			Phone:	(506) 453-3505
UNB Campus			Fax:	(506) 453-5004
B/S 69000
Fredericton, NB
Canada  E3B 6C2
Technical Details
Message-ID: <1994Jan20.025220.1472@jupiter.sun.csd.unb.ca>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!utnut!torn!csd.unb.ca!douc

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,bb0110df8f2a8427,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-01-20 05:12:37 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!utnut!torn!csd.unb.ca!douc
From: douc@jupiter.sun.csd.unb.ca (D. Doucet)
Subject: Compilation Error with gcc-2.5.7 on RS6000
Message-ID: <1994Jan20.025220.1472@jupiter.sun.csd.unb.ca>
Organization: Atlantic Systems Group, UNB Campus, Fredericton, NB, Canada
X-Newsreader: TIN [version 1.1 PL9]
Date: Thu, 20 Jan 1994 02:52:20 GMT
Lines: 72