Error compiling Lem down to an executable
I'm able to load the lem system (with the ncurses front-end) Lem, without any problems, even running the program from the REPL using (lem:lem).
The thing is, I cannot compile it down to an exectuable using the described method here.
;; Loading #P"/usr/lib/x86_64-linux-gnu/ecl-21.2.1/asdf.fas"
ECL (Embeddable Common-Lisp) 21.2.1 (git:UNKNOWN)
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
Copyright (C) 1993 Giuseppe Attardi
Copyright (C) 2013 Juan J. Garcia-Ripoll
Copyright (C) 2018 Daniel Kochmanski
Copyright (C) 2021 Daniel Kochmanski and Marius Gerbershagen
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help.
Top level in: #<process TOP-LEVEL 0x7f7184b0bf80>.
> (ql:quickload :lem-ncurses)
To load "lem-ncurses":
Load 1 ASDF system:
lem-ncurses
; Loading "lem-ncurses"
............................
(:LEM-NCURSES)
> (asdf:make-build :lem :type :program :move-here #P"./" :epilogue-code '(progn (lem:lem) (si:exit)))
Condition of type: SIMPLE-ERROR
Error code 1 when executing
(EXT:RUN-PROGRAM "gcc" ("-o" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/local-projects/lem/src/lem" "-L/usr/lib/x86_64-linux-gnu/" "/tmp/eclinitBxyKYu.o" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/local-projects/cedar/src/lib/alexandria/alexandria.a" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/dists/quicklisp/software/trivial-gray-streams-20210124-git/trivial-gray-streams.a" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/dists/quicklisp/software/trivial-types-20120407-git/trivial-types.a" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/usr/share/common-lisp/source/cl-ppcre/cl-ppcre.a" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/local-projects/lem/submodules/micros/micros.a" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/dists/quicklisp/software/anaphora-20220220-git/anaphora.a" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/dists/quicklisp/software/inquisitor-20190521-git/inquisitor.a" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/dists/quicklisp/software/trivial-features-20230618-git/trivial-features.a" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/dists/quicklisp/software/babel-20230214-git/babel.a" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/dists/quicklisp/software/global-vars-20141106-git/global-vars.a" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/dists/quicklisp/software/trivial-garbage-20211230-git/trivial-garbage.a" "/home/fermin/.cache/common-lisp/ecl-21.2.1-unknown-linux-x64/home/fermin/quicklisp/dists/quicklisp/software/bordeaux-threads-v0.9.1/bordeaux-threads.a" ...)):
/usr/bin/ld: /tmp/cczrBAB0.ltrans0.ltrans.o: in function `init_ECL_PROGRAM':
/tmp/eclinitBxyKYu.c:397: undefined reference to `__ECLQVVX45YNJD8O1_O3OXBI61'
collect2: error: ld returned 1 exit status
Available restarts:
1. (CONTINUE) Continues anyway.
2. (RETRY) Retry PROGRAM-OP on #<system "lem">.
3. (ACCEPT) Continue, treating PROGRAM-OP on #<system "lem"> as having been successful.
4. (RETRY) Retry ASDF operation.
5. (CLEAR-CONFIGURATION-AND-RETRY) Retry ASDF operation after resetting the configuration.
6. (RESTART-TOPLEVEL) Go back to Top-Level REPL.
Broken at SI:BYTECODES. [Evaluation of: (ASDF/BUNDLE:MAKE-BUILD :LEM :TYPE :PROGRAM :MOVE-HERE #P"" :EPILOGUE-CODE '(PROGN (LEM-CORE:LEM) (EXT:EXIT)))] In: #<process TOP-LEVEL 0x7f7184b0bf80>.
>>
Describe expected result and what provide the output you got.
Provide details regarding ECL version (or preferably commit), operating system and if revelant the build options and versions of the build tools.
VERSION "21.2.1"
VCS-ID "UNKNOWN"
OS "Linux"
OS-VERSION "5.15.0-73-generic"
MACHINE-TYPE "x86_64"
FEATURES (:QUICKLISP :ASDF-PACKAGE-SYSTEM :ASDF3.1 :ASDF3 :ASDF2 :ASDF
:OS-UNIX :NON-BASE-CHARS-EXIST-P :ASDF-UNICODE :WALKER :CDR-1
:CDR-5 :LINUX :FORMATTER :CDR-7 :ECL-WEAK-HASH :LITTLE-ENDIAN
:ECL-READ-WRITE-LOCK :LONG-LONG :UINT64-T :UINT32-T :UINT16-T
:COMPLEX-FLOAT :LONG-FLOAT :UNICODE :DFFI :CLOS-STREAMS
:CMU-FORMAT :UNIX :ECL-PDE :DLOPEN :CLOS :THREADS :BOEHM-GC
:ANSI-CL :COMMON-LISP :FLOATING-POINT-EXCEPTIONS
:IEEE-FLOATING-POINT :PACKAGE-LOCAL-NICKNAMES :CDR-14
:PREFIXED-API :FFI :X86_64 :COMMON :ECL)