linux-gnu to mingw32 cross

Tom Tromey tromey@redhat.com
Mon Nov 25 13:41:00 GMT 2002


>>>>> "Martin" == Martin Aliger <martin_aliger@email.cz> writes:

Martin> and I must delete boehm-gc directory and hand-edit
Martin> libjava/Makefile to skip java.awt.*, javax.* and some xlib
Martin> stuff

Why do you need to skip these?
The java.awt.* and javax.* files should be ok.
The xlib files shouldn't be built by default.

Martin> include/java-threads.h: In function `int _Jv_CondWait(_Jv_ConditionVariable_t*, 
Martin>    _Jv_Mutex_t*, __java_long, __java_int)':
Martin> include/java-threads.h:53: `sleep' undeclared (first use this function)
Martin> include/java-threads.h:53: (Each undeclared identifier is reported only once 
Martin>    for each function it appears in.)

That looks like a bug of some kind.

Martin> In file included from /home/alik/java/crossgcc-src/libjava/prims.cc:46:
Martin> java/lang/Thread.h: At global scope:
Martin> java/lang/Thread.h:80: declaration does not declare anything
Martin> java/lang/Thread.h:80: storage class specified for typename
Martin> java/lang/Thread.h:80: parse error before numeric constant
Martin> java/lang/Thread.h:81: declaration does not declare anything
Martin> java/lang/Thread.h:81: storage class specified for typename
Martin> java/lang/Thread.h:81: parse error before numeric constant

This shouldn't happen.
Could you clip and send this part of Thread.h?

Martin> As well disabling GC is not good idea, is it? But boehm-gc
Martin> build fails as well (in misc.c something about GC_*_ml
Martin> undeclared function - sorry for inaccuracy)

We'll need more details.

Tom



More information about the Java mailing list