public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Problme building gcc cvs trunk on sparc64-linux: gcc/real.h:67: error: size of array `test_real_width' is negative
@ 2002-10-13 15:47 Christian Jönsson
  2002-10-14  5:36 ` David S. Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Jönsson @ 2002-10-13 15:47 UTC (permalink / raw)
  To: gcc

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
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problme building gcc cvs trunk on sparc64-linux: gcc/real.h:67: error: size of array `test_real_width' is negative
  2002-10-13 15:47 Problme building gcc cvs trunk on sparc64-linux: gcc/real.h:67: error: size of array `test_real_width' is negative Christian Jönsson
@ 2002-10-14  5:36 ` David S. Miller
  2002-10-14  5:44   ` Christian Jönsson
  0 siblings, 1 reply; 3+ messages in thread
From: David S. Miller @ 2002-10-14  5:36 UTC (permalink / raw)
  To: christian; +Cc: gcc

   From: Christian Jönsson <christian@j-son.org>
   Date: Sun, 13 Oct 2002 16:36:21 +0200
   
   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?)

If your system "gcc" is not building 64-bit binaries in the first
stage of the bootstrap, you cannot use the target sparc64-linux.

The first stage and the gcc you are creating, must be generating code
for the same ABI during a host build.  In this case sparc 32-bit or
sparc 64-bit.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problme building gcc cvs trunk on sparc64-linux: gcc/real.h:67: error: size of array `test_real_width' is negative
  2002-10-14  5:36 ` David S. Miller
@ 2002-10-14  5:44   ` Christian Jönsson
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Jönsson @ 2002-10-14  5:44 UTC (permalink / raw)
  To: gcc

On Mon, Oct 14, 2002 at 12:04:15AM -0700, David S. Miller wrote:
>    From: Christian Jönsson <christian@j-son.org>
>    Date: Sun, 13 Oct 2002 16:36:21 +0200
>    
>    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?)
> 
> If your system "gcc" is not building 64-bit binaries in the first
> stage of the bootstrap, you cannot use the target sparc64-linux.
> 
> The first stage and the gcc you are creating, must be generating code
> for the same ABI during a host build.  In this case sparc 32-bit or
> sparc 64-bit.

Thanks for your reply. I've kept the BOOT_CFLAGS as is and I'm now
configuring like this:

export BOOT_CFLAGS='-g -O2 -m64 -mtune=ultrasparc -pipe'
env CC='gcc -m64 -mtune=ultrasparc' \
LD_LIBRARY_PATH=/usr/local/gcc-binutils/lib:/usr/lib64 \
/usr/local/src/gcc-binutils/trunk/gcc-binutils/configure \
sparc64-linux --prefix=/usr/local/gcc-binutils \
--enable-shared --enable-threads=posix

Cheers,

/ChJ

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-14  8:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-13 15:47 Problme building gcc cvs trunk on sparc64-linux: gcc/real.h:67: error: size of array `test_real_width' is negative Christian Jönsson
2002-10-14  5:36 ` David S. Miller
2002-10-14  5:44   ` Christian Jönsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).