Another GCC 1.39 and Sys Vr4 problem.

Tom Armistead toma at swsrv1.cirr.com
Mon Apr 22 10:51:26 AEST 1991


Thanks to the replies about hot to fix the messed up header files for Sys Vr4
so that GCC doesn't barf on them.  The solution was the fixinclude script
that comes with GCC 1.39.

Now for the next problem: This is on Unix System Vr4

I have gcc compiled just fine and it will produce executable files just fine,
but if I use the -g command line option, I get an error from cc1 saying that
'-g' is an invalid option - Here's an example of the error?

    /home/src/gcc$ make CC=stage1/gcc CFLAGS="-v -g -O -Bstage1/"

	    stage1/gcc -v -g -O -Bstage1/ -I. -I. -I./config \
	      -DSTANDARD_STARTFILE_PREFIX=\"/usr/local/lib/\" \
	      -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc-\" -c \
	      `echo ./gcc.c | sed 's,^\./,,'`
    gcc version 1.39
     stage1/cpp -v -DSTANDARD_STARTFILE_PREFIX="/usr/local/lib/" -DSTANDARD_EXEC_PREFIX="/usr/local/lib/gcc-" -I. -I. -I./config -undef -D__GNUC__ -Dunix -Di386 -D__unix__ -D__i386__ -D__OPTIMIZE__ gcc.c /var/tmp/cca0028J.cpp
    GNU CPP version 1.39
     stage1/cc1 /var/tmp/cca0028J.cpp -quiet -dumpbase gcc.c -g -O -version -o /var/tmp/cca0028J.s

    cc1: Invalid option `-g'

    GNU C version 1.39 (80386, ATT syntax) compiled by CC.
    default target switches: -m80387
    *** Error code 1 (bu21)

    make: fatal error.


Again, if I don't use '-g' all works fine, I can even build gcc using itself.

I used i386v4 for the config type.  I uncommented the line that allowed
linking to /usr/ucblib/libucb.a to get the alloca routine.  I took the defines
for 'long double' out of hard-params.c (was causing comile errors).  And
that's it...

Any suggestion or Ideas?

Tom
-- 
Tom Armistead - Software Services - 2918 Dukeswood Dr. - Garland, Tx  75040
===========================================================================
toma at swsrv1.cirr.com                {egsner,letni,ozdaltx,void}!swsrv1!toma



More information about the Comp.lang.c mailing list