[kaffe] Help me !!! I porting the kaffe on mpis cpu, but I had error of execution
Atsushi Nemoto
anemo at mba.ocn.ne.jp
Wed Nov 12 21:25:02 PST 2003
>>>>> On Tue, 11 Nov 2003 10:18:01 +0100, "Kevin D. Kissell" <kevink at mips.com> said:
kevink> Kaffe 1.1.0 will build as distributed but you must not build
kevink> it with the JIT, which was unfortunately still the default
kevink> MIPS build as of 1.1.0. When you configure, you need to
kevink> specify ".configure --with-engine=intrp".
I also am trying to build kaffe on mipsel-linux (Debian 3.0).
I could build kaffe-1.1.2 (and CVS 20031106) with intrp, but I got
some warnings:
/work/src/kaffe-interp/../kaffe-20031106/kaffe/kaffevm/intrp/stackTrace-impl.h:25: warning: `EXCEPTIONFRAME' redefined
../../config/../../kaffe-20031106/config/mips/linux/md.h:45: warning: this is the location of the previous definition
And I could not build with jit3. I got an error on compiling
jthread.o:
../../../../../kaffe-20031106/kaffe/kaffevm/systems/unix-jthreads/jthread.c: In function `interrupt':
../../../../../kaffe-20031106/kaffe/kaffevm/systems/unix-jthreads/jthread.c:420: `sc' undeclared (first use in this function)
../../../../../kaffe-20031106/kaffe/kaffevm/systems/unix-jthreads/jthread.c:420: (Each undeclared identifier is reported only once
../../../../../kaffe-20031106/kaffe/kaffevm/systems/unix-jthreads/jthread.c:420: for each function it appears in.)
I modified config/mips/linux/jit-md.h and config/mips/linux/md.h, then
I could build with jit3, but still fail on the 'compile_time test'.
Making all in compile_time
make[3]: Entering directory `/work/src/kaffe-jit/test/regression/compile_time'
make[3]: *** [ClassToInterface.class] Aborted
Here is a patch to fix the warnings and build-error. Can someone
review this and apply to CVS if no problem?
diff -ur kaffe-20031106.org/config/mips/linux/jit-md.h kaffe-20031106/config/mips/linux/jit-md.h
--- kaffe-20031106.org/config/mips/linux/jit-md.h Mon Nov 10 16:13:57 2003
+++ kaffe-20031106/config/mips/linux/jit-md.h Mon Nov 10 11:08:44 2003
@@ -26,4 +26,13 @@
#undef SA_SIGINFO
#endif
+/* Define the entry into a signal handler */
+#define EXCEPTIONPROTO int sig, int cause, struct sigcontext *ctx
+
+/* Get the first exception frame from a signal handler */
+#define MIPS_FP 30
+#define EXCEPTIONFRAME(f, c) \
+ (f).return_frame = (void *)(unsigned long)(c)->sc_regs[MIPS_FP]; \
+ (f).return_pc = (void *)(unsigned long)(c)->sc_pc
+
#endif
diff -ur kaffe-20031106.org/config/mips/linux/md.h kaffe-20031106/config/mips/linux/md.h
--- kaffe-20031106.org/config/mips/linux/md.h Mon Nov 10 16:13:57 2003
+++ kaffe-20031106/config/mips/linux/md.h Mon Nov 10 11:08:44 2003
@@ -34,15 +34,9 @@
/* Signal handling */
/**/
#include <signal.h>
-
-/* Define the entry into a signal handler */
-#define EXCEPTIONPROTO int sig, int cause, struct sigcontext *ctx
-
-/* Get the first exception frame from a signal handler */
-#define MIPS_FP 30
-#define EXCEPTIONFRAME(f, c) \
- (f).return_frame = (void*)(c)->sc_regs[MIPS_FP]; \
- (f).return_pc = (void*)(c)->sc_pc
-
+#define SIGNAL_ARGS(sig, sc) int sig, int dummy, struct sigcontext *sc
+#define SIGNAL_CONTEXT_POINTER(scp) struct sigcontext * scp
+#define GET_SIGNAL_CONTEXT_POINTER(sc) (sc)
+#define SIGNAL_PC(scp) scp->pc
#endif
---
Atsushi Nemoto
More information about the kaffe
mailing list