This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/24991] [4.1/4.2 Regression] gfortran build fails with - error:gthr-default.h: No such file or directory



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]