This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 4.7.2 build failure
- From: Paul Smith <paul at mad-scientist dot net>
- To: Bharath Ramesh <bramesh at vt dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 15 Feb 2013 07:16:54 -0500
- Subject: Re: GCC 4.7.2 build failure
- References: <511DCF67.6020402@vt.edu>
- Reply-to: paul at mad-scientist dot net
On Fri, 2013-02-15 at 01:02 -0500, Bharath Ramesh wrote:
> My configure line is as follows:
>
> $ ./configure --prefix=/opt/apps/gcc/4.7.2
> --enable-languages=c,c++,fortran --enable-bootstrap --enable-shared
> --enable-__cxa_atexit --enable-checking=rele+ase --with-arch_32=i686
> --with-bits=gmp --with-system-zlib --with-tune=generic
This shows you are trying to build GCC in its source directory. This
method of building is not well supported (see the GCC installation
documentation). If you're not prepared to debug and fix the problems
you find to help make this model work, then you should use the model
everyone else uses.
You should delete this source directory and extract it clean from the
tar file, then you should build GCC in a separate directory, something
like:
$ rm -rf gcc-4.7.2
$ tar xjf gcc-4.7.2.tar.bz2
$ cd gcc-4.7.2
$ ./contrib/download_prerequisites
$ mkdir ../obj
$ cd ../obj
$ ../gcc-4.7.2/configure ...
$ make -j4
(or whatever -j you like)
If that still doesn't work please re-request help.