This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Build of gcc-4.1
- From: FranÃois-Xavier Coudert <Francois-Xavier dot Coudert at lcp dot u-psud dot fr>
- To: Paul Thomas <paulthomas2 at wanadoo dot fr>
- Cc: MinGW mailing list <mingw-users at lists dot sourceforge dot net>, fortran at gcc dot gnu dot org
- Date: Wed, 04 May 2005 09:15:09 +0200
- Subject: Re: Build of gcc-4.1
- Organization: Laboratoire de Chimie Physique
- References: <4276895D.90300@o2.pl> <009101c54faa$13d3f620$0400000a@Paul>
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