This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-3.2 IRIX 5.3 installation
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: werner dot mausshardt at bruker dot de
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: 05 Sep 2002 12:54:51 +0200
- Subject: Re: gcc-3.2 IRIX 5.3 installation
- References: <m17mtC7-00i1aWC@nike.software.bruker.de>
wem@bruker.de (Werner Mausshardt) writes:
> building gcc-3.2 under IRIX 5.3 (make bootstrap)
> stops with following error message:
>
> stage1/xgcc -Bstage1/ -B/usr/local/gcc-3.2/mips-sgi-irix5.3/bin/ -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
> gengenrtl.o ../libiberty/libiberty.a
> /usr/bin/ld:
> Object file format error in: gengenrtl.o: bad symbolic header (magic number)
> collect2: ld returned 1 exit status
> make[2]: *** [gengenrtl] Error 1
> make[2]: Leaving directory `/usr/people/wem/gccobj/gcc'
> make[1]: *** [stage2_build] Error 2
> make[1]: Leaving directory `/usr/people/wem/gccobj/gcc'
> make: *** [bootstrap] Error 2
>
>
> same problem occured with gcc-3.1.
> I am aware that this is a problem of the native IRIX linker /usr/bin/ld
> but I have no idea of a workaround
>
> configuration was:
> CC=/usr/local/gcc-3.0.3/bin/gcc ../gcc-3.2/configure --prefix=/usr/local/gcc-3.2 --with-gnu-as --disable-shared --enable-languages=c,c++
Which version of GNU as (binutils) are you trying to use? I had serious
problems with 2.12.1 generating invalid O32 (same as IRIX 5) object files,
while 2.13 seems to be mostly ok. In the cases I investigated, the IRIX ld
(6.2 and 6.5 O32, not 5.3) correctly errored out on those files.
Besides, unless you have installed the resulting as in
/usr/local/gcc-3.2/gcc-lib/mips-sgi-irix5.3/3.2/as, you need to point
configure at the as path with --with-as=<path to as>.
And finally, are you really running IRIX 5.3 or merely trying to get an O32
gcc on IRIX 6? In the latter case, you may want to have a look at the
mainline, which already includes most of my patches to produce an
mips-sgi-irix6*o32 configuration.
Rainer