This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Trying to build crosscompiler for Sparc Solaris 8 ->SparcSolaris 10 (& others)...

On Wed, 2005-04-06 at 10:28 +0100, Dave Korn wrote:
> ----Original Message----
> >From: Aaron Gaudio
> >Sent: 05 April 2005 21:05
> > (CCing this to gcc@... due to potential build bugs...)
> > I have already installed binutils 2.15 and gcc 3.4.5 native Solaris 8
> > verisons in the prefix /vobs/java/gnu and added this directory to my
> > path, so that those are the tools being used for building the cross-
> > compiler environment.
>   Two things to check: 
>  1) Try specifying an absolute rather than relative path to the gcc
> configure script; I think this has been known to be a source of problems on
> solaris platforms in the past, but I don't know if it's still relevant now.
> It can't hurt to try.
>  2) If what you say above is *literally* correct, then the reason the wrong
> assembler is being found is because you've added $prefix to your $PATH, when
> you should have added $prefix/bin!

Thanks for your attention, Dave. I checked the script I'm using to build
and I actually am using an absolute path to gcc's configure, despite
what I wrote in my original mailnote. 

As for the prefix... you're right, I should be adding $prefix/bin to my
path. I was adding $prefix in my script, but lo, I had already added
$prefix/bin to my path in my shell. I'll fix my script, but that won't
have any impact on the problems I'm facing. You see, the 'as' being
called was in fact the one in $prefix/bin, but the problem is that
$prefix is a holding place for binaries with multiple targets.
$prefix/bin/as is a Sparc Solaris 8 binary with a Sparc Solaris 8 target
(eg --version "This assembler was configured for a target of `sparc-sun-
solaris2.8'."). However, $prefix/bin/i586-sun-solaris2.10-as is a Sparc
Solaris 8 binary with an i586 Solaris 10 target (--version "This
assembler was configured for a target of `i586-sun-solaris2.10'."). 

It seems like either Makefile should be using $AS_FOR_TARGET (which
would expand to 'i586-sun-solaris2.10-as'), instead of $AS (which is
just 'as') OR the .s file being assembled should be using Sparc assembly
instructions instead of x86. I assumed the former was the case, and that
let me get further in the build, so that's what I've stuck with for

Aaron Gaudio           agaudio @           585-422-6876
               madcap @ irc://
 OpenPGP fingerprint: 74B3 1018 08EB 1B3F E7C7  B944 11B1 E0C3 949C 8906
             "Every man is a mob, a chain gang of idiots." 
                     - Jonathan Nolan, /Memento Mori/

Attachment: signature.asc
Description: This is a digitally signed message part

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]