Subject: Re: Build Environment for Sparc64
To: Henry Pierce <>
From: Eduardo Horvath <>
List: port-sparc64
Date: 04/13/2000 08:17:03
On Wed, 12 Apr 2000, Henry Pierce wrote:

> First, I have never tampered with a release such as this...
> So, with that said, I am trying to get a build
> environment for the Sparc64 Platform that will allow me
> to build netbsd-current.
> I managed to get netbsd/sparc installed with the sparc64/32bit
> kernel.  However, I am a little confused about how to get the
> include files straight so the kernel will build properly.
> Any pointers would be appreciated.

The kernel build is self-contained.  It does not use anything in

What you need to do is build a 64-bit toolchain:

	binutils-2.9.1 with the bugfix or the in-tree version configured
		with --enable-64-bit-bfd

	egcs or post-egcs gcc configured with target=sparc64-*-elf

Then add an /etc/mk.conf that uses those compilers instead of the 32-bit
ones.  gcc will bomb on several files.  They will need to be compiled by
hand without optimization.

Eduardo Horvath