crash: guix build -S foo --with-source=bla

OpenSubmitted by Ricardo Wurmus.
Details
2 participants
  • Ricardo Wurmus
  • zimoun
Owner
unassigned
Severity
normal
R
R
Ricardo Wurmus wrote on 19 Sep 2017 14:09
(name . 'bug-guix@gnu.org')(address . bug-guix@gnu.org)
idjwp4uvqim.fsf@bimsb-sys02.mdc-berlin.net
The command “guix build -S guile-git --with-source=guile-git” crashes
instead of failing gracefully:

Toggle snippet (36 lines)
rwurmus@bimsb-sys02 in code: git clone https://gitlab.com/guile-git/guile-git.git
Cloning into 'guile-git'...
remote: Counting objects: 906, done.
remote: Compressing objects: 100% (268/268), done.
remote: Total 906 (delta 634), reused 895 (delta 630)
Receiving objects: 100% (906/906), 243.62 KiB | 136.00 KiB/s, done.
Resolving deltas: 100% (634/634), done.
rwurmus@bimsb-sys02 in code: cd guile-git
rwurmus@bimsb-sys02 in guile-git: git reset --hard 969514a
HEAD is now at 969514a switch to using set-pointer-finalizer!
rwurmus@bimsb-sys02 in guile-git: cd ..
rwurmus@bimsb-sys02 in code: guix build -S guile-git --with-source=guile-git
Backtrace:
9 (primitive-load "/gnu/store/04gdnvw7k8mnpzs9ig5kwmblzvgkxm4a-guix-0.13.0-1.a6d7…")
In guix/ui.scm:
1331:12 8 (run-guix-command _ . _)
In ice-9/boot-9.scm:
837:9 7 (catch _ _ #<procedure 7f11d55d88c0 at guix/ui.scm:448:2 (key c)> _)
837:9 6 (catch _ _ #<procedure 7f11d55d88d8 at guix/ui.scm:536:6 (key proc format-stri…> …)
In guix/scripts/build.scm:
725:14 5 (_)
In guix/ui.scm:
633:8 4 (show-what-to-build #<build-daemon 256.97 2832e10> ("/gnu/store/07g069ka7l45f…") …)
In guix/derivations.scm:
307:18 3 (substitution-oracle #<build-daemon 256.97 2832e10> ("/gnu/store/07g069ka7l45…") …)
In srfi/srfi-1.scm:
466:18 2 (fold #<procedure 4028de0 at guix/derivations.scm:307:24 (drv result)> () ("/g…"))
In guix/derivations.scm:
308:38 1 (_ "/gnu/store/07g069ka7l45f91npb8qv4j1kvi0y7m7-guile-git" ())
606:7 0 (derivation->output-paths "/gnu/store/07g069ka7l45f91npb8qv4j1kvi0y7m7-guile-git")

guix/derivations.scm:606:7: In procedure derivation->output-paths:
guix/derivations.scm:606:7: In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): "/gnu/store/07g069ka7l45f91npb8qv4j1kvi0y7m7-guile-git"
rwurmus@bimsb-sys02 in code:

-- Ricardo
Z
Z
zimoun wrote on 25 Feb 2021 01:34
(name . Ricardo Wurmus)(address . ricardo.wurmus@mdc-berlin.de)(address . 28510@debbugs.gnu.org)
86a6rtkmsh.fsf@gmail.com
Hi,

On Tue, 19 Sep 2017 at 14:09, Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> wrote:
Toggle quote (5 lines)
> The command “guix build -S guile-git --with-source=guile-git” crashes
> instead of failing gracefully:
>
> rwurmus@bimsb-sys02 in code: git clone https://gitlab.com/guile-git/guile-git.git

[...]

Toggle quote (3 lines)
> rwurmus@bimsb-sys02 in code: guix build -S guile-git --with-source=guile-git
> Backtrace:

Still failing. In ’compute-derivation’, this

(s
(list (package-source-derivation store s)))))

returns a list of string instead of a derivation, so then

(for-each show-derivation-outputs drv)

fails because it expects a derivation or a derivation-input (see in
(guix ui)).

Well, I am not sure where the error should be handled. In (guix ui) and
in (guix scripts build)? WDYT?


Cheers,
simon
Z
Z
zimoun wrote on 24 Mar 2021 22:59
control message for bug #28510
(address . control@debbugs.gnu.org)
864kh0b4d2.fsf@gmail.com
tags 28510 + easy
quit
?