abcl icon indicating copy to clipboard operation
abcl copied to clipboard

Fix ASDF:BUNDLE-OP

Open easye opened this issue 4 years ago • 2 comments

c.f. https://abcl.org/trac/ticket/484#ticket

easye avatar Jan 18 '21 17:01 easye

From https://abcl.org/trac/ticket/484#comment:2:

Unfortunately, I can't replicate your original failure.

After installing and loading issr-core from Quicklisp

(ql:quickload :issr-core)

The following forms seem to work just fine:

(defmethod asdf/bundle:bundle-type ((bundle-op asdf:monolithic-load-bundle-op)) :fasl)
(mapc #'asdf:register-preloaded-system '(str plump global-vars))
(asdf:operate 'asdf:monolithic-load-bundle-op 'issr-core :verbose t)

results in a verbose output of explicitly loading every fasl loader which completes fine.

;  Loaded jar:file:///usr/home/mevenson/.cache/common-lisp/abcl-1.8.1-dev-fasl43-bsd\
-x64/usr/home/mevenson/quicklisp/dists/quicklisp/software/core-20210124-git/issr-cor\
e--system.abcl!/issr-core/__loader__._ (0.042 seconds)                               
; Loaded /usr/home/mevenson/.cache/common-lisp/abcl-1.8.1-dev-fasl43-bsd-x64/usr/hom\
e/mevenson/quicklisp/dists/quicklisp/software/core-20210124-git/issr-core--system.ab\
cl (0.045 seconds)                                                                   
#<ASDF/BUNDLE:MONOLITHIC-LOAD-BUNDLE-OP >                                            
#<ASDF/PLAN:SEQUENTIAL-PLAN {74171F35}>             

I honestly don't understand the various bundle ops very well, especially what they thunk down to, but am closing this as needing further information as to the goal of this exercise.

easye avatar Feb 19 '21 06:02 easye

Perhaps my gist was a little misleading. Maybe I am misunderstanding how to properly use bundle.

My goal is to:

  1. load issr-core with quicklisp
  2. compile bundle: (asdf:operate 'asdf:monolithic-compile-bundle-op 'issr-core)
  3. restart image
  4. not load quicklisp at all
  5. load bundle: (asdf:operate 'asdf:monolithic-load-bundle-op 'issr-core)
  6. import and use symbols from issr-core

The load is working for you because you already have issr-core loaded via quicklisp. Compiling seems to work fine; that is why I left it out of the gist. Loading that compiled bundle (without quicklisp) is where the error happens.

charJe avatar Feb 23 '21 18:02 charJe