From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12029 invoked by alias); 7 Sep 2002 08:31:23 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 12020 invoked from network); 7 Sep 2002 08:31:20 -0000 Received: from unknown (HELO mail.seattleFenix.net) (216.39.145.247) by sources.redhat.com with SMTP; 7 Sep 2002 08:31:20 -0000 Received: (from roo@localhost) by mail.seattleFenix.net (8.11.6/8.11.6) id g878TRZ92857 for gcc-help@gcc.gnu.org; Sat, 7 Sep 2002 01:29:27 -0700 (PDT) (envelope-from roo) Date: Sat, 07 Sep 2002 01:31:00 -0000 From: Benjamin Krueger To: gcc-help@gcc.gnu.org Subject: 64bit Executable Support on Solaris 9 Message-ID: <20020907012927.A88923@mail.seattleFenix.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-PGP-Key: http://www.macguire.net/benjamin/public_key.asc X-SW-Source: 2002-09/txt/msg00061.txt.bz2 I've recently installed the Sunfreeware gcc 3.2 package on a SPARCengine AXi (UltraSPARC-IIi 270MHz) running Solaris 9 Generic 64-bit. I'd like to be able to compile 64-bit executables, however compiling even the following simple code fails to work. Google references to this error and similar errors vary wildly and as far as I can tell from my limited programming knowledge, aren't applicable to this problem. #include int main() { printf("Hello, World.\n"); return -1; } # gcc -m32 -o test32 test.c # ./test32 Hello, World. # gcc -m64 -o test64 test.c ld: fatal: file /usr/lib/sparcv9/values-Xa.o: wrong ELF class: ELFCLASS32 ld: fatal: File processing errors. No output written to test64 collect2: ld returned 1 exit status # locate values-Xa.o /usr/ccs/lib/sparcv9/values-Xa.o /usr/ccs/lib/values-Xa.o /usr/lib/sparcv9/values-Xa.o /usr/lib/values-Xa.o All of the above files are ELF 32-bit MSB relocatable SPARC Version 1 Is there anything special I should be doing here to create a 64bit executable? Am I missing something? Please CC me in replies as I am not subscribed to this list. Regards, -- Benjamin Krueger "Everyone has wings, some folks just don't know what they're for" - B. Banzai ---------------------------------------------------------------- Send mail w/ subject 'send public key' or query for (0x251A4B18) Fingerprint = A642 F299 C1C1 C828 F186 A851 CFF0 7711 251A 4B18