Please move this thread to gcc-help, thanks, On 3 April 2012 18:54, Roman Suvorov wrote: > Hi Richard, > Could you please provide some more instructions on how you got your 2.95 build using GCC 3? > > I just tried using GCC 3.4.6 (from http://packages.ubuntu.com/hardy/amd64/gcc-3.4-base/download) and build from source using this command: You can't just take a single file from the package and expect it to work, you need to install the whole package or install 3.4.6 properly, i.e. by building it from source. > CC=../gcc-3.4/bin/gcc-3.4 CFLAGS=-D_FORTIFY_SOURCE=0 ./configure -- prefix=~/gcc-2.95.3 --enable-languages=c,c++ --enable-threads=posix --enable-shared --host i386-pc-linux-gnu You haven't read the installation docs. Do not run ./configure, build in a separate directory. You probably want to use --prefix=$HOME/gcc-2.95.3 because the shell won't expand ~ in the middle of a word like that. You don't need to use --enable-threads=posix or --enable-shared, those are enabled by default on GNU/Linux. You're missing a '=' after --host (not sure if that matters though)