This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problem building gcc 4.1.1 (fortran) in MinGW
- From: Wolfgang0815 at gmx dot de
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 22 Oct 2006 15:52:53 +0200
- Subject: Problem building gcc 4.1.1 (fortran) in MinGW
Hi everyone,
I'm trying to build gcc 4.1.1 under MinGW. When building with "--enable-languages=fortran" a problem occurs which I can't solve.
Here is a detailed report of what happens:
* Started with: German Win2kSP4
(never touched by MinGW & Co before)
* Execute MinGW-5.0.3.exe, which installs previously
downloaded files to "C:\MinGW":
* binutils-2.15.91-20040904-1.tar.gz
* gcc-ada-3.4.2-20040916-1.tar.gz
* gcc-core-3.4.2-20040916-1.tar.gz
* gcc-g++-3.4.2-20040916-1.tar.gz
* gcc-g77-3.4.2-20040916-1.tar.gz
* gcc-java-3.4.2-20040916-1.tar.gz
* gcc-objc-3.4.2-20040916-1.tar.gz
* mingw32-make-3.80.0-3.tar.gz
* mingw-runtime-3.10.tar.gz
* w32api-3.7.tar.gz
* Execute MSys-1.0.10.exe, which installs itself into
"C:\msys\1.0". After that, "post install":
* "Do you have MinGW installed?" -> "y"
* "Where is your MinGW installation?" -> "C:/MinGW"
* "You do not have C:/MinGW/bin/make.exe.
Keep it that way."
* Start MSYS
* Execute "cd"
* Execute "tar xjvf gmp-4.2.1.tar.bz2"
* Execute "cd gmp-4.2.1"
* Execute "./configure --prefix=/mingw"
* Execute "make"
* Execute "make check"
* Execute "make install"
* Execute "cd"
* Execute "tar xjvf mpfr-2.2.0.tar.bz2"
* Execute "cd mpfr-2.2.0"
* Execute "./configure --prefix=/mingw"
* Execute "make"
* Execute "make check"
* Execute "make install"
* Execute "cd"
* Execute "tar xjvf gcc-4.1.1.tar.bz2"
* Execute "cd gcc-4.1.1"
* Execute "./configure --prefix=/mingw
--with-ld=/mingw/bin/ld
--enable-languages=fortran"
(in one line of course)
( The "with-ld" seems to be necessary in MinGW, see
http://gcc.gnu.org/ml/gcc-bugs/2005-10/msg01923.html )
Up to this moment no errors occur. Then I execute "make" which runs quite a while and gives (only the last few lines):
----------------------------------------------------------------
gcc -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H gcov-dump.o version.o errors.o ../libcpp/libcpp.a ./../intl/libintl.a ../libiberty/libiberty.a -o gcov-dump.exe
gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H -I. -Ifortran -I../.././gcc -I../.././gcc/fortran -I../.././gcc/../include -I./../intl -I../.././gcc/../libcpp/include ../.././gcc/fortran/arith.c -o fortran/arith.o
In file included from ../.././gcc/fortran/arith.c:31:
../.././gcc/fortran/gfortran.h:1738: error: syntax error before "uint"
../.././gcc/fortran/gfortran.h:1738: warning: function declaration isn't a prototype
make[2]: *** [fortran/arith.o] Error 1
make[2]: Leaving directory `/home/Administrator/gcc-4.1.1/host-i686-pc-mingw32/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/Administrator/gcc-4.1.1'
make: *** [all] Error 2
----------------------------------------------------------------
By the way, "./config.guess" in gcc-directory gives "i686-pc-mingw32", and "make --version" gives "GNU Make version 3.79.1, .....".
Does anyone know how to successfully build the gcc 4.1.1 fortran compiler under MinGW?
Thanks for your help in advance,
sorry for my crappy english.
Wolfgang
Wolfgang0815 .at. gmx .dot. de
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer