This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Targetting Sparc/Solaris


Dan Gora wrote:
> I want to thank Nathan for posting these instructions.  They were
> close enough that i was able to successfully build a sparc cross
> compiler running on Linux (SuSE 9.2).

I'm glad they were helpful!

> There was one step below which caused my build to fail that I had to
> fix. I'm honestly not sure how Nathan got it to work, but it caused
> my build to gack, so I thought that I'd post what I had to do to get
> it to work.
...
> * rearrange native libs and includes to make gcc happy {{{ $ cd
> /xgcc-4.1/sparc-sun-solaris2.8/sparc-sun-solaris2.8 $ ln -s usr/lib
> lib
> 
> [dg] This did not work for me.  When I tried this I could compile
> binutils ok, [dg] but the gcc compile stopped complaining that it
> could not find libc.so. [dg] Since libc.so lives /lib on Solaris, we
> have to get the real libs from /lib [dg] in the 'tar' step above, not
> just the symlinks in /usr/lib. [dg] So just skip this step.  If you
> got the /lib directory above you [dg] should already have it
> populated.

Interesting.  On my
SunOS 5.8 Generic_108528-17 sun4u sparc SUNW,Sun-Blade-100
libc lives in both /lib and /usr/lib (actual copies, not symlinks).

I've updated my internal wiki to note this potential issue, however.

Thanks,

-Nathan

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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