Closed bentxt closed 1 year ago
Thank you for trying Mosh. I was able to reproduce this but no clue what's happening there. This is probably GC issue.
Could you try GC_DONT_GC=1 ./gen-git-build.sh
instead of ./gen-git-build.sh
?
I did try it with and here's the error output
$ GC_DONT_GC=1 ./gen-git-build.sh
...
expanding(R5RS) mosh-exceptions.scm with ((rnrs) (nmosh conditions))
expanding(R5RS) expander.scm with ((rnrs base))
expanding(R6RS) init.ss
program
compile...
writing boot image...
done.
done.
gmake[1]: Leaving directory '/Users/ben/builds/mosh-scheme/mosh.git/boot/runtimes/srfi-mosh'
cp runtimes/srfi-mosh/nmosh_image.cpp ../src/nmosh_image.cpp
gmake: Leaving directory '/Users/ben/builds/mosh-scheme/mosh.git/boot'
generating free-vars-decl.scm
gmake: Entering directory '/Users/ben/builds/mosh-scheme/mosh.git/boot'
gmake: 'free-vars-decl.scm' is up to date.
gmake: Leaving directory '/Users/ben/builds/mosh-scheme/mosh.git/boot'
gmake: 'src/Instruction.h' is up to date.
bison -p "number_yy" -d src/NumberReader.y -o src/NumberReader.tab.cpp
src/NumberReader.y:124.1-5: invalid directive: `%code'
src/NumberReader.y:125.1-127.1: syntax error, unexpected {...}
gmake: *** [Generate.mk:41: src/NumberReader.tab.cpp] Error 1
macOS have incompatible version of bison
so you'll have to set PATH
to Homebrew(or whatever) provided bison
e.g.) export PATH=/usr/local/opt/bison/bin:$PATH
thanks your solution worked:
brew install bison
export PATH=/usr/local/opt/bison/bin:$PATH
GC_DONT_GC=1 ./gen-git-build.sh
When I first ran
./gen-git-build.sh
on macos Ventura 13.1, I got this error