From: Guillaume Le Vaillant <glv@posteo.net>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: guix-devel@gnu.org
Subject: Re: Improve ASDF build system for Common Lisp libraries
Date: Sun, 13 Sep 2020 13:56:34 +0200 [thread overview]
Message-ID: <87sgblhoul.fsf@yamatai> (raw)
In-Reply-To: <871rj6aryj.fsf@ambrevar.xyz>
[-- Attachment #1: Type: text/plain, Size: 2647 bytes --]
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---
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
next prev parent reply other threads:[~2020-09-13 11:56 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-12 9:36 Improve ASDF build system for Common Lisp libraries Guillaume Le Vaillant
2020-09-12 10:26 ` Pierre Neidhardt
2020-09-12 11:11 ` Pierre Neidhardt
2020-09-12 12:06 ` Guillaume Le Vaillant
2020-09-13 10:08 ` Guillaume Le Vaillant
2020-09-13 10:31 ` Pierre Neidhardt
2020-09-13 11:56 ` Guillaume Le Vaillant [this message]
2020-09-13 10:36 ` Pierre Neidhardt
2020-09-13 12:49 ` Guillaume Le Vaillant
2020-09-13 13:15 ` Pierre Neidhardt
2020-09-14 13:39 ` Guillaume Le Vaillant
2020-09-15 6:18 ` Pierre Neidhardt
2020-09-12 12:07 ` Pierre Neidhardt
2020-09-15 10:00 ` Guillaume Le Vaillant
2020-09-15 10:54 ` Pierre Neidhardt
2020-09-15 11:07 ` Ricardo Wurmus
2020-09-15 14:12 ` Katherine Cox-Buday
2020-09-15 16:28 ` Guillaume Le Vaillant
2020-09-17 9:45 ` Pierre Neidhardt
2020-09-23 11:15 ` Pierre Neidhardt
2020-09-23 12:44 ` Guillaume Le Vaillant
2020-09-23 13:35 ` Ricardo Wurmus
2020-09-23 13:41 ` Pierre Neidhardt
2020-09-12 15:35 ` Katherine Cox-Buday
2020-09-12 18:59 ` Konrad Hinsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sgblhoul.fsf@yamatai \
--to=glv@posteo.net \
--cc=guix-devel@gnu.org \
--cc=mail@ambrevar.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.