From: Jay <jayk123@hotmail.com>
To: <deisner@gmail.com>, <gcc-help@gcc.gnu.org>
Subject: RE: Building gcc-4.2.4 on Solaris 9
Date: Wed, 30 Jul 2008 14:15:00 -0000 [thread overview]
Message-ID: <COL101-W790ECFEEEBA715818DB0F8E67D0@phx.gbl> (raw)
In-Reply-To: <1217413077.17216.ezmlm@gcc.gnu.org>
> -Forwarded Message Attachment--
> Date: Tue, 29 Jul 2008
> [D] From: David
> To: gcc-help@gcc.gnu.org
> Subject: Building gcc-4.2.4 on Solaris 9
> [D] I'm trying to build gcc-4.2.4 on a 64-bit Solaris 9 SPARC system,
> [D] using the Sun Studio compiler (Sun C 5.8).
> [D] I'm attempting to build 64-bit binaries (bad idea?). I've built
> [D] 64-bit versions of libmpfr and libgmp, and I have CC="cc
> [D] -xarch=generic64". I'm running into a problem when building the stage
> [D] ld: fatal: file
> [D] /data/software/devtools/mpfr-2.3.0-sparc-sun-solaris2.9/lib/libmpfr.so:
> [D] wrong ELF class: ELFCLASS64
> [D] ld: fatal: file
> [D] The problem is that fortran .o files are 32-bit, not 64-bit:
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
cd /obj
/src/configure \
-disable-nls \
-build sparc-sun-solaris2.9 \ (ok, you can omit this line, -build is always correctly guessed in my brief experience)
-host sparc64-sun-solaris2.9 \
-target sparc64-sun-solaris2.9
(Single dash options are clearly supported by configure.)
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 mpfr-2.3.0 to mpfr, etc.)
In fact, that might help you, since it'll net you sparc32 and sparc64 if needed.
This definitely won't be the quickest way.
Quicker would be to set CC/CFLAGS and use -disable-bootstrap.
- Jay
next parent reply other threads:[~2008-07-30 11:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1217413077.17216.ezmlm@gcc.gnu.org>
2008-07-30 14:15 ` Jay [this message]
2008-07-30 16:45 ` David Eisner
[not found] <1217501358.30475.ezmlm@gcc.gnu.org>
2008-07-31 17:03 ` Jay
2008-07-29 15:04 David Eisner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=COL101-W790ECFEEEBA715818DB0F8E67D0@phx.gbl \
--to=jayk123@hotmail.com \
--cc=deisner@gmail.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).