stdio.h not found when building Ada or Obj-C++ front ends under MinGW
Wolfgang.Boiger@gmx.net
Wolfgang.Boiger@gmx.net
Sat Dec 2 22:09:00 GMT 2006
Hi everyone,
I'm trying to build gcc 4.1.1 under MinGW. When building with "--enable-languages=c,c++,ada" or "--enable-languages=c,obj-c++" 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.11.tar.gz
* w32api-3.8.tar.gz
* Execute MSys-1.0.10.exe, which installs itself into
"C:\msys\1.0".
* Start MSYS
Then I execute the following commands at the MSYS prompt:
$ tar xjvf gcc-4.1.1.tar.bz2
$ cd gcc-4.1.1
$ ./configure --prefix=/mingw --host=pentium-pc-mingw32
--target=i386-pc-mingw32 --program-prefix=""
--with-as=/mingw/bin/as.exe --with-ld=/mingw/bin/ld.exe
--with-gcc --with-gnu-ld --with-gnu-as --enable-threads
--disable-nls --enable-languages=c,ada
--disable-win32-registry --disable-shared --without-x
--enable-interpreter --enable-hash-synchronization
--enable-libstdcxx-debug
$ make
(The $ denotes the MSYS prompt. The configure command is one line and comes from Scott Meyers new guide.)
Running the make command gives a lot of output, which ends up in the following lines:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
make[3]: Entering directory `/home/Administrator/gcc-4.1.1/host-pentium-pc-mingw32/gcc'
for d in libgcc; do \
if [ -d $d ]; then true; else /bin/sh ../.././gcc/../mkinstalldirs $d; fi; \
done
mkdir -p -- libgcc
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/Administrator/gcc-4.1.1/host-pentium-pc-mingw32/gcc/xgcc -B/home/Administrator/gcc-4.1.1/host-pentium-pc-mingw32/gcc/ -B/mingw/i386-pc-mingw32/bin/ -B/mingw/i386-pc-mingw32/lib/ -isystem /mingw/i386-pc-mingw32/include -isystem /mingw/i386-pc-mingw32/sys-include -O2 -I../.././gcc/../winsup/w32api/include -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -DL_chkstk -xassembler-with-cpp -c ../.././gcc/config/i386/cygwin.asm -o libgcc/./_chkstk.o
/home/Administrator/gcc-4.1.1/host-pentium-pc-mingw32/gcc/xgcc -B/home/Administrator/gcc-4.1.1/host-pentium-pc-mingw32/gcc/ -B/mingw/i386-pc-mingw32/bin/ -B/mingw/i386-pc-mingw32/lib/ -isystem /mingw/i386-pc-mingw32/include -isystem /mingw/i386-pc-mingw32/sys-include -O2 -I../.././gcc/../winsup/w32api/include -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -DL_muldi3 -c ../.././gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from ./tm.h:10,
from ../.././gcc/libgcc2.c:35:
../.././gcc/config/i386/cygming.h:52:19: error: stdio.h: No such file or directory
In file included from ./tm.h:10,
from ../.././gcc/libgcc2.c:35:
../.././gcc/config/i386/cygming.h:333: error: expected ')' before '*' token
make[3]: *** [libgcc/./_muldi3.o] Error 1
make[3]: Leaving directory `/home/Administrator/gcc-4.1.1/host-pentium-pc-mingw32/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/home/Administrator/gcc-4.1.1/host-pentium-pc-mingw32/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/Administrator/gcc-4.1.1'
make: *** [all] Error 2
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Replacing ada by obj-c++ yields exactly the same error, building only the c frontend works without problems.
I found other problem reports (http://gcc.gnu.org/ml/gcc-help/2006-04/msg00026.html and http://gcc.gnu.org/ml/gcc-help/2003-01/msg00114.html) which also deal with the missing stdio.h, but the problem there seems to be the cross compiling (As far as I understand: I am not cross compiling here). Is it possible to build the ada and/or obj-c++ frontends in MinGW?
By the way, "./config.guess" in gcc-directory gives "i686-pc-mingw32".
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
More information about the Gcc-help
mailing list