Article View: gnu.gcc.bug
Article #6021Compiling gcc2.7.2.1 on SGI INDY running IRIX 6.2
From: Abed M. Hammoud, D.sc
Date: Sat, 04 Jan 1997 00:00
Date: Sat, 04 Jan 1997 00:00
129 lines
5786 bytes
5786 bytes
Hello I have been trying for the last day or so to get gcc2.7.2.1 to compile
under the above environment with nbo luck. If any body know of any pointers
that could help me please let me know.
Basicaly I do the following steps:
./configure --with-stabs
I get the following from the configure script:
This appears to be a mips-sgi-irix6.2 system.
Using `./config/mips/mips.c' to output insns.
Using `./config/mips/mips.md' as machine description file.
Using `./config/mips/iris6.h' as target machine macro file.
Using `./config/mips/xm-iris6.h' as host machine macro file.
Merged mips/x-iris6.
Merged mips/t-iris6.
Merged c++ fragment(s).
Created `./Makefile'.
Merged mips/x-iris6.
Merged mips/t-iris6.
Created `cp/Makefile'.
Links are now set up to build a native compiler for mips-sgi-irix6.2.
Then I call make as follow
make LANGUAGE="c c++"
from make I will list a sample of the warrnings that I get and the place at
which the compilation stops:
cc -c -DIN_GCC -g -I. -I. -I./config fold-const.c
cfe: Warning 848: fold-const.c, line 116: Lshift with undefined behaviour.
words[0] = ((low) & (((unsigned long ) 1 << (64 /2)) - 1)) ;
------------------------^
cfe: Warning 848: fold-const.c, line 118: Lshift with undefined behaviour.
words[2] = ((hi) & (((unsigned long ) 1 << (64 /2)) - 1)) ;
-----------------------^
cfe: Warning 848: fold-const.c, line 131: Lshift with undefined behaviour.
*low = words[0] | words[1] * ((unsigned long ) 1 << 64 /2) ;
etc...
cc -c -DIN_GCC -g -I. -I. -I./config expmed.c
cfe: Warning 848: expmed.c, line 2434: Lshift with undefined behaviour.
unsigned long ml_lo = (mlow_hi << (64 - 1)) | (mlow_lo >> 1);
------------------------------^
cfe: Warning 848: expmed.c, line 2435: Lshift with undefined behaviour.
unsigned long mh_lo = (mhigh_hi << (64 - 1)) | (mhigh_lo >> 1);
------------------------------^
cc -c -DIN_GCC -g -I. -I. -I./config emit-rtl.c
cfe: Warning 848: emit-rtl.c, line 1120: Lshift with undefined behaviour.
return gen_rtx (CONST_INT, VOIDmode, (long ) ((((long) k[! ((target_flags & 0x00010000)
!= 0)]) << 32) | (long) k[((target_flags & 0x00010000) != 0)])) ;
------------------------------------------------^
cc -c -DIN_GCC -g -I. -I. -I./config real.c
cfe: Warning 848: real.c, line 3948: Lshift with undefined behaviour.
*i = ((unsigned long ) 1) << (64 - 1);
------^
cfe: Warning 848: real.c, line 3958: Lshift with undefined behaviour.
*i = (((unsigned long ) 1) << (64 - 1)) - 1;
---------^
And finaly I get the error:
In file included from sarray.c:27:
./objc/sarray.h:98: zero width for bit-field `boffset'
./objc/sarray.h:99: zero width for bit-field `eoffset'
sarray.c: In function `sarray_at_put':
sarray.c:126: warning: type mismatch in implicit declaration for built-in function `memcpy'
sarray.c: In function `sarray_realloc':
sarray.c:241: warning: comparison is always 0 due to limited range of data type
make[1]: *** [sarray.o] Error 1
make[1]: Leaving directory `/usr/local/gcc/gcc-2.7.2/objc'
make: *** [libobjc.a] Error 2
Which seems to be an Error while making objective C...(which I did not ask for :)
I also tried to just make the c language compiler...I got the following:
./enquire.c: In function `basic':
./enquire.c:1540: warning: integer overflow in expression
./enquire.c:1547: warning: integer overflow in expression
./enquire.c:1608: warning: integer overflow in expression
./enquire.c: In function `sprop':
./enquire.c:2066: warning: comparison is always 0 due to limited range of data type
./enquire.c: In function `fprop':
./enquire.c:2362: warning: integer overflow in expression
./enquire.c:2368: warning: integer overflow in expression
./enquire.c:2732: fixed or forbidden register was spilled.
This may be due to a compiler bug or to impossible asm
statements or clauses.
make: *** [enquire.o] Error 1
So please help me out here....I need to get this going soon.
Thanks,
Here is the hinv result:
1 150 MHZ IP22 Processor
FPU: MIPS R4000 Floating Point Coprocessor Revision: 0.0
CPU: MIPS R4400 Processor Chip Revision: 5.0
On-board serial ports: 2
On-board bi-directional parallel port
Data cache size: 16 Kbytes
Instruction cache size: 16 Kbytes
Secondary unified instruction/data cache size: 1 Mbyte on Processor 0
Main memory size: 160 Mbytes
Vino video: unit 0, revision 0
Integral ISDN: Basic Rate Interface unit 0, revision 1.0
Integral Ethernet: ec0, version 1
Integral SCSI controller 0: Version WD33C93B, revision D
CDROM: unit 5 on SCSI controller 0
Disk drive: unit 3 on SCSI controller 0
Disk drive: unit 1 on SCSI controller 0
Graphics board: Indy 24-bit
--
Abed M. Hammoud, D.Sc. abed@oregano.wustl.edu
Surgical Navigation Technologies, Inc. Voice: (314) 863-0817
W: 530 Compton street, Broomfield, CO 80020 Fax: (314) 935-7500
H: 6643 Washington Ave. 2E St. Louis MO 63130 http://oregano.wustl.edu/~abed
Technical Details
Message-ID:
<32CEAED9.41C6@oregano.wustl.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,edb1e84edbeadd62,start X-Google-Attributes: gid113d02,public From: "Abed M. Hammoud, D.sc" <abed@oregano.wustl.edu> Subject: Compiling gcc2.7.2.1 on SGI INDY running IRIX 6.2 Date: 1997/01/04 Message-ID: <32CEAED9.41C6@oregano.wustl.edu> X-Deja-AN: 207726785 sender: abed@oregano.mit.edu content-type: text/plain; charset=us-ascii organization: Surgical Navigation Technologies, Inc. x-gateway: relay7.UU.NET from bug-gcc to gnu.gcc.bug; Sat, 4 Jan 1997 14:26:06 EST mime-version: 1.0 newsgroups: gnu.gcc.bug x-mailer: Mozilla 2.0S (X11; I; IRIX 6.2 IP22)