This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Solaris 2.7 and 64-bit compiling
- To: egcs at egcs dot cygnus dot com
- Subject: Solaris 2.7 and 64-bit compiling
- From: Raffaele LaPietra <Raffaele dot Lapietra at East dot Sun dot COM>
- Date: Fri, 9 Apr 1999 14:17:41 -0400 (EDT)
- Reply-To: Raffaele LaPietra <Raffaele dot Lapietra at East dot Sun dot COM>
------------- Begin Forwarded Message -------------
X-Unix-From: mikap@iki.fi Fri Apr 9 11:08:27 EDT 1999
X-Unix-From: mikap@iki.fi Fri Apr 9 11:08:27 EDT 1999
Article: 134475 of comp.sys.sun.admin
From: Mika Perki|m{ki <mikap@iki.fi>
Subject: Solaris 2.7 and 64-bit compiling
Date: 8 Apr 1999 21:09:52 GMT
NNTP-Posting-Host: kielo.uta.fi
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
User-Agent: tin/pre-1.4-19990216 ("Styrofoam") (UNIX) (SunOS/5.6 (sun4u))
Xref: ix.netcom.com comp.sys.sun.admin:134475
Hello,
- Environment: Sun Ultrasparc (Ultra-5), Solaris 2.7 (64-bit)
- Task: compile a 64-bit C program
- Available compilers: gcc, egcs and standard Solaris tools (as, ld)
- gcc does not support 64-bit -> out of question
- egcs-1.1.2 should support -> ok
- gcc-binutils (gas, gnu ld) don't support 64-bit -> out of question
So I'm using egcs-1.1.2 and Solaris as+ld. By:
foo% egcs -mcpu=v9 -Wa,-xarch=v9
things work fine and a 64-bit object file gets produced:
foo% file source.o
source.o: ELF 64-bit MSB relocatable SPARCV9 Version 1
But. The linker does not recognize the object file:
foo% /usr/ccs/bin/ld source.o
source.o: file not recognized: File format not recognized
Why does it go like this and is there any way to get it working?
Without Sun's C compiler, that is.
-- .. -.- .-
Mika Perkiömäki
mikap@iki.fi
------------- End Forwarded Message -------------