Hi,

I am trying to use the bug report page documented in the info pages,
but savannah seems to be down.

Here are the patches used for building gforth-0.6.2 on NetBSD. It
fixes errors in the install stage (stripping a script fails in
NetBSD and probably in other BSDs), adds cache-flushing code for
NetBSD/m68k and fixes an error in sokoban.fs. Only the patch to
Makefile.in is mine, so I can't really tell if sokoban.fs is
broken. In the CVS comment, itohy says:

"I couldn't complete level 11 of sokoban without this change...."

Greetings,
  Jorge Acereda

diff -ur /tmp/gforth-0.6.2/Makefile.in gforth-0.6.2/Makefile.in
--- /tmp/gforth-0.6.2/Makefile.in       2003-08-25 09:57:49.000000000 +0200
+++ gforth-0.6.2/Makefile.in    2003-12-04 10:28:03.000000000 +0100
@@ -60,6 +60,7 @@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_INFO = @INSTALL_INFO@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
 LN_S   = @LN_S@
 GCC    = @CC@
 CC     = $(GCC)
@@ -528,8 +529,8 @@
                (cd $(bindir) && $(LN_S) gforth-fast-$(VERSION)$(EXE) 
gforth-fast$(EXE))
                $(INSTALL_PROGRAM) -s gforth-itc$(EXE) 
$(bindir)/gforth-itc-$(VERSION)$(EXE)
                (cd $(bindir) && $(LN_S) gforth-itc-$(VERSION)$(EXE) gforth-itc$(EXE))
-               $(INSTALL_PROGRAM) gforthmi $(bindir)/gforthmi-$(VERSION)
-               $(INSTALL_PROGRAM) vmgen $(bindir)/vmgen-$(VERSION)
+               $(INSTALL_SCRIPT) gforthmi $(bindir)/gforthmi-$(VERSION)
+               $(INSTALL_SCRIPT) vmgen $(bindir)/vmgen-$(VERSION)
                $(INSTALL_PROGRAM) gforth-ditc $(libdir)/gforth/$(VERSION)
                (cd $(bindir) && $(LN_S) gforthmi-$(VERSION) gforthmi)
                (cd $(bindir) && $(LN_S) vmgen-$(VERSION) vmgen)
Only in gforth-0.6.2: Makefile.in.orig
diff -ur /tmp/gforth-0.6.2/arch/m68k/machine.h gforth-0.6.2/arch/m68k/machine.h
--- /tmp/gforth-0.6.2/arch/m68k/machine.h       2003-03-09 16:06:28.000000000 +0100
+++ gforth-0.6.2/arch/m68k/machine.h    2003-12-04 10:28:03.000000000 +0100
@@ -39,7 +39,16 @@
  */
 #if defined(apollo)
 #  define FLUSH_ICACHE(addr,size)    cache_$clear()
-#elif defined(NeXT)
+#elif defined(__NetBSD__)
+#  define FLUSH_ICACHE(addr,size)      do {                            \
+               register void *addr_ asm("a1") = (addr);                \
+               register int size_ asm("d1") = (size);                  \
+               register int cmd_ asm("d0") = 0x80000004;               \
+               asm volatile("  trap    #12"                            \
+                       : "=a" (addr_), "=d" (size_), "=d" (cmd_)       \
+                       : "0" (addr_), "1" (size_), "2" (cmd_) : "a0"); \
+       } while (0)
+#elif defined(NeXT) || defined(sun)
 #  define FLUSH_ICACHE(addr,size)     asm("trap #2");
 #elif defined(hpux)
 #  include <sys/cache.h>
Only in gforth-0.6.2/arch/m68k: machine.h.orig
diff -ur /tmp/gforth-0.6.2/sokoban.fs gforth-0.6.2/sokoban.fs
--- /tmp/gforth-0.6.2/sokoban.fs        2003-03-09 16:06:02.000000000 +0100
+++ gforth-0.6.2/sokoban.fs     2003-12-04 10:28:03.000000000 +0100
@@ -137,7 +137,7 @@
        S" &* " S" .&$" r@ play-rule
              IF  r> soko +!  1 rocks +! -1 score +!  EXIT  THEN
        S" &$." S" [EMAIL PROTECTED]" r@ play-rule
-             IF  r> soko +!  1 rocks +! -1 score +!  EXIT  THEN
+             IF  r> soko +! -1 rocks +!  1 score +!  EXIT  THEN
        -1 moves +!  r> drop  ;
 
 1            move: soko-right
Only in gforth-0.6.2: sokoban.fs.orig


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to