From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12747 invoked by alias); 30 Jul 2008 11:56:30 -0000 Received: (qmail 12739 invoked by uid 22791); 30 Jul 2008 11:56:30 -0000 X-Spam-Check-By: sourceware.org Received: from col0-omc3-s4.col0.hotmail.com (HELO col0-omc3-s4.col0.hotmail.com) (65.55.34.142) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Jul 2008 11:56:10 +0000 Received: from COL101-W79 ([65.55.34.136]) by col0-omc3-s4.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 30 Jul 2008 04:56:08 -0700 Message-ID: From: Jay To: , Subject: RE: Building gcc-4.2.4 on Solaris 9 Date: Wed, 30 Jul 2008 14:15:00 -0000 In-Reply-To: <1217413077.17216.ezmlm@gcc.gnu.org> References: <1217413077.17216.ezmlm@gcc.gnu.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-07/txt/msg00313.txt.bz2 > -Forwarded Message Attachment--=20 > Date: Tue, 29 Jul 2008=20 > [D] From: David=20 > To: gcc-help@gcc.gnu.org=20 > Subject: Building gcc-4.2.4 on Solaris 9=20 > [D] I'm trying to build gcc-4.2.4 on a 64-bit Solaris 9 SPARC system,=20 > [D] using the Sun Studio compiler (Sun C 5.8).=20 > [D] I'm attempting to build 64-bit binaries (bad idea?). I've built=20=20 > [D] 64-bit versions of libmpfr and libgmp, and I have CC=3D"cc=20=20 > [D] -xarch=3Dgeneric64". I'm running into a problem when building the st= age=20=20 =20 > [D] ld: fatal: file=20=20 > [D] /data/software/devtools/mpfr-2.3.0-sparc-sun-solaris2.9/lib/libmpfr.s= o:=20=20 > [D] wrong ELF class: ELFCLASS64=20=20 > [D] ld: fatal: file=20=20 > [D] The problem is that fortran .o files are 32-bit, not 64-bit:=20 Personally, I would just avoid the "biarch"-ness (don't set CC and/or CFLAGS) and *some* of the automatic guessing of host/build/target and do this: run config.guess probably it will say sparc-sun-solaris2.9. Then do this: mkdir /obj=20=20 cd /obj=20=20 /src/configure \ -disable-nls \ -build sparc-sun-solaris2.9 \ (ok, you can omit this line, -build is al= ways correctly guessed in my brief experience)=20 -host sparc64-sun-solaris2.9 \ -target sparc64-sun-solaris2.9=20 (Single dash options are clearly supported by configure.)=20 Also, it is a bit of a time sink, but you can stick the gmp and mpfr source= right into the gcc source tree and it'll build "all at once". (renaming mp= fr-2.3.0 to mpfr, etc.)=20 In fact, that might help you, since it'll net you sparc32 and sparc64 if ne= eded. This definitely won't be the quickest way. Quicker would be to set CC/CFLAGS and use -disable-bootstrap. - Jay