gcc-3.4.1 build problem

James E Wilson wilson@specifixinc.com
Sun Aug 1 23:41:00 GMT 2004


John R. Shannon wrote:
> I've been working on porting gcc 3.4.x to various NetBSD platforms. I've been 
> successful on several. Occasionally, the boootstrap build stops in stage 1 
> with the following error; does this look familiar to anyone:

This is actually a stage2 build failure.  The stage1 build completed, 
and now we are using the stage1 compiler in the stage1 directory to 
build the stage2 compiler.

> stage1/xgcc -Bstage1/ -B/usr/pkg/gcc34/alpha--netbsd1.6.2/bin/ -c   -g -O2 
>...
>         /home/shannonj/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/c-opts.c -o 
> c-opts.o
> /home/shannonj/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/c-opts.c:120: warning: ISO 
> C forbids forward references to `enum' types
> /home/shannonj/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/c-opts.c:120: warning: 
> "enum opt_code" declared inside parameter list

Obviously a problem with the "enum opt_code" definition.  A quick grep 
shows that it is defined in the options.h file in the build directory. 
So look at this file, and figure out what is wrong with it.  You should 
also look at the makefile output that created it.  I see that Makefile 
rule that creates it runs awk.  Maybe you have a broken or missing awk?
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list