This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Build failure with 3.1 CVS on sparc-sun-solaris2.8
- From: Kenneth Lareau <elessar at numenor dot org>
- To: Richard Henderson <rth at redhat dot com>, Jeff Sturm <jsturm at one-point dot com>, gcc at gcc dot gnu dot org
- Date: Wed, 06 Feb 2002 17:29:10 -0800
- Subject: Re: Build failure with 3.1 CVS on sparc-sun-solaris2.8
In message <20020206171648.B28289@redhat.com>, Richard Henderson writes:
>On Wed, Feb 06, 2002 at 02:06:47PM -0500, Jeff Sturm wrote:
>> If you omit --with-cpu=ultrasparc the bootstrap will be
>> straightforward, resulting in a compiler that can run on a 32-bit host but
>> still generate executables for 64-bit ultrasparc.
>
>This indicates a bug in the configury somewhere: --with-cpu should only
>affect arch selection and tuning. It should not affect 32-bit vs 64-bit.
>
>So --with-cpu=ultrasparc should select TARGET_V8PLUS, not TARGET_64BIT.
As per Jeff's suggestion, I removed the --with-cpu option and the build
completed successfully without any further issues; of this, I am grateful.
However, on a whim, I installed the new binaries, then tried to rebuild
gcc with the following configure:
CC="gcc -m64" ../configure --with-cpu=ultrasparc --prefix=/usr/local/gcc64 sparcv9-sun-solaris2.8
Things went well during the first stage, and into the second, until this
point:
stage1/xgcc -Bstage1/ -B/usr/local/gcc64/sparcv9-sun-solaris2.8/bin/ -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include ../../gcc/expr.c -o expr.o
xgcc: Internal error: Segmentation Fault (program cc1)
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
gmake[2]: *** [expr.o] Error 1
It took quite a while (nearly 10 minutes) before it errored out, so it
looks like gcc may not be sufficient to build itself in full 64-bit. If
additional information is desired regarding this, I can produce it.
Once again, thanks for the help; it looks like there's a light at the end
of the tunnel for 64-bit support on Sparc with gcc.
Kenneth Lareau
elessar@numenor.org