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

Unable to run examples #74

Open
garlic0x1 opened this issue Jan 28, 2025 · 0 comments
Open

Unable to run examples #74

garlic0x1 opened this issue Jan 28, 2025 · 0 comments

Comments

@garlic0x1
Copy link

I am trying to run the libcalc example and have run into a number of
issues.

  1. UIOP/QL is not loading in examples/libcalc/script.lisp

Fixed this by requiring UIOP and loading Quicklisp at the top of the
script, this might just be an issue with my personal setup, scripts
don't load ~/.sbclrc

  1. *incbin-filename* is unbound

I don't understand why, but unless I get rid of the eval-when
wrapping this parameter in src/fasl-lib.lisp, it remains unbound.

  1. The Makefile in libcalc example tries to build a dylib on Linux

This obviously doesn't work, so I commented out that part of the
Makefile:

example: libsbcl.so # libcalc.dylib << Commented out
	$(CC) example.c -o example -lsbcl -lcalc -L.
  1. This step of the Makefile doesn't find sbcl_librarian_err.h

I fixed it by adding an include path in the CC command, now that Make
target looks like this:

example: libsbcl.so # libcalc.dylib << Commented out
	$(CC) example.c -o example -I$(ROOT_DIR)/lib -lsbcl -lcalc -L.
  1. It still doesn't find sbcl_librarian.h

This is what I'm stuck on now, there is no header named
sbcl_librarian.h in the repo, and I'm not sure if I need to generate
it somehow.

Right now, after solving this issues, I am here:

garlic@pi:~/common-lisp/sbcl-librarian/examples/libcalc $ make example
cc example.c -o example -I/home/garlic/common-lisp/sbcl-librarian/lib -lsbcl -lcalc -L.
example.c:2:10: fatal error: sbcl_librarian.h: No such file or directory
    2 | #include <sbcl_librarian.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:9: example] Error 1

Any help is appreciated, thank you.

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

1 participant