This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/24991] [4.1/4.2 Regression] gfortran build fails with - error:gthr-default.h: No such file or directory
- From: "jb at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2005 13:38:31 -0000
- Subject: [Bug libfortran/24991] [4.1/4.2 Regression] gfortran build fails with - error:gthr-default.h: No such file or directory
- References: <bug-24991-10129@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from jb at gcc dot gnu dot org 2005-11-24 13:38 -------
Just to be sure, you should be building outside the gcc directory hierarchy.
This is (a cleaned up version of the) script I use for doing a clean build:
#!/bin/sh
GCCDIR=trunk
cd $GCCDIR
contrib/gcc_update
cd ..
rm -rf objdir
mkdir objdir
cd objdir
../$GCCDIR/configure --enable-checking --prefix=$HOME/src/gfortran/install
--enable-languages=fortran
make
make install
cd gcc
make check-fortran
cd ../..
# EOF
You see that the objdir where all the building is done, is entirely separate
from the checked out gcc tree ("trunk" directory). As an added bonus, for a
clean build you just blow away objdir, no need to check out gcc again.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24991