Can't build gcc on SunOS

Kevin Scaldeferri kevin@theory.theory.caltech.edu
Sun Sep 26 13:06:00 GMT 1999


I'm trying to install gcc 2.95.1 on a system running SunOS 4.1.3.  It
currently has a version somewhere around 2.7 installed and most other
gnu utilities of a similar vintage (c. 1997).

When I attempt to 'make bootstrap' the build fails using either the
old version of gcc or cc (whichever variety Sun shipped with the OS).
gcc barfs on cppinit.c on the section around lines 220-240, with a lot
of cannot parse before = type messages.  (Sorry I don't have the exact
message, but that was yesterday's attempt and it gets about a hour
into the build before it happens, so I don't feel like reproducing
it.)  cc complains about unroll.c:

"/home/kevin/install/gnu/gcc-2.95.1/gcc/unroll.c", line 772: warning: illegal combination of pointer and integer, op =
as: "/tmp/ccom.15896.1.s", line 11602: error: statement syntax
make[2]: *** [unroll.o] Error 1

Since I'm not trying to build shared libraries, it doesn't seem like
the note in the host/target specific installation notes ought to be
relevant.


A couple final questions:

This machine will be upgraded to 4.1.4 very soon for Y2K compliance.
I think these versions of the OS are similar enough that it won't make
any difference, but I thought I'd check to see if there's any reason I
ought to wait until after the OS upgrade to install the new gcc.

I know you can find compiled binaries for Solaris;  is there anywhere
you can get them for SunOS?


Thanks,
Kevin


Eliminate duplication to email.



More information about the Gcc-help mailing list