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

TYPE-ERROR - NIL is not of type LLVM-SYS:IRBUILDER-BASE #1633

Open
logoraz opened this issue Sep 22, 2024 · 0 comments
Open

TYPE-ERROR - NIL is not of type LLVM-SYS:IRBUILDER-BASE #1633

logoraz opened this issue Sep 22, 2024 · 0 comments
Labels

Comments

@logoraz
Copy link

logoraz commented Sep 22, 2024

Describe the bug
Loading example system from cl-gtk4 (https://github.com/bohonghuang/cl-gtk4/tree/master/examples) results in TYPE-ERROR.

Perused open issues, however, did not see this specific issue. I apologize if this is a duplicate...

Also, cl-gtk4 states to be compatible with implementations that have support for CFFI callback (required by `cl-gobject-introspection'), though unsure if it is an issue with their implementation or clasp's.

Expected behavior
Loads system successfully, analogously to what is observed for SBCL.

Actual behavior
When loading system :cl-gtk4/example, clasp errors with the following message:

Condition of type: TYPE-ERROR
NIL is not of type LLVM-SYS:IRBUILDER-BASE.

Code at issue
Note: Using Guix SD, so cl-gtk4 dependencies are installed via manifest specifying dependencies as opposed to quicklisp.

Guix Manifest used (gtk4-manifest.scm):

(specifications->manifest
 '("cl-gtk4"
   "gtk"
   "gobject-introspection"))

Code that results in error (in clasp):

(require :asdf)
(asdf:load-system :cl-gtk4/example) ;; results in error for clasp

Code above trialed for SBCL loads successfully and is able to subsequently run example (gtk4.example:simple-menu)

Other steps to reproduce

  1. Clone repo: https://github.com/bohonghuang/cl-gtk4.git to ~/common-lisp or another asdf loadable location
  2. In terminal, load guix manifest guix shell -m path/to/gtk4-manifest.scm -- clasp (source listed above)
  3. In clasp lisp repl, run code stated to result in error (above)

Context

@logoraz logoraz added the bug label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant