Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have the following project structure, located in ~/proj/fash:
- - .git/
- - fash.asd
- - Makefile
- - src/fash.lisp
- Contents of fash.asd:
- >(asdf:defsystem "fash"
- > :depends-on ("cl")
- > :build-operation program-op
- > :components ((:file "src/fash")))
- Contents of src/fash.lisp:
- > (defpackage :fash
- > (:use :cl)
- > (:export
- > #:entrypoint))
- >
- > (in-package :fash)
- >
- > (defun entrypoint ()
- > "Entrypoint for FASH executable."
- > (format t "It works!!!"))
- Contents of Makefile:
- > fash:
- > sbcl --no-userinit --no-sysinit --non-interactive \
- > --load ~/lisp/quicklisp/setup.lisp \
- > --eval '(load "fash.asd")' \
- > --eval '(ql:quickload fash)' \
- > --eval "(sb-ext:save-lisp-and-die :executable t :toplevel #'entrypoint)"
- Output from `make fash`:
- > sbcl --no-userinit --no-sysinit --non-interactive --load ~/lisp/quicklisp/setup.lisp --eval '(load "fash.asd")' --eval '(ql:quickload fash)' --eval "(sb-ext:save-lisp-and-die :executable t :toplevel #'entrypoint)"
- > This is SBCL 2.4.9, 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.
- > Unhandled UNBOUND-VARIABLE in thread #<SB-THREAD:THREAD tid=118163 "main thread" RUNNING
- > {1103F780A3}>:
- > The variable FASH is unbound.
- >
- > Backtrace for: #<SB-THREAD:THREAD tid=118163 "main thread" RUNNING {1103F780A3}>
- > 0: (SB-INT:SIMPLE-EVAL-IN-LEXENV FASH #<NULL-LEXENV>)
- > 1: (SB-INT:SIMPLE-EVAL-IN-LEXENV (QUICKLISP-CLIENT:QUICKLOAD FASH) #<NULL-LEXENV>)
- > 2: (EVAL (QUICKLISP-CLIENT:QUICKLOAD FASH))
- > 3: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS ((:LOAD . "/home/tgwil/lisp/quicklisp/setup.lisp") (:EVAL . "(load \"fash.asd\")") (:EVAL . "(ql:quickload fash)") (:EVAL . "(sb-ext:save-lisp-and-die :executable t :toplevel #'entrypoint)") (:QUIT)))
- > 4: (SB-IMPL::TOPLEVEL-INIT)
- > 5: ((FLET SB-UNIX::BODY :IN SB-IMPL::START-LISP))
- > 6: ((FLET "WITHOUT-INTERRUPTS-BODY-3" :IN SB-IMPL::START-LISP))
- > 7: (SB-IMPL::%START-LISP)
- >
- > unhandled condition in --disable-debugger mode, quitting
- > *** Error code 1
- >
- > Stop.
- > make: stopped in /home/tgwil/proj/fash
Advertisement
Add Comment
Please, Sign In to add comment