On Thu, Dec 30, 2010 at 12:25 PM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote: > On 30 December 2010 12:02, Dan Track wrote: >> Hi, >> >> I've got through a lot of the compilation stage but have struck an >> error. Googling doesn't really show much on it, can someone please >> help with this? Here's what I did and the results: >> >> cd /opt/mon >> tar –xzf gcc-4.5.2.tar.gz >> cd gcc-4.5.2 >> mkdir mybuild >> cd mybuild > > Please read the installation instructions, particularly > http://gcc.gnu.org/install/configure.html > > "First, we highly recommend that GCC be built into a separate > directory from the sources which does not reside within the source > tree. This is how we generally build GCC; building where srcdir == > objdir should still work, but doesn't get extensive testing; building > where objdir is a subdirectory of srcdir is unsupported." > > I showed you a working sequence of commands, and it involved running > ../gcc-4.5.2/configure NOT ../configure > > I haven't looked in detail but this is most likely the cause of your > compilation failure, so please correct it and try again. > Hi, I now built outside the source dir cd /opt/mon tar -xzf gcc-4.5.2.tar.gz mkdir mybuild cd mybuild ../gcc-4.5.2/configure (options the same as my first mail in this thread) error is exactly the same. Any thoughts on this, could it be the compiler I use which is gcc-4.1.2 to build the initial compiler with? Thanks for any help. Dan