Subject: Re: problem building gcc4 on sparc64 / netbsd-4
To: None <>
From: S.P.Zeidler <>
List: tech-toolchain
Date: 09/02/2006 08:47:00

if you see the following:

Thus wrote S.P.Zeidler (

> for some weird reason my sparc64 doesn't want to build a gcc4; using
> HAVE_GCC=3 it could build itself a netbsd-4 (as of yesterday),
> but the resulting system can't build itself the default gcc while
> running "./ tools"; it fails doing dependall in
> /home/netbsd/src4/src/tools/gcc.
> Maybe somebody here spots something unusual? I'm including an excerpt
> of the build log, the full build log is at
> [starting excerpt]
> cc -c   -O -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute  -Wno-error  -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc -I/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/build -I/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/../include -I/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/../libcpp/include  -DNETBSD_TOOLS   -o build/insn-conditions.o insn-conditions.c
> /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/ error: `flag_pic' undeclared here (not in a function)
> /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/ error: `flag_pic' undeclared here (not in a function)
> /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/ error: initializer element is not constant

check if obj/tools/gcc/build/gcc/options.h is empty. If it is, hunt down
the gawk in your path and make sure it doesn't get found by the build.
The gcc build prefers gawk, but won't work with it.

-- (S.P.Zeidler)