This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: ...GCC compile/make error on Red Hat 5.2
- From: "John (Eljay) Love-Jensen" <eljay at adobe dot com>
- To: Joe Thykattil <thykattil at yahoo dot com>, GCC-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 29 Oct 2009 13:13:47 -0700
- Subject: Re: ...GCC compile/make error on Red Hat 5.2
Hi Joe,
It appears that the GCC 4.4.2 source is located here:
/de/gcc/gcc-4.4.2
And I take it that you are also trying to ./configure and make in that
self-same directory.
As per the GCC instructions <http://gcc.gnu.org/install/>, running
./configure in the source directory, or any subdirectory thereof, is not
supported.
I've never had success trying to do that.
You should make a build directory, e.g.:
mkdir /de/gcc/gcc-4.4.2-build
cd /de/gcc/gcc-4.4.2-build
/de/gcc/gcc-4.4.2/configure
make
That will keep the source and the build separated.
Note: since you have run configure within the source code directory, the
source code is tainted. You will want to rm -rf /de/gcc/gcc-4.4.2 and untar
the source fresh.
HTH,
--Eljay