Subject: Re: cross-compiler for sparc64
To: Andrei Petrov <and@genesyslab.com>
From: Eduardo Horvath <eeh@turbolinux.com>
List: port-sparc64
Date: 08/17/2000 19:08:50
On Thu, 17 Aug 2000, Andrei Petrov wrote:

> Everybody around says that that gcc cannot generate good code for sparc
> so I don't use optimization at all. And I don't know if my current
> problems with kernel related to this.

It actually generates decent code, if you can get it to work 8^).  It has
a nasty habit of aborting due to cc1 bugs.  (And C++ is much worse.)

I recommend using the new in-tree toolchain.  It has numerous
bugfixes.  

Grab everything in src/gnu/dist/toolchain.  

Go into the `toolchain' directory and run:

	contrib/egcs_update --touch


Then create a subdirectory, say src/gnu/dist/toolchain/builddir and enter
it.  Then to build a cross-toolchain:

	../configure --target=sparc64-netbsd

If you have a sparc64 you can build a native toolchain with:

	../configure

Then just `make' (or `gmake') and `make install'.


Eduardo Horvath