From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 435 invoked by alias); 2 Dec 2006 22:09:57 -0000 Received: (qmail 423 invoked by uid 22791); 2 Dec 2006 22:09:56 -0000 X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.31) with SMTP; Sat, 02 Dec 2006 22:09:50 +0000 Received: (qmail 26077 invoked by uid 0); 2 Dec 2006 22:09:47 -0000 Received: from 85.178.185.28 by www034.gmx.net with HTTP; Sat, 02 Dec 2006 23:09:47 +0100 (CET) Content-Type: text/plain; charset="iso-8859-1" Date: Sat, 02 Dec 2006 22:09:00 -0000 From: Wolfgang.Boiger@gmx.net Message-ID: <20061202220947.319350@gmx.net> MIME-Version: 1.0 Subject: stdio.h not found when building Ada or Obj-C++ front ends under MinGW To: gcc-help@gcc.gnu.org X-Authenticated: #34623902 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) Content-Transfer-Encoding: 8bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-12/txt/msg00021.txt.bz2 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