This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: Build of gcc-4.1


None of the things that are obvious, to me at least, seem to resolve the loader's problem in finding it. Any ideas any one?

No idea on that one, sorry. I didn't have that problem.


You can find attached the script I use to build gfortran from gcc-4.1 cvs. My MinGW tree is such that $HOME/local/include and $HOME/local/lib contains gmp and mpfr. The ftruncate step is not needed anymore (but I know you know that :). Finally, $HOME/mingw_to_include contains the runtime files from MinGW, and some more (see my previous gfortran-windows builds), so that someone who doesn't have MinGW installed can run gfortran.

Note that I had a problem with PR19481 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19481) for which I had to edit one MinGW header (explained in bugzilla, comment #2): this cabs() problem may be solved now.

FX
#!/bin/sh

#if ([ -e "./gcc" ] || [ -e "./bin" ] || [ -e "./irun" ]); then
#  echo 'Supprimer gcc, irun et ibin avant de lancer la compilation'
#  exit
#fi

#tar xfj gcc-cvs.tar.bz2
mkdir ibin/ irun/
cd ibin/
CC="gcc -I$HOME/local/include -L$HOME/local/lib" ../gcc/configure --prefix=/mingw --enable-languages=c,f95
make
mv gcc/Makefile gcc/FX.Makefile
sed 's#/usr/include#/mingw/include#' < gcc/FX.Makefile > gcc/Makefile
make
DESTDIR=$HOME/irun make install
cd ../irun/mingw
rm bin/.exe bin/i686-pc-mingw32-gcc*.exe bin/gccbug
strip bin/*.exe
rm -rf info/ man/ share/
strip libexec/gcc/*/*/cc1.exe libexec/gcc/*/*/f951.exe
strip libexec/gcc/*/*/install-tools/fixincl.exe
ar -rv lib/libgfortran.a $HOME/ftruncate.o
cp $HOME/mingw_to_include/bin/* bin/
cp -r $HOME/mingw_to_include/include/* include/
cp $HOME/mingw_to_include/lib/* lib/
cp $HOME/mingw_to_include/* .
cd ..
mv mingw gfortran

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