Subject: gcc34 build breaks on current kernel
To: None <current-users@netbsd.org>
From: Zafer Aydogan <zafer@gmx.org>
List: current-users
Date: 09/11/2004 15:51:20
Dear Newsgroup,

i just noticed that gcc34 does not build on machines with 2.0 Kernel.
On 1.6 it builds fine.
Is the problem Kernel based or am I wrong:

error dump:
...
for dir in . cp f objc ; \
do \
  rm -f $dir/*.{gcda,gcno} ; \
done
gmake[2]: Leaving directory `/usr/pkgsrc/lang/gcc34/work/obj/gcc'
echo timestamp > stage1_copy
echo stage2_build > stage_last
/usr/pkg/bin/gmake CC=" stage1/xgcc -Bstage1/
-B/usr/pkg/gcc34/i386--netbsdelf2.0/bin/" CC_FOR_BUILD=" stage1/xgcc
-Bstage1/ -B/usr/pkg/gcc34/i386--netbsdelf2.0/bin/" \
         STAGE_PREFIX=stage1/ \
         ADAFLAGS="" CFLAGS="-g -O2" LDFLAGS=""
WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-pedantic -Wno-long-long
-Wold-style-definition " libdir=/usr/pkg/gcc34/lib LANGUAGES="c gcov
gcov-dump c++ f77 objc"
MAKEINFO="/usr/pkgsrc/lang/gcc34/work/gcc-3.4.1/missing makeinfo
--split-size=5000000" MAKEINFOFLAGS="--no-split" MAKEOVERRIDES=
OUTPUT_OPTION="-o \$@" \
         CFLAGS="-g -O2" WERROR=""
gmake[2]: Entering directory `/usr/pkgsrc/lang/gcc34/work/obj/gcc'
stage1/xgcc -Bstage1/ -B/usr/pkg/gcc34/i386--netbsdelf2.0/bin/ -c   -g -O2
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wold-style-definition     -DHAVE_CONFIG_H
-DGENERATOR_FILE -I/usr/pkgsrc/lang/gcc34/work/.buildlink/include 
-I/usr/include -I/usr/pkg/include -I/usr/pkg/include   -I. -I.
-I/usr/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc
-I/usr/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/.
-I/usr/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/../include -I../intl
/usr/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/genmodes.c -o genmodes.o
stage1/xgcc -Bstage1/ -B/usr/pkg/gcc34/i386--netbsdelf2.0/bin/ -c   -g -O2
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wold-style-definition     -DHAVE_CONFIG_H
-DGENERATOR_FILE -I/usr/pkgsrc/lang/gcc34/work/.buildlink/include 
-I/usr/include -I/usr/pkg/include -I/usr/pkg/include   -I. -I.
-I/usr/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc
-I/usr/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/.
-I/usr/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/../include -I../intl
/usr/pkgsrc/lang/gcc34/work/gcc-3.4.1/gcc/errors.c -o errors.o
stage1/xgcc -Bstage1/ -B/usr/pkg/gcc34/i386--netbsdelf2.0/bin/   -g -O2
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-pedantic -Wno-long-long -Wold-style-definition     -DHAVE_CONFIG_H
-DGENERATOR_FILE  -o genmodes \
 genmodes.o errors.o ../libiberty/libiberty.a
./genmodes -h > tmp-modes.h
Floating point exception - core dumped
gmake[2]: *** [s-modes] Error 136
gmake[2]: Leaving directory `/usr/pkgsrc/lang/gcc34/work/obj/gcc'
gmake[1]: *** [stage2_build] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/lang/gcc34/work/obj/gcc'
gmake: *** [bootstrap] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/lang/gcc34
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/gcc34

Kernerl is 2.0g GENERIC/i386
This is the 2nd machine with a current kernel where gcc34 does not build.

Regards, Zafer.