Subject: Re: Kaffe 1.0.5 build failure - NetBSD 1.4.2 (mips,pmax)
To: Robert D. Mohr <robmohr@earthlink.net>
From: Bob Lantz <lantz@Stanford.EDU>
List: port-pmax
Date: 04/16/2000 15:19:56
A while back, I was able to get an older version of kaffe built and
running successfully, including the jit, with a patch posted to this list
(see below - sorry for line wraps.) Unfortunately, 1.0.5 seems to be
broken for mips/netbsd. Using similar hacks (munging config files based on
sgi and linux/mips config files) I was able to compile 1.0.5, but not run
it.

My own experience of compiling netbsd ports (xemacs, mozilla, kaffe, etc.) 
is that generally you need to figure out how the program works, at least
the weird runtime stuff that tends to break, and do a bit of debugging in
order to get it running!! The advantage and disadvantage of
fix-it-yourself software.... 

It would be nice to have kaffe 1.0.5 working, though. It's too bad that it
works on irix and linux/mips but not netbsd!!

Bob

On Sat, 15 Apr 2000, Robert D. Mohr wrote:

> Kaffe 1.0.5 is failing to build from the NetBSD package distribution on my
> DECStation 3100 running NetBSD 1.4.2.  I gather from past posts to this list
> that the JIT is not currently supported on the mips platform.  Apparently
> the NetBSD port is not disabling this in the Makefile, as the build is
> failing while attempting to build jit3.  I've captured a log of the events
> proceding the failure so that someone may verify that my interpretation is
> correct.  I'm sure there is an easy fix for this, but I am a novice at
> editing makefiles, especially ones which are part of a package distribution
> system such as is being used by NetBSD.
> 
> Would anyone care to lend a hand and point me in the right direction to
> correct this?  Thanks in advance for any help you can offer,
> 
> Rob Mohr


--- config/mips/netbsd1/md.h.org        Sun Jun 13 19:47:28 1999
+++ config/mips/netbsd1/md.h    Sun Jun 13 22:05:22 1999
@@ -12,6 +12,13 @@
 #ifndef __mips_netbsd1_md_h
 #define __mips_netbsd1_md_h
 
+#define _MIPS_SIM _MIPS_SIM_ABI32
+
+#include "mips/common.h"
 #include "mips/threads.h"
+
+#undef  SP_OFFSET
+
+#define SP_OFFSET       32
 
 #endif



--- config/mips/netbsd1/md.c.org        Sun Jun 13 19:48:09 1999
+++ config/mips/netbsd1/md.c    Sun Jun 13 19:55:42 1999
@@ -8,3 +8,9 @@
  * See the file "license.terms" for information on usage and
redistribution 
  * of this file. 
  */
+
+#define _MIPS_SIM _MIPS_SIM_ABI32
+
+#include "mips/common.h"
+
+#include "mips/mips.c"