sparc-sun-solaris support?

Thomas Niederreiter
Thu Oct 6 09:34:00 GMT 2005

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 tried to replace the TARGET by sparc-sun-solaris in sparc.dat
and did run the script.

But after a while the compilation stops at glibc-2.2.5 (same with
2.3.2) with some errors:

cd /home/tn/src/crosstool/crosstool-0.38/build/sparc-sun-solaris/gcc-3.2.3-glibc-2.2.5/build-glibc-headers/ctype && gcc   -include ../config.h /opt/home/tn/src/crosstool/crosstool-0.38/build/sparc-sun-solaris/gcc-3.2.3-glibc-2.2.5/glibc-2.2.5/ctype/../sysdeps/unix/common/glue-ctype.c -o glue-ctype
In file included from <command line>:1:
../config.h:3:3: #error "glibc cannot be compiled without optimization"
make[2]: *** [/home/tn/src/crosstool/crosstool-0.38/build/sparc-sun-solaris/gcc-3.2.3-glibc-2.2.5/build-glibc-headers/ctype/glue-ctype] Error 1
make[2]: Leaving directory `/opt/home/tn/src/crosstool/crosstool-0.38/build/sparc-sun-solaris/gcc-3.2.3-glibc-2.2.5/glibc-2.2.5/ctype'
make[1]: *** [ctype/install-headers] Error 2

I am on a lost cause? Do I need some other tools? Any one has an idea
if its possible to build binaries for solaris on a linux machine?

Thanks for any pointers,


  ___ ___
 /   |   \  ___________   | REAL   : Thomas Niederreiter: Munich, Germany
/    ~    \/  _ \_  __ \  | EMAIL  :
\    Y    (  <_> )  | \/  | WEB    :
 \___|_  / \____/|__|     | 
       \/ All I want is a warm bed and a kind word and unlimited power
                      -- Ashleigh Brilliant

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

More information about the crossgcc mailing list