[kaffe] build failures

Dalibor Topic robilad@kaffe.org
Mon Jul 28 08:23:03 2003


This is a multi-part message in MIME format.
--------------090801080703080600060504
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Timothy Stack wrote:
> hi,
> 
> I'm forwarding this to the list since the build failures are different in 
> some configurations.

Thanks, I didn't notice we had different failures.

> Does anyone else want to be put on the flest mailing list (its an 
> automated test suite here at utah)?  We could send it to the mailing list, 
> but I'd like to have it only go if there are failures...

I'm on it. I agree that a regular ping whenever something fails that 
shouldn't would be nice.

>>----------------------------------------------------------------------
>>Excerpts from /foo/z/flest/testdir/kaffe_flest/--with-engine=jit3__enable-debug/build.log
>>...
>> 7 objs (0K) awaiting finalization>
>>java/lang/Throwable.java:453: error:Cannot find class "StackTraceElement" [JLS 8]
>>java/lang/Throwable.java:509: error:Cannot find class "StackTraceElement" [JLS 8]
>>java/lang/VMThrowable.java:90: error:Cannot find class "StackTraceElement" [JLS 8]
>>[ checked interfaces in 2653 ms ]
>>gmake[1]: *** [lib/stamp] Error 1
>>gmake[1]: Leaving directory `/foo/z/flest/testdir/kaffe_flest/--with-engine=jit3__enable-debug/obj-kaffe_flest/libraries/javalib'
>>gmake: *** [all-recursive] Error 1
>>close failed: , status 512
>>fatal: build failed

fixed by my previous patch.

>>/foo/z/flest/testdir/kaffe_flest/kaffe_flest/kaffe/libraries/clib/management/JIT.c:44: undefined reference to `dumpActiveMethods'
>>collect2: ld returned 1 exit status
>>rm -f .libs/kaffe-binS.o

I'll leave that for someone else ;)

>>- Pretests for configopt "--with-engine=intrp --enable-debug"
>>Mon Jul 28 07:57:33 2003
>>
>>PASS	configure
>>FAIL	build
>>----------------------------------------------------------------------
>>Excerpts from /foo/z/flest/testdir/kaffe_flest/--with-engine=intrp__enable-debug/build.log
>>...
>>../kaffevm/.libs/libkaffevm.so: undefined reference to `FIRSTFRAME'
>>../kaffevm/.libs/libkaffevm.so: undefined reference to `EXCEPTIONFRAME'
>>collect2: ld returned 1 exit status

and

>>/foo/z/flest/testdir/kaffe_flest/kaffe_flest/kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.c:776: undefined reference to `FIRSTFRAME'
>>collect2: ld returned 1 exit status
>>rm -f .libs/kaffe-binS.o
>>gmake[2]: *** [kaffe-bin] Error 1

should be fixed by attached patch.

cheers,
dalibor topic

--------------090801080703080600060504
Content-Type: text/plain;
 name="kaffe-intrp-fix.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="kaffe-intrp-fix.diff"

Index: kaffe/kaffevm/systems/unix-jthreads/jthread.c
===================================================================
RCS file: /cvs/kaffe/kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.c,v
retrieving revision 1.95
diff -u -r1.95 jthread.c
--- kaffe/kaffevm/systems/unix-jthreads/jthread.c	26 Jul 2003 16:50:53 -0000	1.95
+++ kaffe/kaffevm/systems/unix-jthreads/jthread.c	28 Jul 2003 15:16:53 -0000
@@ -60,6 +60,10 @@
 
 #endif
 
+#if defined(INTERPRETER)
+#define FIRSTFRAME(f, e)        /* Does nothing */
+#endif /* INTERPRETER */
+
 /*
  * Variables.
  * These should be kept static to ensure encapsulation.
Index: kaffe/kaffevm/systems/unix-jthreads/jthread.h
===================================================================
RCS file: /cvs/kaffe/kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h,v
retrieving revision 1.42
diff -u -r1.42 jthread.h
--- kaffe/kaffevm/systems/unix-jthreads/jthread.h	26 Jul 2003 16:50:53 -0000	1.42
+++ kaffe/kaffevm/systems/unix-jthreads/jthread.h	28 Jul 2003 15:16:53 -0000
@@ -87,6 +87,16 @@
 #define THREAD_FLAGS_WAIT_MUTEX		256
 #define THREAD_FLAGS_WAIT_CONDVAR	512
 
+#if defined(INTERPRETER)
+#define DEFINEFRAME()           /* Does nothing */
+#define EXCEPTIONPROTO          int sig
+#define EXCEPTIONFRAME(f, c)    /* Does nothing */
+#define EXCEPTIONFRAMEPTR       0
+#elif defined(TRANSLATOR)
+#define DEFINEFRAME()           exceptionFrame frame
+#define EXCEPTIONFRAMEPTR       &frame
+#endif /* TRANSLATOR */
+
 /*
  * This is our internal structure representing the "native" threads.
  * This used to be called "ctx".
Index: kaffe/kaffevm/systems/unix-jthreads/signal.c
===================================================================
RCS file: /cvs/kaffe/kaffe/kaffe/kaffevm/systems/unix-jthreads/signal.c,v
retrieving revision 1.10
diff -u -r1.10 signal.c
--- kaffe/kaffevm/systems/unix-jthreads/signal.c	11 Sep 2000 00:58:18 -0000	1.10
+++ kaffe/kaffevm/systems/unix-jthreads/signal.c	28 Jul 2003 15:16:53 -0000
@@ -20,16 +20,6 @@
 #include "md.h"
 #include "gc.h"
 
-#if defined(INTERPRETER)
-#define	DEFINEFRAME()		/* Does nothing */
-#define	EXCEPTIONPROTO		int sig
-#define	EXCEPTIONFRAME(f, c)	/* Does nothing */
-#define	EXCEPTIONFRAMEPTR	0
-#elif defined(TRANSLATOR)
-#define	DEFINEFRAME()		exceptionFrame frame
-#define	EXCEPTIONFRAMEPTR	&frame
-#endif /* TRANSLATOR */
-
 static void nullException(EXCEPTIONPROTO);
 static void floatingException(EXCEPTIONPROTO);
 

--------------090801080703080600060504--