This is the mail archive of the
mailing list for the GCC project.
Re: Problems creating a 64-bit version of gcc for SunBlade-100.
- To: "Thomas R. Stevenson" <tom at tom dot cc dot wayne dot edu>, <gcc at gcc dot gnu dot org>
- Subject: Re: Problems creating a 64-bit version of gcc for SunBlade-100.
- From: Alex Zhukov <szhukov at priocom dot com>
- Date: Mon, 22 Oct 2001 02:45:46 +0300
- Organization: Priocom
- References: <Pine.GSO.email@example.com>
On Wednesday 17 October 2001 18:09, Thomas R. Stevenson wrote:
> I'm trying to create a 64-bit version of gcc (3.0.1) for a SunBlade
> 100 with Solaris 8.
> I've tried using sparc64-sun-solaris2.8 and sparcv9-sun-solaris2.8.
> The "configuration" script complains about sparc64-sun-solaris2.8, and
> the "make bootstrap" command fails with the following errors:
> ld: elf error: file ../libiberty/libiberty.a(obstack.o): elf_getshdr:
> Request error: class file/memory mismatch ld: warning: file
> ../libiberty/libiberty.a(getpwd.o): wrong ELF class: ELFCLASS32 ld: fatal:
> File processing errors. No output written to cc1
> collect2: ld returned 1 exit status
> make: *** [cc1] Error 1
> make: Leaving directory `/opt/local/src/gcc/object/gcc'
> make: *** [stage2_build] Error 2
> make: Leaving directory `/opt/local/src/gcc/object/gcc
> make: *** [bootstrap] Error 2
> Am I doing something wrong, or can't I create a 64-bit version of gcc
> (3.0.1) for solaris 8 on a SunBlade 100?
You should try first to make gcc as a cross compiler to
sparcv9-sun-solaris2.8: with a command string like this:
#./configure --host=sparc-sun-solaris2.8 --target=sparcv9-sun-solaris2.8
#make && make install
it should work fine and produce gcc that is itself a 32bit executable and
produces 64bit executables and than and _only than_ you should make a fully
64bit gcc. using previously built cross-compiler!
this will force CC to be crosscompiler to sparcv9-sun-solaris2.8 architecture
# ./configure --host=sparcv9-sun-solaris2.8 --target=sparcv9-sun-solaris2.8
# make bootstrap
everything should work just fine. you'll have to tweak some stuff abit but in
general it should work.