Unable to build using `deploy`
simendsjo opened this issue · 4 comments
Deploys maintainer doesn't think it's related to Deploy. I'm unable to see anything wrong in your repo either though.
See issue Shinmera/deploy#23
The following comment includes a small example to reproduce the issue: Shinmera/deploy#23 (comment)
I'm absolutely clueless as to why this happens. Might be because we refer to package names as symbols instead of (safer) keywords. 96c1482 addresses that.
@simendsjo, I see that you didn't include the backtrace for the error. Is it because there was no backtrace? If there's one, including it would be extremely helpful :)
Sorry, here's the backtrace (by calling (sb-debug:list-backtrace)
) for my application (not the smaller testapp)
((SB-IMPL::CALL-WITH-LOADER-PACKAGE-NAMES
#<FUNCTION (LAMBDA () :IN SB-FASL::LOAD-AS-FASL) {10072FA33B}>)
(SB-FASL::LOAD-AS-FASL
#<SB-SYS:FD-STREAM for "file /home/simendsjo/.cache/common-lisp/sbcl-2.3.2-linux-x64/home/simendsjo/quicklisp/dists/quicklisp/software/nkeymaps-20230214-git/types.fasl" {10072E6473}>
NIL NIL)
((LABELS SB-FASL::LOAD-STREAM-1 :IN LOAD)
#<SB-SYS:FD-STREAM for "file /home/simendsjo/.cache/common-lisp/sbcl-2.3.2-linux-x64/home/simendsjo/quicklisp/dists/quicklisp/software/nkeymaps-20230214-git/types.fasl" {10072E6473}>
T)
(SB-FASL::CALL-WITH-LOAD-BINDINGS
#<dynamic-extent: #<FUNCTION (LABELS SB-FASL::LOAD-STREAM-1 :IN LOAD) {7F7E0B3DE9CB}>>
#<SB-SYS:FD-STREAM for "file /home/simendsjo/.cache/common-lisp/sbcl-2.3.2-linux-x64/home/simendsjo/quicklisp/dists/quicklisp/software/nkeymaps-20230214-git/types.fasl" {10072E6473}>
T
#<SB-SYS:FD-STREAM for "file /home/simendsjo/.cache/common-lisp/sbcl-2.3.2-linux-x64/home/simendsjo/quicklisp/dists/quicklisp/software/nkeymaps-20230214-git/types.fasl" {10072E6473}>)
(LOAD
#P"/home/simendsjo/.cache/common-lisp/sbcl-2.3.2-linux-x64/home/simendsjo/quicklisp/dists/quicklisp/software/nkeymaps-20230214-git/types.fasl"
:VERBOSE NIL :PRINT NIL :IF-DOES-NOT-EXIST :ERROR :EXTERNAL-FORMAT :DEFAULT)
(UIOP/UTILITY:CALL-WITH-MUFFLED-CONDITIONS
#<FUNCTION (LAMBDA () :IN UIOP/LISP-BUILD:LOAD*) {10072E5E3B}>
("Overwriting already existing readtable ~S."
#(#:FINALIZERS-OFF-WARNING :ASDF-FINALIZERS)))
((SB-PCL::EMF ASDF/ACTION:PERFORM) #<unused argument> #<unused argument>
#<ASDF/LISP-ACTION:LOAD-OP >
#<ASDF/LISP-ACTION:CL-SOURCE-FILE "nkeymaps" "types">)
((LAMBDA () :IN ASDF/ACTION:CALL-WHILE-VISITING-ACTION))
((:METHOD ASDF/ACTION:PERFORM-WITH-RESTARTS
(ASDF/LISP-ACTION:LOAD-OP ASDF/LISP-ACTION:CL-SOURCE-FILE))
#<ASDF/LISP-ACTION:LOAD-OP >
#<ASDF/LISP-ACTION:CL-SOURCE-FILE "nkeymaps" "types">)
((:METHOD ASDF/ACTION:PERFORM-WITH-RESTARTS :AROUND (T T))
#<ASDF/LISP-ACTION:LOAD-OP >
#<ASDF/LISP-ACTION:CL-SOURCE-FILE "nkeymaps" "types">)
((:METHOD ASDF/PLAN:PERFORM-PLAN (T))
#<ASDF/PLAN:SEQUENTIAL-PLAN {10041791D3}>)
((FLET SB-C::WITH-IT :IN SB-C::%WITH-COMPILATION-UNIT)) ...)
Full output from running make
$ make
LIBRARY_PATH=/gnu/store/hqxzgbbbnxl8l9q8bcsvzvmyw1mjws4r-zstd-1.5.2-lib/lib:IBRARY_PATH sbcl --eval '(asdf:make :mycubicle)'
This is SBCL 2.3.2, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
To load "cffi":
Load 1 ASDF system:
cffi
; Loading "cffi"
.............
WARNING: System definition file #P"/gnu/store/snnb0c6i1w0yqpz0d60jzxf8s31gc0k1-sbcl-flexi-streams-1.0.19/share/common-lisp/sbcl/flexi-streams/flexi-streams.asd" contains definition for system "flexi-streams-test". Please only define "flexi-streams" and secondary systems with a name starting with "flexi-streams/" (e.g. "flexi-streams/test") in that file.
WARNING: System definition file #P"/home/simendsjo/quicklisp/dists/quicklisp/software/quasiquote-2.0-20150505-git/quasiquote-2.0.asd" contains definition for system "quasiquote-2.0-tests". Please only define "quasiquote-2.0" and secondary systems with a name starting with "quasiquote-2.0/" (e.g. "quasiquote-2.0/test") in that file.
STYLE-WARNING:
Generic function FSET:ITERATOR clobbers an earlier FTYPE proclamation
(FUNCTION (T &KEY &ALLOW-OTHER-KEYS) (VALUES FUNCTION &REST T)) for the same
name with (FUNCTION (T &KEY &ALLOW-OTHER-KEYS) *).
WARNING: redefining LOG4CL-IMPL:APPENDER-ADDED in DEFGENERIC
WARNING: redefining LOG4CL-IMPL:APPENDER-REMOVED in DEFGENERIC
WARNING: redefining LOG4CL-IMPL::PROPERTY-ALIST in DEFGENERIC
#P"/home/simendsjo/code/mycubicle/native/bin/mycubicle"
debugger invoked on a SB-KERNEL:SIMPLE-PACKAGE-ERROR in thread
#<THREAD "main thread" RUNNING {100AE88113}>:
The loader tried loading the symbol named NKEYMAPS/TYPES into the package named MYCUBICLE/CLI, but the package did not get defined, and does not exist.
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 types and try loading it again
1: [RETRY ] Retry
loading FASL for #<CL-SOURCE-FILE "nkeymaps" "types">.
2: [ACCEPT ] Continue, treating
loading FASL for #<CL-SOURCE-FILE "nkeymaps" "types">
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: [CONTINUE ] Ignore runtime option --eval "(asdf:make :mycubicle)".
8: [ABORT ] Skip rest of --eval and --load options.
9: Skip to toplevel READ/EVAL/PRINT loop.
10: [EXIT ] Exit SBCL (calling #'EXIT, killing the process).
(SB-IMPL::CALL-WITH-LOADER-PACKAGE-NAMES #<FUNCTION (LAMBDA NIL :IN SB-FASL::LOAD-AS-FASL) {10072FA33B}>)
0] (sb-debug:list-backtrace)
((SB-IMPL::CALL-WITH-LOADER-PACKAGE-NAMES
#<FUNCTION (LAMBDA () :IN SB-FASL::LOAD-AS-FASL) {10072FA33B}>)
(SB-FASL::LOAD-AS-FASL
#<SB-SYS:FD-STREAM for "file /home/simendsjo/.cache/common-lisp/sbcl-2.3.2-linux-x64/home/simendsjo/quicklisp/dists/quicklisp/software/nkeymaps-20230214-git/types.fasl" {10072E6473}>
NIL NIL)
((LABELS SB-FASL::LOAD-STREAM-1 :IN LOAD)
#<SB-SYS:FD-STREAM for "file /home/simendsjo/.cache/common-lisp/sbcl-2.3.2-linux-x64/home/simendsjo/quicklisp/dists/quicklisp/software/nkeymaps-20230214-git/types.fasl" {10072E6473}>
T)
(SB-FASL::CALL-WITH-LOAD-BINDINGS
#<dynamic-extent: #<FUNCTION (LABELS SB-FASL::LOAD-STREAM-1 :IN LOAD) {7F7E0B3DE9CB}>>
#<SB-SYS:FD-STREAM for "file /home/simendsjo/.cache/common-lisp/sbcl-2.3.2-linux-x64/home/simendsjo/quicklisp/dists/quicklisp/software/nkeymaps-20230214-git/types.fasl" {10072E6473}>
T
#<SB-SYS:FD-STREAM for "file /home/simendsjo/.cache/common-lisp/sbcl-2.3.2-linux-x64/home/simendsjo/quicklisp/dists/quicklisp/software/nkeymaps-20230214-git/types.fasl" {10072E6473}>)
(LOAD
#P"/home/simendsjo/.cache/common-lisp/sbcl-2.3.2-linux-x64/home/simendsjo/quicklisp/dists/quicklisp/software/nkeymaps-20230214-git/types.fasl"
:VERBOSE NIL :PRINT NIL :IF-DOES-NOT-EXIST :ERROR :EXTERNAL-FORMAT :DEFAULT)
(UIOP/UTILITY:CALL-WITH-MUFFLED-CONDITIONS
#<FUNCTION (LAMBDA () :IN UIOP/LISP-BUILD:LOAD*) {10072E5E3B}>
("Overwriting already existing readtable ~S."
#(#:FINALIZERS-OFF-WARNING :ASDF-FINALIZERS)))
((SB-PCL::EMF ASDF/ACTION:PERFORM) #<unused argument> #<unused argument>
#<ASDF/LISP-ACTION:LOAD-OP >
#<ASDF/LISP-ACTION:CL-SOURCE-FILE "nkeymaps" "types">)
((LAMBDA () :IN ASDF/ACTION:CALL-WHILE-VISITING-ACTION))
((:METHOD ASDF/ACTION:PERFORM-WITH-RESTARTS
(ASDF/LISP-ACTION:LOAD-OP ASDF/LISP-ACTION:CL-SOURCE-FILE))
#<ASDF/LISP-ACTION:LOAD-OP >
#<ASDF/LISP-ACTION:CL-SOURCE-FILE "nkeymaps" "types">)
((:METHOD ASDF/ACTION:PERFORM-WITH-RESTARTS :AROUND (T T))
#<ASDF/LISP-ACTION:LOAD-OP >
#<ASDF/LISP-ACTION:CL-SOURCE-FILE "nkeymaps" "types">)
((:METHOD ASDF/PLAN:PERFORM-PLAN (T))
#<ASDF/PLAN:SEQUENTIAL-PLAN {10041791D3}>)
((FLET SB-C::WITH-IT :IN SB-C::%WITH-COMPILATION-UNIT)) ...)
0]
Oh, it looks like some stale cache! I deleted ~/.cache/common-lisp
, and now it works. I should have tried this sooner (not just deleting some caches). Sorry about that!
Oh (#^.^#)
Glad to see it resolved!