This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC build issues - compilation failure
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Dan Track <dan dot track at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 30 Dec 2010 12:25:27 +0000
- Subject: Re: GCC build issues - compilation failure
- References: <AANLkTik_77bdJaC6-xGQXfqYHA18NfMg4gVzh+gwL24f@mail.gmail.com>
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.