ASDF is a tool for describing how source files are organized: what depends on which and when. It is roughly what Common Lisp hackers use to build software where C hackers would use say GNU Make. ASDF stands for Another System Definition Facility, in the continuity of the Lisp DEFSYSTEM of yore.
Questions tagged [asdf]
204 questions
4
votes
1 answer
Embeddable Common-Lisp asdf:defsystem returning invalid relative pathname
I'm trying to learn how to use Common-Lisp's asdf, and I have the following code:
(asdf:defsystem example
:serial t
:components ((:file "first")
(:file "second")))
However, I keep getting the error:
Condition of type:…

jefftime
- 442
- 5
- 14
4
votes
2 answers
Structuring large Lisp applications
I am currently trying to wrap my head around packages, systems & co.
I now have read Packages, systems, modules, libraries - WTF? a few times, and I think I'm still having difficulties to get it right.
If I simply want to split a Lisp source file…

Golo Roden
- 140,679
- 96
- 298
- 425
4
votes
2 answers
Invalid relative pathname error when compiling defsystem in slime with asdf3
My SBCL is with ASDF3. When I tried to compile the defsystem expression, there was an error like this:
(defsystem "cl-douban"
:name "cl-douban"
:components ((:file "package")))
Invalid relative pathname #P"package.lisp" for…

unionx
- 437
- 3
- 15
4
votes
7 answers
Automatically create ASDF files for a Common Lisp project
Are there any libraries out there that do this? Playing around with Common Lisp it seems like this would be one of the most useful things to lower barrier of entry for newcomers. ASDF seems mostly designed for deployment, not for rapid prototyping…

dnolen
- 18,496
- 4
- 62
- 71
4
votes
2 answers
Common Lisp: asdf depends-on specific version
I'd like to know how to depend on a specific version of a library in a ASDF system?
(asdf:defsystem #:my-system
:serial t
:description "Describe my-system here"
:author "My Name "
:license "Specify license here"
…

rudolfo.christ
- 1,432
- 1
- 11
- 13
4
votes
4 answers
How do I use (require :PACKAGE) in clisp under Ubuntu Hardy?
I am trying to evaluate the answer provided here, and am getting the error: "A file with name ASDF-INSTALL does not exist" when using clisp:
dsm@localhost:~$ clisp -q
[1]> (require :asdf-install)
*** - LOAD: A file with name ASDF-INSTALL does not…

dsm
- 10,263
- 1
- 38
- 72
4
votes
1 answer
Common Lisp: getting version of an ASDF package
I know I can get the version number of ASDF itself with (asdf:asdf-version). But the same does not work with all other packages I load using ASDF, e.g. (my-system:my-system-version). Is there any programmatic way to get the value of a :version…

Antonio Bonifati 'Farmboy'
- 727
- 1
- 5
- 15
3
votes
0 answers
mason.vim using the wrong python / nvim version -> desired asdf versions
I've setup mason.vim in nvim, and it's working to install packages, and i've installed several python packages.
It didn't seem to be recognizing my global pip config, so I ran a :checkhealth, and under the mason.vim section it show as using my…

Dannyl Walker
- 31
- 2
3
votes
1 answer
Install Erlang and Elixir on MacOS M1 - Command not found
i'm trying to install specific version of Erlang and Elixir on macos M1
I don't use brew because i can't specify version (brew installs only last version apparently)
I used ASDF with this .tool-versions files:
elixir 1.12.3
erlang 24.2
nodejs…

redDwarf
- 336
- 1
- 9
3
votes
1 answer
ASDF throws system-out-of-date condition
I'm using ASDF load cl-ppcre in a script file. The issue is (progn (require :asdf) (require :cl-ppcre)) is perfectly fine in a top level, but if the same codes wrapped in a handler-case, a system-out-of-date condition will be caught by handler-case…

xiepan
- 623
- 4
- 13
3
votes
1 answer
How to list all files in a directory as ASDF defsystem static-files
From How to specify additional files as prerequisites that would cause ASDF to recompile the program, I learned that the ASDF static-file directive can be used to list non-Lisp files that a Common Lisp program depends on. For example:
(defsystem…

Flux
- 9,805
- 5
- 46
- 92
3
votes
1 answer
How to specify additional files as prerequisites that would cause ASDF to recompile the program
I have written a program that uses read-time evaluation to read strings contained in text files. In this example, the text files are 1.txt and 2.txt, both of which contain text that will be read during read-time. The problem: ASDF will not recompile…

Flux
- 9,805
- 5
- 46
- 92
3
votes
1 answer
asdf ASDF_DOWNLOAD_PATH: unbound variable for nodejs
when I try to install nodejs 12.13.0 with asdf install nodejs 12.13.0 I receive /Users/john.doe/.asdf/plugins/nodejs/bin/install: line 52: ASDF_DOWNLOAD_PATH: unbound variable.
Any help would be greatly appreciated.

mangocaptain
- 1,435
- 1
- 19
- 31
3
votes
1 answer
Distributing a CFFI wrapper for a custom C lib
I've built a library that wraps custom C code and thinking about the best way to build the shared library as part of the ASDF load. The makefile is conditionalised for various OSs, so it could be as simple as uiop:run-program ..., but I thought I'd…

CL-USER
- 715
- 3
- 9
3
votes
2 answers
cffi installation
I'm trying to install cffi package into sbcl.
First, I tried clbuild that is recommended on the cffi installation page.
When I tried to run :
clbuild quickload cffi
I was given an error saying :
The function ASDF::SOURCE-REGISTRY is undefined.
I…

sudo
- 647
- 2
- 7
- 19