cannot compile gcc 403

Chris Staub chris at beaker67.com
Sat Jun 2 09:35:29 PDT 2007


Praveen Shekade wrote:
> Following is the error
> my hot system is fc3
> 
> lfs:/mnt/lfs/build/gccbuild/gcc-4.0.3$ ./configure
> --prefix=/tools --with-local-prefix=/tools
> --disable-nls --enable-shared --enable-languages=c
> loading cache ./config.cache
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking build system type... i686-pc-linux-gnu
> checking for a BSD compatible install...
> /usr/bin/install -c
> checking whether ln works... yes
> checking whether ln -s works... yes
> configure: error: Building in the source directory is
> not supported in this release. See
> http://gcc.gnu.org/install/configure.html for more
> details.
> lfs:/mnt/lfs/build/gccbuild/gcc-4.0.3$
> 
> 
You are not in the right dir. You are supposed to run configure from the 
build directory, not the source dir. It appears you have misread the 
instructions in the book - as stated on page 5.1, each package 
installation instructions assume that you have already unpacked the 
tarball and entered the package source dir. Therefore, the command to 
create ../gcc-build (and of course cd ../gcc-build) should be executed 
from within the GCC source dir.



More information about the lfs-chat mailing list