From: Earnie B. <ea...@us...> - 2004-01-22 11:42:57
|
Rolf Ebert wrote: > I have a problem boostrapping gcc. > > The build process stops whenever the stage1 compiler xgcc has to compile a C file: > > ./xgcc -B./ -B/mingw/mingw32/bin/ -isystem /mingw/mingw32/include -isystem /mingw/mingw32/sys-include -O2 -I../../gcc-.3.2/gcc/../winsup/include -I../../gcc-3.3.2/gcc/../winsup/cygwin/include -I../../gcc-.3.2/gcc/../winsup/w32api/include -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.3.2/gcc -I../../gcc-3.3.2/gcc/. - ../../gcc-3.3.2/gcc/config -I../../gcc-3.3.2/gcc/../include -DL_muldi3 -c ../../gcc-3.3.2/gcc/libgcc2.c -o libgcc/./_muldi3.o > In file included from ../../gcc-3.3.2/gcc/config/i386/mingw32.h:32, > from tconfig.h:17, > from ../../gcc-3.3.2/gcc/libgcc2.c:36: > ../../gcc-3.3.2/gcc/config/i386/cygwin.h:30:19: stdio.h: No such file or directory > In file included from ../../gcc-3.3.2/gcc/config/i386/mingw32.h:32, > from tconfig.h:17, > from ../../gcc-3.3.2/gcc/libgcc2.c:36: > ../../gcc-3.3.2/gcc/config/i386/cygwin.h:415: error: parse error before '*' token > ../../gcc-3.3.2/gcc/config/i386/cygwin.h:415: warning: function declaration isn't a prototype > > The stage1 compiler does not find the system include files located at > /mingw/include. > > > $ cat config.status > #!/bin/sh > # This file was generated automatically by configure. Do not edit. > # This directory was configured as follows: > ../gcc-3.3.2/configure --with-gcc-version-trigger=/cygdrive/d/Data/Development/g > cc-cvs/gcc-3.3.2/gcc/version.c --with-gcc --with-gnu-ld --with-gnu-as --host=min > gw32 --target=mingw32 --prefix=/mingw --disable-threads --disable-nls --enable-l > anguages=c --disable-win32-registry --enable-sjlj-exceptions --norecursion > # using "mh-frag" > > MinGW-3.1.0 is installed in D:\Programme\MinGW-3.1.0 > > MSYS 1.0.10-rc3 is installed in C:\msys\1.0.10rc3 (different drives! is that a problem?) > $ cat /etc/fstab > d:/Programme/MinGW-3.1.0 /mingw > > I extracted the win32api-2.4 while being in /mingw > > The problem occurs independantly if I use cygwin or MSys for bootstrapping. > > Any idea? > 1) MSYS doesn't understand what a /cygdrive is; just remove /cygdrive from the specified path. 2) You don't specify the --build=mingw32 so the configure script is thinking your a building in a cross environment so it looks in the target directory /mingw/mingw32 for the include directory for the system headers. a) I'm not certain that including --build=mingw32 will change that result. b) There is also an --oldinclude configure switch that may help. 3) Don't specify the bootstrap Makefile target and see if that helps. Earnie. -- http://www.mingw.org http://sourceforge.net/projects/mingw https://sourceforge.net/donate/index.php?user_id=15438 |