FYI: Updated "Building GCJ for Windows"

Marco Trudel mtrudel@gmx.ch
Thu Jun 15 22:39:00 GMT 2006


Hello Tom

Tom Tromey wrote:
>>>>>> "Marco" == Marco Trudel <mtrudel@gmx.ch> writes:
> 
> Marco> For GCC 4.1.1 I additionally needed these patches (didn't use the ones
> Marco> you mentioned):
> 
> Marco>  (http://gcc.gnu.org/ml/java-patches/2006-q2/msg00091.html)
> Marco> - patch-start (http://gcc.gnu.org/ml/java/2006-04/msg00010.html)
> 
> These can go on the 4.1 branch.
> I'll see if I can merge them over today.
> 
> Marco> - patch-jni (http://gcc.gnu.org/ml/java/2006-02/msg00066.html)
> Marco>    Withhout this patch, JNI won't work (thus SWT fails)...
> 
> This one is outside my realm, you need a Windows maintainer or GWP
> person to deal with it.

I forgot one build issue:

The make fails somewhere in the middle because fastjar is missing (it's
in PATH). So I copy it to buildDir/i686-pc-mingw32/libjava before
"make"ing gcc...
But I think this can be ignored... Just remebered it because I'm
currently trying to build a cross-gcc running on windows and compiling
for linux. There're a couple of similar strainge things (possibly all
because of configuration mistakes).


> Marco> - uses of the regexp (e.g. String.split()) classes will fail with:
> Marco>   java.util.MissingResourceException: Bundle gnu/regexp/MessagesBundle
> Marco>   not found
> Marco> Workaround: http://lists.debian.org/debian-gcc/2005/09/msg00141.html
> Marco> better Workaround: put the gnu/regexp/MessagesBundle into a jar and
> Marco> compile it too, so it will be builtin.
> 
> I'm afraid this problem is going to get worse.  The current plan is
> to break out all the locale-related resources into property files
> instead of classes.
> 
> The ideal thing here would be to have DLL support for Windows.  I
> haven't really kept track of the status of this.

Is it still possible to add them to the binary? Actually I preferr
having a 3 to 4 mb standalone binary instead of a directory with a
couple of dlls or libraries (on linux and windows).

regards
Marco



More information about the Java mailing list