Subject: problem building gcc4 on sparc64 / netbsd-4
To: None <tech-toolchain@netbsd.org>
From: S.P.Zeidler <spz@serpens.de>
List: tech-toolchain
Date: 08/11/2006 17:01:48
Hi,
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 "./build.sh 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
http://serpens.de/~spz/build.tools
relevant mk.conf is:
BSDSRCDIR=/home/netbsd/src4/src
MKOBJ=yes
BSDOBJDIR=/home/netbsd/${MACHINE}/obj
TOOLDIR=/home/netbsd/${MACHINE}/tools
DESTDIR=/home/netbsd/${MACHINE}/snap
RELEASEDIR=/home/netbsd/${MACHINE}/release
[starting excerpt]
cc -O -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genconditions \
build/genconditions.o build/gensupport.o build/dummy-conditions.o build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o \
build/errors.o ../build-sparc64-unknown-netbsd4.0./libiberty/libiberty.a
build/genconditions /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/sparc.md > tmp-conditions.c
/bin/sh /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/../move-if-change tmp-conditions.c insn-conditions.c
echo timestamp > s-conditions
TARGET_CPU_DEFAULT="" \
HEADERS="config/sparc/sparc-protos.h tm-preds.h" DEFINES="" \
/bin/sh /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/mkconfig.sh tm_p.h
cc -c -O -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -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/genpreds.o /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/genpreds.c
cc -c -O -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -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/print-rtl.o /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/print-rtl.c
cc -O -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genpreds \
build/genpreds.o build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o build/gensupport.o build/dummy-conditions.o build/print-rtl.o \
build/errors.o ../build-sparc64-unknown-netbsd4.0./libiberty/libiberty.a
build/genpreds -h /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/sparc.md > tmp-preds.h
/bin/sh /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/../move-if-change tmp-preds.h tm-preds.h
build/genpreds /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/sparc.md > tmp-preds.c
/bin/sh /home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/../move-if-change tmp-preds.c insn-preds.c
echo timestamp > s-preds
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/sparc.md:1840: error: `flag_pic' undeclared here (not in a function)
/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/sparc.md:1840: error: `flag_pic' undeclared here (not in a function)
/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/sparc.md:1841: error: initializer element is not constant
/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/sparc.md:1841: error: (near initialization for `insn_conditions[0].value')
/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/sparc.md:1841: warning: missing initializer
/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/sparc.md:1841: warning: (near initialization for `insn_conditions[0].value')
/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/sparc.md:1841: error: initializer element is not constant
/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/sparc.md:1841: error: (near initialization for `insn_conditions[0]')
[>1000 similar lines deleted]
/home/netbsd/src4/src/tools/gcc/../../gnu/dist/gcc4/gcc/config/sparc/sparc.md:7777: error: (near initialization for `insn_conditions[141]')
nbgmake[1]: *** [build/insn-conditions.o] Error 1
nbgmake[1]: Leaving directory `/home/netbsd/sparc64/obj/tools/gcc/build/gcc'
nbgmake: *** [all-gcc] Error 2
*** Failed target: .build_done
*** Failed command: (cd build && /usr/bin/env -i CC=cc CFLAGS=-O CPPFLAGS= CXX=c++ CXXFLAGS=-O INSTALL=/home/netbsd/sparc64/tools/bin/nbinstall\ -c\ \ -r LDFLAGS= AR=ar RANLIB=ranlib LEX=/home/netbsd/sparc64/tools/bin/nblex MAKE=/home/netbsd/sparc64/tools/bin/nbgmake PATH="/home/netbsd/sparc64/tools/bin:$PATH" YACC=/home/netbsd/sparc64/tools/bin/nbyacc MACHINE= MAKEINFO=/home/netbsd/sparc64/tools/bin/nbmakeinfo LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= EXTRA_PARTS= CPPFLAGS=-DNETBSD_TOOLS AR=ar RANLIB=ranlib BISON=true DESTDIR= INSTALL=/home/netbsd/sparc64/tools/bin/nbinstall\ -c\ \ -r /home/netbsd/sparc64/tools/bin/nbgmake -e MACHINE= MAKEINFO=/home/netbsd/sparc64/tools/bin/nbmakeinfo LIBGCC= LIBGCC1= LIBGCC1_TEST= LIBGCC2= INSTALL_LIBGCC= EXTRA_PARTS= CPPFLAGS=-DNETBSD_TOOLS AR=ar RANLIB=ranlib BISON=true DESTDIR= INSTALL=/home/netbsd/sparc64/tools/bin/nbinstall\ -c\ \ -r all-gcc)
*** Error code 2
Stop.
nbmake: stopped in /home/netbsd/src4/src/tools/gcc
*** Failed target: dependall
*** Failed command: cd /home/netbsd/src4/src/tools/gcc; /home/netbsd/sparc64/tools/bin/nbmake realall
*** Error code 1
Stop.
nbmake: stopped in /home/netbsd/src4/src/tools/gcc
*** Failed target: dependall-gcc
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/home/netbsd/src4/src/tools" ;; *) this="${dir}/"; real="/home/netbsd/src4/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /home/netbsd/sparc64/tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget gcc dependall
*** Error code 1
Stop.
nbmake: stopped in /home/netbsd/src4/src/tools
ERROR: Failed to make dependall tools
*** BUILD ABORTED ***
[end of log]
regards,
spz
--
spz@serpens.de (S.P.Zeidler)