compiling Kaffe for win32 !

kaffe@rufus.w3.org kaffe@rufus.w3.org
Thu, 20 Aug 1998 15:33:34 -0700


I get the following error when I try to do a make after running configure:

BASH.EXE-2.01$ make
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
gcc -g -O2 -I. -I../../../include -I./../../../include -I../../../config
-I./../../../config  -c  Runtime.c -o Runtime.o
In file included from Runtime.c:16:
../../../config/config-io.h:21: invalid macro name
make[3]: *** [Runtime.o] Error 1
make[2]: *** [all] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 1

-----Original Message-----
From: Pavel.Roskin@ecsoft.co.uk [mailto:Pavel.Roskin@ecsoft.co.uk]
Sent: Friday, August 14, 1998 9:22 AM
To: kaffe@rufus.w3.org
Subject: RE: compiling Kaffe for win32 !

Hello!

I have compiled current Kaffe with Cygwin32 and I can run HelloWorldApp.
Following may help you:
1) Get latest config.guess and config.sub from
ftp://ftp.cygnus.com/pub/home/tromey/automake-1.3b.tar.gz
2) Move contents of config/i386/win32/cygnus to config/i386/cygwin32
3) Change host_os in config/i386/cygwin32/config.frag to cygwin32
(actually, I suppose that this declaration is not needed at all)
4) ./configure --with-staticlib --with-engine=intrp
--with-threads=unix-internal
This would eliminate most problems Kaffe currently has.
5) make
6) correct some minor errors
7) If compiler will ask for some includes, give him netinet/tcp.h (empty is
Ok), jpeg*.h, X11/*.h. Don't worry, neither libjpeg nor X libraries will be
linked.
After that you will have Kaffe.exe. If you want to run it from bash, don't
forget, that classpath separator on Windows is ';', don't forget to escape
it.

Pavel Roskin <pavel.roskin@ecsoft.co.uk>