According to the Gcc433 wiki page,
mkdir ~/arm-elf
export PATH=~/arm-elf/bin:$PATH
mkdir ~/wa
cd ~/wa
mkdir down
cd down
wget [url]ftp://ftp.nluug.nl/mirror/languages/gcc/releases/gcc-4.3.3/gcc-4.3.3.tar.bz2[/url]
wget http://ftp.sunet.se/pub/gnu/gmp/gmp-4.2.4.tar.bz2
wget http://www.mpfr.org/mpfr-2.4.2/mpfr-2.4.2.tar.bz2
wget http://ftp.download-by.net/gnu/gnu/binutils/binutils-2.18.tar.bz2
cd ..
for zipped in down/* ; do tar xjf $zipped ; done # Note: This may take a while.
ln -s $(pwd)/gmp-4.2.4 gcc-4.3.3/gmp
ln -s $(pwd)/mpfr-2.4.2 gcc-4.3.3/mpfr
cd binutils-2.18/
./configure --srcdir=`pwd` --target=arm-elf --prefix=${HOME}/arm-elf --disable-werror
make -j 3
make install
cd ..
ed gcc-4.3.3/gcc/config/arm/t-arm-elf << EOF
/MULTILIB_OPTIONS/s/^M/# M/
/MULTILIB_DIRNAMES/s/^M/# M/
/mno-thumb-interwork/s/^# //
/normal interwork/s/^# //
wq
EOF
mkdir gcc-4.3.3-arm-elf && cd gcc-4.3.3-arm-elf
../gcc-4.3.3/configure --srcdir=../gcc-4.3.3 --target=arm-elf \
--enable-multilib --enable-languages=c --enable-clocale=gnu \
--disable-libm --disable-libc --disable-threads \
--disable-nls --disable-libssp --disable-intl \
--with-cpu=arm9 --with-newlib --prefix=${HOME}/arm-elf
(unset LIBRARY_PATH; unset CFLAGS; make -j 3 && make install) # Change "3" to "your systems number of cores" + 1
should set up a development environment. However I'm getting
...
checking for uchar...
checking for ld used by GCC... /usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depdir commands
mkdir -p -- .deps
make[1]: Leaving directory `/home/wolf/wa/gcc-4.3.3-arm-elf'
make: *** [all] Error 2
when I try to compile gcc. Not very informative...