[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

1. Toolchain


1.1 Tool versions

The following are the necessary utilities for creating the cross-compilation environment.


1.2 Configury

The build plarform is NetBSD 1.6 (i386-unknown-netbsdelf1.6J). The canonical name of the host (and target) configuration is i386-pc-netbsd-gnu. You'll need a recent version of config.sub and config.guess in order to recognize it. Get the from here config.guess.gz and here config.sub.gz.

Overwrite each config.sub and config.guess file in the GNU binutils, GCC and GNU libc source trees, e.g.:

 
find gcc-3.2 -name config.sub -exec cp config.sub {} \;


1.3 Autoconf

GNU autoconf needs this patch autoconf.diff.gz. It replaces a bogus use of not yet installed header <assert.h> with <limits.h>, which comes with the compiler.


1.4 GNU binutils


1.4.1 Building

Patch GNU Binutils with the following patch binutils.diff.gz.

Configure the GNU Binutils with:

 
configure --prefix=/usr/velco/toolchain --target=i386-netbsd-gnu

then build and install them as follows:

 
cd libiberty && gmake
cd ../bfd && gmake
cd ../opcodes && gmake
cd ../intl && gmake
cd ../binutils && gmake && gmake install
cd ../gas && gmake && gmake install
cd ../ld && gmake && gmake install

Add the the toolchain executables to the path:

 
export PATH=/usr/velco/toolchain/bin:$PATH


1.4.2 Changes


1.5 GCC


1.5.1 Building

Patch the GCC with the following patch gcc.diff.gz. Unpack and copy this file netbsd-gnu.h.gz to gcc/config/i386.

Configure GCC with:

 
configure --prefix=/usr/velco/toolchain --target=i386-netbsd-gnu \
          --enable-languages=c

Note that we haven't yet tried to build other languages.

Build and install with:
 
gmake && gmake install


1.5.2 Changes


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated on November, 25 2002 using texi2html 1