[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Improve ASDF build system for Common Lisp libraries
From: |
Guillaume Le Vaillant |
Subject: |
Re: Improve ASDF build system for Common Lisp libraries |
Date: |
Sun, 13 Sep 2020 13:56:34 +0200 |
User-agent: |
mu4e 1.4.13; emacs 27.1 |
Pierre Neidhardt <mail@ambrevar.xyz> skribis:
> Guillaume Le Vaillant <glv@posteo.net> writes:
>
>> Actually, it looks like the files generated by the groveler can't be
>> removed. When doing '(asdf:load-system "osicat")', if these files are
>> not there cffi tries to generate them (and fails because the directory
>> is read-only).
>
> The .so needs to be kept, the rest can be removed:
>
> --8<---------------cut here---------------start------------->8---
> $ tree
> /gnu/store/haz3msfmr9cnlnrfai29q5csinx8l5q3-sbcl-osicat-0.7.0-1.de0c18a/
> /gnu/store/haz3msfmr9cnlnrfai29q5csinx8l5q3-sbcl-osicat-0.7.0-1.de0c18a/
> ├── lib
> │ └── sbcl
> │ ├── osicat.asd
> │ ├── osicat--system.fasl
> │ └── posix
> │ └── libosicat.so
> ...
> --8<---------------cut here---------------end--------------->8---
When I remove the groveler-generated files (except the .so) from
'lib/sbcl/osicat/posix/' like so:
--8<---------------cut here---------------start------------->8---
/gnu/store/1cps5zbqgj9lm108lc57zah5ap0a7gbk-sbcl-osicat-0.7.0-1.de0c18a/lib
└── common-lisp
└── sbcl
└── osicat
├── posix
│ ├── basic-unix.fasl
│ ├── basic-unixint.fasl
│ ├── early.fasl
│ ├── libosicat.so
│ ├── linux.fasl
│ ├── misc.fasl
│ ├── packages.fasl
│ ├── unix.fasl
│ ├── unixint.fasl
│ └── wrappers.fasl
├── src
│ ├── fd-streams.fasl
│ ├── osicat.fasl
...
--8<---------------cut here---------------end--------------->8---
I get the following error:
--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix environment --ad-hoc sbcl sbcl-osicat -- \
sbcl --no-userinit --eval '(require :asdf)' \
--eval '(asdf:load-system "osicat")'
...
ASDF could not load osicat because Error opening
#P"/gnu/store/...-sbcl-osicat-0.7.0-1.de0c18a/lib/common-lisp/sbcl/osicat/posix/basic-unixint__grovel.c":
Read-only file system.
debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread #<THREAD "main
thread" RUNNING {10009F80D3}>: Error opening
#P"/gnu/store/...-sbcl-osicat-0.7.0-1.de0c18a/lib/common-lisp/sbcl/osicat/posix/basic-unixint__grovel.c":
Read-only file system
...
--8<---------------cut here---------------end--------------->8---
signature.asc
Description: PGP signature
- Improve ASDF build system for Common Lisp libraries, Guillaume Le Vaillant, 2020/09/12
- Re: Improve ASDF build system for Common Lisp libraries, Pierre Neidhardt, 2020/09/12
- Re: Improve ASDF build system for Common Lisp libraries, Pierre Neidhardt, 2020/09/13
- Re: Improve ASDF build system for Common Lisp libraries, Guillaume Le Vaillant, 2020/09/13
- Re: Improve ASDF build system for Common Lisp libraries, Pierre Neidhardt, 2020/09/13
- Re: Improve ASDF build system for Common Lisp libraries, Guillaume Le Vaillant, 2020/09/14
- Re: Improve ASDF build system for Common Lisp libraries, Pierre Neidhardt, 2020/09/15
- Re: Improve ASDF build system for Common Lisp libraries, Pierre Neidhardt, 2020/09/12
- Re: Improve ASDF build system for Common Lisp libraries, Guillaume Le Vaillant, 2020/09/15
- Re: Improve ASDF build system for Common Lisp libraries, Pierre Neidhardt, 2020/09/15
- Re: Improve ASDF build system for Common Lisp libraries, Ricardo Wurmus, 2020/09/15
- Re: Improve ASDF build system for Common Lisp libraries, Katherine Cox-Buday, 2020/09/15