This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problme building gcc cvs trunk on sparc64-linux: gcc/real.h:67: error: size of array `test_real_width' is negative


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]