* stdio.h not found when building Ada or Obj-C++ front ends under MinGW
@ 2006-12-02 22:09 Wolfgang.Boiger
2006-12-02 22:24 ` Tim Prince
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang.Boiger @ 2006-12-02 22:09 UTC (permalink / raw)
To: gcc-help
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: stdio.h not found when building Ada or Obj-C++ front ends under MinGW
2006-12-02 22:09 stdio.h not found when building Ada or Obj-C++ front ends under MinGW Wolfgang.Boiger
@ 2006-12-02 22:24 ` Tim Prince
2006-12-05 22:23 ` Wolfgang0815
0 siblings, 1 reply; 3+ messages in thread
From: Tim Prince @ 2006-12-02 22:24 UTC (permalink / raw)
To: Wolfgang.Boiger; +Cc: gcc-help
Wolfgang.Boiger@gmx.net wrote:
> 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
>
>(As far as I understand: I am not cross compiling here).
>
> By the way, "./config.guess" in gcc-directory gives "i686-pc-mingw32".
Shouldn't you allow that choice for your host? If you configure so as
to over-write your host installation if you should reach the install
step, shouldn't your target be the same, since you don't intend a
cross-compiler?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Re: stdio.h not found when building Ada or Obj-C++ front ends under MinGW
2006-12-02 22:24 ` Tim Prince
@ 2006-12-05 22:23 ` Wolfgang0815
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang0815 @ 2006-12-05 22:23 UTC (permalink / raw)
To: tprince; +Cc: gcc-help
Hi,
> Shouldn't you allow that choice for your host? If you configure so as
> to over-write your host installation if you should reach the install
> step, shouldn't your target be the same, since you don't intend a
> cross-compiler?
yes, it seems your right. I shortened the config-command-line to
./configure --prefix=/mingw --enable-languages=c,ada
--with-ld=/mingw/bin/ld.exe --disable-bootstrap
and now the make process passed the problem.
Thanks for your help.
(Now another error occurs, which I will post in a separate thread. I hope that is OK with list rules.)
Thanks again,
Wolfgang
--
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-12-05 22:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-02 22:09 stdio.h not found when building Ada or Obj-C++ front ends under MinGW Wolfgang.Boiger
2006-12-02 22:24 ` Tim Prince
2006-12-05 22:23 ` Wolfgang0815
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).