clasp icon indicating copy to clipboard operation
clasp copied to clipboard

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

Open logoraz opened this issue 1 year ago • 0 comments

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 avatar Sep 22 '24 19:09 logoraz