From: Simon Tournier <zimon.toutoune@gmail.com>
To: Josselin Poiret <dev@jpoiret.xyz>
Cc: 68874@debbugs.gnu.org
Subject: bug#68874: executing `/gnu/store/...-guile-3.0.9/bin/guile': Exec format error
Date: Fri, 02 Feb 2024 01:37:38 +0100 [thread overview]
Message-ID: <877cjnem5p.fsf_-_@gmail.com> (raw)
In-Reply-To: <87plxfsx4s.fsf@jpoiret.xyz> (Josselin Poiret's message of "Thu, 01 Feb 2024 22:16:51 +0100")
Hi,
On Thu, 01 Feb 2024 at 22:16, Josselin Poiret <dev@jpoiret.xyz> wrote:
>> --8<---------------cut here---------------start------------->8---
>> $ /tmp/new/bin/guix describe
>> /gnu/store/vqkjfl6ds3vdvig2x5pkvvzkc3wivrp0-guile-wrapper/bin/guile: error while loading shared libraries: /gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/lib/libguile-3.0.so.1: file too short
>> --8<---------------cut here---------------end--------------->8---
>
> File too short sounds like store corruption, can you check whether that
> file is empty? Maybe try gc'ing it and retrying?
Indeed, empty:
--8<---------------cut here---------------start------------->8---
$ file $(readlink -f /gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/lib/libguile-3.0.so.1)
/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9/lib/libguile-3.0.so.1.6.0: empty
--8<---------------cut here---------------end--------------->8---
However, I am not able to remove the item. I mean: I have tried many
operations as “guix gc”, “guix gc --verify” with ’repair’ and
’contents’, remove some part of ~/.cache/guix and then “guix gc”, remove
the complete ~/.cache/guix and then “guix gc”, rebuild the derivation
with --check, etc.
And the file is still empty. Arf, I spent some time to find which was
retained it.
Well, I did nothing special for that corruption. And once I had it, the
process for recovering is not straightforward. Somehow, it misses
helpers that maps item to profile.
For instance, in order to find the culprit retaining the item, I did
--8<---------------cut here---------------start------------->8---
$ guix gc --referrers /gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9
/gnu/store/1gd9nsy4cps8fnrd1avkc9l01l7ywiai-guile-3.0.9
/gnu/store/50vkm2fkk3aij8jc92phb3ahapn776m8-guix-command
/gnu/store/fd744pmbhzq1avpjjsmfiasp7yqdmiwy-guix-daemon
/gnu/store/vqkjfl6ds3vdvig2x5pkvvzkc3wivrp0-guile-wrapper
$ guix gc --referrers /gnu/store/50vkm2fkk3aij8jc92phb3ahapn776m8-guix-command
/gnu/store/fd744pmbhzq1avpjjsmfiasp7yqdmiwy-guix-daemon
/gnu/store/icp4z3cxp0fibsm4j887nz8k56jc1jgi-guix-7bf8b7c33
--8<---------------cut here---------------end--------------->8---
then ’grep’ the term ’7bf8b7c33’ inside /var/guix/profiles/per-user.
Well, it was retained because I did switch-generation. Anyway.
Hum, it could be nice if instead:
guix gc: error: cannot delete path `/gnu/store/…' since it is still alive
it would also point the “profile“ (or profiles) that makes it alive.
Cheers,
simon
prev parent reply other threads:[~2024-02-03 10:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-01 16:25 bug#68874: executing `/gnu/store/...-guile-3.0.9/bin/guile': Exec format error Simon Tournier
2024-02-01 16:42 ` bug#68874: error while loading shared libraries: /gnu/store/...-guile-3.0.9/lib/libguile-3.0.so.1: file too short Simon Tournier
2024-02-01 21:16 ` Josselin Poiret via Bug reports for GNU Guix
2024-02-02 0:37 ` Simon Tournier [this message]
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877cjnem5p.fsf_-_@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=68874@debbugs.gnu.org \
--cc=dev@jpoiret.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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).