Trying to get crosstool-0.43 to work on Solaris 9

Alexander Skwar
Fri Mar 16 12:48:00 GMT 2007

David Kahn <> wrote:

> Alexander Skwar wrote:
>> · David Kahn <>:
>>> Are you also building glibc? There's a couple more patches
>>> you may need if you are. Search for my old posts to find them.
>> Are you referring to
>> ie. and
> Yes. That was my "community give back". :) I wasn't necessarily
> the first one to find all this stuff, but I tried to document
> what I had to do for sparc-solaris9 -> ppc-elf-linux Since
> it didn't work with crosstools-0.42 "out of the box".
>> How do I apply those patches? I mean, I know how to apply
>> patches manually, but what needs to be done to have those
>> patches be applied during a crosstool compile?
> I think you should be able to just drop them into
> crosstool's patches directory after the 1 time download
> is done. That's what the directory is for .. patches
> that need to be applied to work with crosstools.

Ah, okay. Thanks!

> If you're building something later than glibc-2.3.2,
> you have to adjust, probably manually.

Yes, I had to adjust your
patch for glibc 2.3.6. It's now only 1 line that needs
to be modified, I guess.

Reg. your other patch (glibc-2.3.2-allow-solaris-Makeconfig.patch) - 
I cannot find anything which resembles that in the current
Makeconfig anymore.

I've got an additional problem, though. When crosstool is trying
to compile glibc, it breaks. I suppose it breaks, as it's trying
to use the original SUN as and SUN ld and not the GNU ones. The
GNU ones are in PATH before the SUN stuff. In my build script, I
set PATH to PATH=/opt/csw/gnu:/opt/csw/gcc4/bin:$PATH and GNU ld
and GNU as are in /opt/csw/gnu.

Any ideas?

+ /usr/bin/ksh /export/home/askwar/cross-compile/crosstool-0.43a/build/i686-unknown-linux-gnu/gcc-4.1.0-glibc-2.3.6/glibc-2.3.6/configure --prefix=/usr --build=sparc-sun-solaris2.9 --host=i686-unknown-linux-gnu --without-cvs --disable-sanity-checks --with-headers=/home/askwar/crosstool/gcc-4.1.0-glibc-2.3.6/i686-unknown-linux-gnu/i686-unknown-linux-gnu/include --enable-hacker-mode
+ libc_cv_ppc_machine=yes CC=gcc
checking build system type... sparc-sun-solaris2.9
checking host system type... i686-unknown-linux-gnu
checking sysdep dirs... sysdeps/i386/elf sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686 sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /opt/csw/gnu/install -c
checking whether ln -s works... yes
checking for i686-unknown-linux-gnu-gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for gcc... gcc
checking how to run the C preprocessor... gcc -E
checking for i686-unknown-linux-gnu-g++... no
checking for i686-unknown-linux-gnu-c++... no
checking for i686-unknown-linux-gnu-gpp... no
checking for i686-unknown-linux-gnu-aCC... no
checking for i686-unknown-linux-gnu-CC... no
checking for i686-unknown-linux-gnu-cxx... no
checking for i686-unknown-linux-gnu-cc++... no
checking for i686-unknown-linux-gnu-cl... no
checking for i686-unknown-linux-gnu-FCC... no
checking for i686-unknown-linux-gnu-KCC... no
checking for i686-unknown-linux-gnu-RCC... no
checking for i686-unknown-linux-gnu-xlC_r... no
checking for i686-unknown-linux-gnu-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether /usr/ccs/bin/as is GNU as... no
checking whether /usr/ccs/bin/ld is GNU ld... no
checking for /usr/ccs/bin/as... /usr/ccs/bin/as
checking version of /usr/ccs/bin/as... v. ?.??, bad  
checking for /usr/ccs/bin/ld... /usr/ccs/bin/ld
checking version of /usr/ccs/bin/ld... v. ?.??, bad  
checking for pwd... /usr/bin/pwd
checking for i686-unknown-linux-gnu-gcc... (cached) gcc
checking version of gcc... 4.0.2, ok
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... gmsgfmt
checking version of gmsgfmt... 0.14.1, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.8, ok
checking for sed... sed
checking version of sed... 4.1.4, ok
checking for autoconf... no
configure: error:
*** These critical programs are missing or too old: as ld
*** Check the INSTALL file for required versions.

Alexander Skwar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-2.3.6-allow-solaris.patch
Type: text/x-diff
Size: 494 bytes
Desc: Modified patch from David Kahn from
URL: <>
-------------- next part --------------
For unsubscribe information see

More information about the crossgcc mailing list