(address . bug-guix@gnu.org)(address . glv@posteo.net)
While trying to package
I hit a strange issue in which it would fail to compile, while calling
`asdf:load-system' locally worked.
Then I realized that our asdf-build-system/sbcl uses
`asdf:compile-system' instead of `asdf:load-system'.
From the ASDF doc:
Toggle snippet (7 lines)
This will make sure all the files in the system are compiled, but not
necessarily load any of them in the current image; on most systems, it
will _not_ load all compiled files in the current image. This function
exists for symmetry with 'load-system' but is not recommended unless you
are writing build scripts and know what you're doing.
So should we really use it?
By the way this _may_ be related to the issue we've got with loading the
tests of some packages, like sbcl-jonathan:
Toggle snippet (4 lines)
;; Tests fail with: Component JONATHAN-ASD::JONATHAN-TEST not found,
;; required by #<SYSTEM "jonathan">. Why?
Recipe to reproduce:
- git clone https://github.com/s-expressionists/Cleavir
- cd Cleavir
- guix shell sbcl sbcl-acclimation sbcl-concrete-syntax-tree sbcl-closer-mop -- sbcl
- (asdf:initialize-source-registry `(:source-registry (:tree ,(uiop:getcwd)) :inherit-configuration))
- (asdf:compile-system :cleavir-abstract-interpreter)
Toggle snippet (22 lines)
debugger invoked on a SB-PCL:CLASS-NOT-FOUND-ERROR in thread
#<THREAD "main thread" RUNNING {100B598173}>:
There is no class named CLEAVIR-ABSTRACT-INTERPRETER:STRATEGY.
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [TRY-RECOMPILING ] Recompile control and try loading it again
1: [RETRY ] Retry
loading FASL for #<CL-SOURCE-FILE "cleavir-abstract-interpreter" "control">.
2: [ACCEPT ] Continue, treating
loading FASL for #<CL-SOURCE-FILE "cleavir-abstract-interpreter" "control">
as having been successful.
3: Retry ASDF operation.
4: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
configuration.
5: Retry ASDF operation.
6: Retry ASDF operation after resetting the
configuration.
7: [ABORT ] Exit debugger, returning to top level.
And then
- (asdf:load-system :cleavir-abstract-interpreter)
works like a charm!
Thoughts?
Pierre
-----BEGIN PGP SIGNATURE-----
iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAmK+yZUSHG1haWxAYW1i
cmV2YXIueHl6AAoJEJvc9Jeku8x/I3QH/A0cPGfqAbnZBiYtwx8KJ5wStVSlodQZ
rep9sWLtWpLe8+EO/RTQoz2tkV43hKf0zB7Xo8OWO5dagsFG4Q/3UD2k/Duj1NLT
Tvp9GG/6BqBunTzHqNlAp5V+XXoFWU/hWli1XpxrMqS2ITtcn2NR4vary0pFGLHf
pLP8UkS/5LNMGXEjFMuctxRguDFV08tH+nj630GuSj9Tc0CrMvfJV+vHGbOSQyQ1
eYkpJq5IzKYwwL1x+DFLe/yGW5vejESbhDqucFzPr/tIK7UF81GtcDaD61MWBbNX
2sW+mSPIFoYT4yMJ89N+t8nrEzb8oBOz8DLuN5Snhz3GMlkfw+D6PZE=
=SecM
-----END PGP SIGNATURE-----