This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help: Attempting to build GCC on Win98


Hi,

Has anyone successfully built GCC on Win98 (or Windows 95
for that matter) using either CYGWIN or MSYS?

I have exactly the same setup and configure scripts on both
Win2K and Win98 (using MinGW/MSYS) and they yield radically
different results - the Win98 build always fails trying to
find the standard include files (stdio.h, etc.) while
building like so:
------------------------------- 8< -----------------------------------
./xgcc -B./ -B/mingw/mingw32/bin/ -isystem /mingw/mingw32/include -isystem /mingw/mingw32/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -I. -I. -I../../gcc-3.2/gcc -I../../gcc-3.2/gcc/. -I../../gcc-3.2/gcc/config -I../../gcc-3.2/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions \
-c ../../gcc-3.2/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from tconfig.h:16,
from ../../gcc-3.2/gcc/crtstuff.c:61:
../../gcc-3.2/gcc/config/i386/cygming.h:31:19: stdio.h: No such file or directory
------------------------------- 8< -----------------------------------

Since I'm not trying to build a cross-compiler, all the results
that I get from Google on a query on this do not, I think, apply.
Hence a plea to this list - please help!

FWIW, here's the configure command I use (on both Win2K and Win98:
------------------------------- 8< -----------------------------------
../gcc-3.2/configure --prefix=/mingw --host=mingw32 --target=mingw32 --build=mingw32 --oldincludedir=/mingw/include --with-gcc --with-gnu-as --with-gnu-ld --enable-threads=win32 --disable-nls --enable-languages=c,c++,java --disable-win32-registry --disable-shared --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --disable-multilib
------------------------------- 8< -----------------------------------

What I have noticed is:

1. The Makefile thinks (on both Win2K and Win98) that the system headers
should be in /mingw/mingw32/include and /mingw/mingw32/sys-include -
they are not. However, it somehow works on Win2K but not on Win98.

2. On Win2K, I can use the xgcc.exe from the first stage to compile
simple programs without the need for the -B and -isystem switches,
while I need to provide them explicitly on Win98.

3. If I try mounting the normal "/mingw/include" folder containing
the standard include files on "/mingw/mingw32/include" as expected
by the Makefile, things chug along until they break down again
trying to find stdio.h, etc. with "stage2/xgcc" which doesn't even
get the appropriate -isystem flags from the Makefile.

Any and all help and insights are greatly appreciated!

Sincerely Yours,
Ranjit.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]