sparc-sun-solaris support?

Ralf Corsepius
Thu Oct 6 12:52:00 GMT 2005

On Thu, 2005-10-06 at 11:34 +0200, Thomas Niederreiter wrote:
> Hello all,
> I am just started to look at cross compling and my tests so
> far were not so lucky.
> I need to be able to compile some code for sparc-solaris2.8 and
> was trying to utilize crossgcc.
> I am here on a linux i386 machine and used crosstools-0.38.
> crosstools seems only to be aimed to build linux software - is solaris
> supported at all?

> I am on a lost cause?
Crosstools is not what you need.

You will want to build a traditional cross gcc against your Solaris's
headers and libraries. Nowadays, a sys-rooted built probably is the most
simple approach.

It basically means:
1. Copy the target's /usr/include and /usr/lib to a location on your
linux machine (Or nfs mount a solaris machine's '/' under linux) and
2. Build and install binutils
configure --target=sparc-sun-solaris2.8 --prefix=<somewhere>
make install
3. Build and install GCC
export PATH=<somewhere>/bin
configure --target=sparc-sun-solaris2.8 --prefix=<somewhere> \
--sys-root=<solaris root> [more options]
make install

>  Do I need some other tools? Any one has an idea
> if its possible to build binaries for solaris on a linux machine?
Yes, not for solaris2.8 but for solaris2.7, and not sys-rooted ...


Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list