Subject: problems building -current gcc...
To: None <current-users@NetBSD.ORG>
From: the Riz <riz@boogers.sf.ca.us>
List: current-users
Date: 05/04/1996 19:27:46
In trying to build gcc from today's freshly-supped sources, I'm afraid I
may have screwed something up... I'm hoping what I did wrong is easily
fixed.  The following is on a sparc 2, running -current as of feb 19th
(NetBSD 1.1A):

I last built the world on Feb 19th, and everything is up-to-date as of
then.  I ran into a compile-time error trying to rebuild the kernel, so I
thought perhaps rebuilding gcc would help out;  I seemed to recall
something else changing even after 2.7.2's incorporation.

So, I rebuild yacc and tsort, then built gcc up until an error in
libgcc... No problem, I figured, I just have to install what I've got so
far, and so I did a 'make install' in each of the subdirectories.  Tried
again... a different error building libgcc this time.  So, I figured,
perhaps I need to install the includes.  I did so.  Now, I get *lots* of
syntax errors trying to compile *anything*.  Here's what attempting to
build gcc looks like:

boogers# make
===> common
===> cc
===> cpp
===> cc1
===> cc1plus
===> cc1obj
===> g++
===> libgcc
cc -O -I/usr/src/gnu/usr.bin/gcc/libgcc/../common
-I/usr/src/gnu/usr.bin/gcc/libgcc/../arch
-I/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc -Werror  -c -DL_op_new -o
_op_new.o /usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c
In file included from
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/netbsd.h:1,
                 from /usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/tm.h:1,
                 from
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/xm-sparc.h:40,
                 from
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/xm-netbsd.h:3,
                 from
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/tconfig.h:1,
                 from /usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c:33:
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/sparc.h:46: syntax error
before `,'
cc1: warnings being treated as errors
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/sparc.h:46: warning: no
semicolon at end of struct or union
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/sparc.h:120: syntax error
before `)'
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/sparc.h:842: syntax error
before `,'
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/sparc.h:842: warning: no
semicolon at end of struct or union
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/sparc.h:1604: syntax error
before `union'
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/sparc.h:1668: syntax error
before `)'
/usr/src/gnu/usr.bin/gcc/libgcc/../arch/sparc/sparc.h:1669: syntax error
before `)'
In file included from
/usr/src/gnu/usr.bin/gcc/libgcc/../common/machmode.h:71,
                 from /usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c:34:
/usr/src/gnu/usr.bin/gcc/libgcc/../common/machmode.def:64: syntax error
before `,'
In file included from /usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c:34:
/usr/src/gnu/usr.bin/gcc/libgcc/../common/machmode.h:76: warning: no
semicolon at end of struct or union
/usr/src/gnu/usr.bin/gcc/libgcc/../common/machmode.h:91: syntax error
before `,'
/usr/src/gnu/usr.bin/gcc/libgcc/../common/machmode.h:92: warning: no
semicolon at end of struct or union
/usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c:66: syntax error before
`__attribute__'
/usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c:67: syntax error before
`__attribute__'
/usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c:68: syntax error before
`__attribute__'
/usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c:69: syntax error before
`__attribute__'
/usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c:70: syntax error before
`__attribute__'
/usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c:72: syntax error before
`__attribute__'
/usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c:73: syntax error before
`__attribute__'
/usr/src/gnu/usr.bin/gcc/libgcc/libgcc2.c:82: syntax error before
`__attribute__'
cc: Internal compiler error: program cc1 got fatal signal 11
*** Error code 1

Stop.
*** Error code 1

Stop.
boogers# 


Any suggestions?  I *do* have a complete backup of the system, but that's a
 *major* pain in the ass to restore, so I don't want to go that route
unless I absolutely have to...

Thanks in advance for any assistance...
+jeff
--