Article View: gnu.gcc.help
Article #52893(none)
From: V22C: :PCOHEN
Date: Tue, 28 Apr 1992 20:28
Date: Tue, 28 Apr 1992 20:28
106 lines
4776 bytes
4776 bytes
To: bug-gcc@prep.ai.mit.edu
From: Paul Cohen (pcohen@ada.nusc.navy.mil)
Subject:GNU CC Package
I have tried to install the GNU CC package on a Silicon Graphics Iris
Workstation without success and hope you can help. We are Running
IRIX 4.0.1 on a Silicon Graphics Personal Iris 4D/35. I am building
the GNU CC on a host that is the intended target.
I have been unable to build gnu cc for mips-sgi-irix4.
However, I was able to get GNU CC to compile using
configure --host=mips-sgi-iris --target=mips-sgi-iris
and using the native MIPS C compiler
but when I did a compare I came up with differences in the object code
files. Is this due to the MIPS COFF format?
I downloaded GNU gcc-2.1.tar.Z from prep.ai.mit.edu via anonymous FTP using
binary mode. Placed file in /usr/src/GNU/GCC directory. Tar creates
"/usr/src/GNU/GCC/gcc-2.1" as the srcdir. Then I followed notes for
INSTALLING GNU CC using the following commands and when I did a
make I got the following error(s).
Included is all the information and commands I used in my attempt to
build gcc. I am running the C shell (csh) as my default login shell.
iris-27{cohen}85: pwd
/usr/src/GNU/GCC
iris-27{cohen}86: hinv
1 36 MHZ IP12 Processor
FPU: MIPS R2010A/R3010 VLSI Floating Point Chip Revision: 4.0
CPU: MIPS R2000A/R3000 Processor Chip Revision: 3.0
On-board serial ports: 4
Data cache size: 64 Kbytes
Instruction cache size: 64 Kbytes
Main memory size: 16 Mbytes
Integral Ethernet: ec0, version 0
CDROM: unit 6 on SCSI controller 0
Tape drive: unit 2 on SCSI controller 0: QIC 150
Disk drive: unit 1 on SCSI controller 0
Integral SCSI controller 0: Version WD33C93A
Iris Audio Processor, rev 3
Graphics board: GR1.2 Bit-plane, Z-buffer, Turbo options installed
iris-27{cohen}87: uncompress gcc-2.1.tar.Z
iris-27{cohen}88: tar xvf gcc-2.1.tar
iris-27{cohen}89: cd gcc-2.1
iris-27{cohen}90: configure --host=mips-sgi-irix4 --target=mips-sgi-irix4
Linked `config.h' to `./config/xm-irix4.h'
Linked `tm.h' to `./config/iris.h'
Linked `md' to `./config/mips.md'
Linked `aux-output.c' to `./config/mips.c'
Linked `tconfig.h' to `./config/xm-irix4.h'
Merged x-iris.
Merged t-mips.
Created `Makefile'.
Links are now set up for target mips-sgi-irix4.
iris-27{cohen}91: make LANGUAGES="c"
cc -Wf,-XNg1500 -O1 -g -I. -I. -I./config \
-DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/mips-sgi-irix4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/include\" \
-DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" \
-DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
-DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/mips-sgi-irix4/`awk '{printf "%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/sys-include\" \
-c `echo ./cccp.c | sed 's,^\./,,'`
accom: Warning 100: cccp.c, line 5702: statement not reached
return 0;
----------^
accom: Warning 100: cccp.c, line 7607: statement not reached
return 0;
----------^
Found Uaos u-code in unexpected spot. Perhaps value returned from alloca(3) was
not assigned to simple variable. (See alloca man page)
ugen: internal : at your source line 3969 : (ugen internal file build.p, line 1395)
Cannot continue
*** Error code 1
Stop.
This tells me that the native MIPS C compiler is using the builtin function
alloca to compile cccp.c but it cannot assign the pointer value to anything
but a simple data type.
line 3969 from cccp.c:
fp->buf = (U_CHAR *) alloca (st_size + 2);
this will NOT compile, however:
U_CHAR *tmp;
tmp = (U_CHAR *) alloca (st_size + 2);
fp->buf = tmp;
will compile correctly, using a temporary variable.
I would be eternally greatful for your assistance.
Respectfully Yours,
Paul Cohen
(pcohen@ada.nusc.navy.mil)
(cohen@iris-15.nusc.navy.mil)
1-(401) 841-4114 or 841-4771 or
1-(401) 849-0400
Technical Details
Message-ID:
<9204281929.AA17677@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ada.nusc.navy.mil!PCOHEN%V22C.DEcnetShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,be78027ca9aa7672,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-04-28 13:28:00 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ada.nusc.navy.mil!PCOHEN%V22C.DEcnet From: PCOHEN%V22C.DEcnet@ada.nusc.navy.mil (V22C: :PCOHEN) Subject: (none) Message-ID: <9204281929.AA17677@life.ai.mit.edu> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 28 Apr 1992 20:28:00 GMT Lines: 107