This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problme building gcc cvs trunk on sparc64-linux: gcc/real.h:67: error: size of array `test_real_width' is negative
- From: Christian Jönsson <christian at j-son dot org>
- To: gcc <gcc at gcc dot gnu dot org>
- Date: Sun, 13 Oct 2002 16:36:21 +0200
- Subject: Problme building gcc cvs trunk on sparc64-linux: gcc/real.h:67: error: size of array `test_real_width' is negative
This was on a Aurora SPARC Linux 0.32 build (Nashville) Ultra1
sun4u system with these packages:
binutils 2.13.90 (Wed Oct 9 20:29:45 UTC 2002 cvs trunk)
dejagnu-1.4.3-0 (built ftp://ftp.gnu.org/gnu/dejagnu/dejagnu-1.4.3-0.src.rpm)
expect-5.38.0-74 (from rawhide)
gcc 3.2.1 (Thu Oct 3 07:52:57 UTC 2002 cvs branch)
glibc-2.2.5-36
kernel-2.4.18-0.998sparc
tcl-8.3.3-74 (from rawhide)
In-tree joined gcc and binutils cvs trunks.
When trying to compile gcc and binutils I get the following error:
...
echo timestamp > clean_s1
make CC=" stage1/xgcc -Bstage1/ -B/usr/local/gcc-binutils/sparc64-linux/bin/" \
STAGE_PREFIX=stage1/ \
ADAC="\$(CC)" CFLAGS="-g -O2 -m64 -mtune=ultrasparc -pipe" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/usr/local/gcc-binutils/lib LANGUAGES="c gcov c++ f77 java objc" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
make[2]: Entering directory `/usr/local/src/gcc-binutils/trunk/objdir/gcc'
stage1/xgcc -Bstage1/ -B/usr/local/gcc-binutils/sparc64-linux/bin/ -c -g -O2 -m64 -mtune=ultrasparc -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc -I/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/. -I/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/config -I/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/../include /usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/gengenrtl.c -o gengenrtl.o
In file included from /usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/gengenrtl.c:29:
/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/real.h:67: error: size of array `test_real_width' is negative
make[2]: *** [gengenrtl.o] Error 1
make[2]: Leaving directory `/usr/local/src/gcc-binutils/trunk/objdir/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/usr/local/src/gcc-binutils/trunk/objdir/gcc'
make: *** [bootstrap-lean] Error 2
#!/bin/sh
# This file was generated automatically by configure. Do not edit.
# This directory was configured as follows:
/usr/local/src/gcc-binutils/trunk/gcc-binutils/configure --with-gcc-version-trigger=/usr/local/src/gcc-binutils/trunk/gcc-binutils/gcc/version.c --host=sparc64-linux --prefix=/usr/local/gcc-binutils --enable-shared --enable-threads=posix --norecursion
# using "mt-frag"
LAST_UPDATED: Sun Oct 13 13:26:24 UTC 2002
BOOT_CFLAGS='-g -O2 -m64 -mtune=ultrasparc -pipe'
Please not that this is for target sparc64-linux and that I use the
-m64 switch to the bootstrap of stages 2 and 3. (Is -m64 appropriate?)
Cheers,
/ChJ