Skip to content

opcodes: cgen regeneration errors out with guile v2+ #69

@cooljeanius

Description

@cooljeanius

trying to regenerate cgen-created files in the opcodes subdirectory fails with the following error:

/Applications/Xcode.app/Contents/Developer/usr/bin/make -w run-cgen arch=fr30 prefix=fr30 options="" \
		archfile=./../cgen/cpu/fr30.cpu opcfile=./../cgen/cpu/fr30.opc extrafiles=""
make[3]: Entering directory `/Users/ericgallager/apple-gdb-1824/src/opcodes'
/bin/sh ./cgen.sh opcodes . "`if test -f ../guile/libguile/guile; then echo ../guile/libguile/guile; else echo /opt/local/bin/guile; fi` -l ./../cgen/guile.scm -s" \
	  ./../cgen "-v" fr30 fr30 ./../cgen/cpu/fr30.cpu ./../cgen/cpu/fr30.opc \
	  "" ""
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /Users/ericgallager/apple-gdb-1824/src/opcodes/./../cgen/guile.scm
;;; WARNING: compilation of /Users/ericgallager/apple-gdb-1824/src/opcodes/./../cgen/guile.scm failed:
;;; Syntax error:
;;; /Users/ericgallager/apple-gdb-1824/src/opcodes/./../cgen/guile.scm:14:4: definition in expression context, where definitions are not allowed, in form (define (eval1 expr) (eval expr (current-module)))
ice-9/psyntax.scm:1435:12: Syntax error:
/Users/ericgallager/apple-gdb-1824/src/opcodes/./../cgen/guile.scm:14:4: definition in expression context, where definitions are not allowed, in form (define (eval1 expr) (eval expr (current-module)))
make[3]: *** [run-cgen] Error 1
make[3]: Leaving directory `/Users/ericgallager/apple-gdb-1824/src/opcodes'
make[2]: *** [stamp-fr30] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I'm going to have to actually learn cgen and guile/scheme in order to fix this... Bounty available for anyone who wants to help.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions