This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-3.4.1 build problem
- From: James E Wilson <wilson at specifixinc dot com>
- To: john at johnrshannon dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 01 Aug 2004 16:40:59 -0700
- Subject: Re: gcc-3.4.1 build problem
- References: <200407300817.14255.john@johnrshannon.com>
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