Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plan 9: fails to start repl (srfi-69 issue?) #947

Open
ec1oud opened this issue Jan 13, 2024 · 3 comments
Open

Plan 9: fails to start repl (srfi-69 issue?) #947

ec1oud opened this issue Jan 13, 2024 · 3 comments

Comments

@ec1oud
Copy link

ec1oud commented Jan 13, 2024

I'm running 9front on a raspberry pi.

----- cpu% mk install
echo '#define sexp_default_module_path "'/sys/lib/chibi-scheme'"' > include/chibi/install.h
echo '#define sexp_so_extension ".no-such-file"' >> include/chibi/install.h
echo '#define sexp_platform "plan9"' >> include/chibi/install.h
echo '#define sexp_version "'`{cat VERSION}'"' >> include/chibi/install.h
echo '#define sexp_release_name "'`{cat RELEASE}'"' >> include/chibi/install.h
7c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 -D__arm64 gc.c
7c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 -D__arm64 sexp.c
7c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 -D__arm64 bignum.c
7c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 -D__arm64 opcodes.c
7c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 -D__arm64 plan9.c
7c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 -D__arm64 vm.c
7c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 -D__arm64 simplify.c
7c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 -D__arm64 eval.c
7c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 -D__arm64 main.c
7l  -o 7.out gc.7 sexp.7 bignum.7 opcodes.7 plan9.7 vm.7 simplify.7 eval.7 main.7
cp 7.out /arm64/bin/chibi-scheme
test -d /sys/lib/chibi-scheme || mkdir -p /sys/lib/chibi-scheme
{cd lib; tar c .} | {cd /sys/lib/chibi-scheme ; tar x }
----- cpu% chibi-scheme
ERROR: couldn't find include: "srfi/69/hash.no-such-file"
  called from <anonymous> on line 211 of file /sys/lib/chibi-scheme/meta-7.scm
  called from <anonymous> on line 1190 of file /sys/lib/chibi-scheme/init-7.scm
  called from <anonymous> on line 804 of file /sys/lib/chibi-scheme/init-7.scm
  called from error on line 108 of file /sys/lib/chibi-scheme/init-7.scm
  called from for1 on line 82 of file /sys/lib/chibi-scheme/init-7.scm
  called from for1 on line 82 of file /sys/lib/chibi-scheme/init-7.scm
  called from <anonymous> on line 804 of file /sys/lib/chibi-scheme/init-7.scm
  called from call-with-current-continuation on line 827 of file /sys/lib/chibi-scheme/init-7.scm
  called from <anonymous> on line 259 of file /sys/lib/chibi-scheme/init-7.scm
  called from <anonymous> on line 251 of file /sys/lib/chibi-scheme/meta-7.scm
  called from <anonymous> on line 279 of file /sys/lib/chibi-scheme/init-7.scm
  called from for1 on line 81 of file /sys/lib/chibi-scheme/init-7.scm
  called from for1 on line 81 of file /sys/lib/chibi-scheme/init-7.scm
  called from <anonymous> on line 259 of file /sys/lib/chibi-scheme/init-7.scm
  called from <anonymous> on line 250 of file /sys/lib/chibi-scheme/meta-7.scm
  called from <anonymous> on line 279 of file /sys/lib/chibi-scheme/init-7.scm
  called from for1 on line 81 of file /sys/lib/chibi-scheme/init-7.scm
  called from for1 on line 81 of file /sys/lib/chibi-scheme/init-7.scm
  called from <anonymous> on line 259 of file /sys/lib/chibi-scheme/init-7.scm
  called from <anonymous> on line 250 of file /sys/lib/chibi-scheme/meta-7.scm
  called from <anonymous> on line 279 of file /sys/lib/chibi-scheme/init-7.scm
  called from for1 on line 81 of file /sys/lib/chibi-scheme/init-7.scm
  called from for1 on line 81 of file /sys/lib/chibi-scheme/init-7.scm
  called from <anonymous> on line 259 of file /sys/lib/chibi-scheme/init-7.scm
  called from <anonymous> on line 250 of file /sys/lib/chibi-scheme/meta-7.scm
  called from <anonymous> on line 279 of file /sys/lib/chibi-scheme/init-7.scm
  called from for1 on line 80 of file /sys/lib/chibi-scheme/init-7.scm
  called from <anonymous> on line 235 of file /sys/lib/chibi-scheme/meta-7.scm
@ec1oud
Copy link
Author

ec1oud commented Jan 14, 2024

Reproduced on amd64 9front too. Tested the most-recent release 05eb4ebd 2021-05-11 00:06 (tag: 0.10) as well as git head.

@smazga
Copy link
Contributor

smazga commented Jan 17, 2024

Currently the "full" chibi doesn't seem to work. If you start it with chibi-scheme -q, it runs, but it's pretty bare-bones.

I've been picking at it, but it looks like most of the functionality needs POSIX libraries. Unfortunately, it doesn't seem to be as easy as just flipping an APE switch, but maybe that's a way forward.

@ashinn
Copy link
Owner

ashinn commented May 29, 2024

Probably easiest to statically include SRFI 69 in the Plan9 build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants