GNU bug report logs - #31117
eaae07ec2 breaks 'guix pull' for guile 2.0 users

Previous Next

Package: guix;

Reported by: Alex Vong <alexvong1995 <at> gmail.com>

Date: Mon, 9 Apr 2018 19:44:01 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31117 in the body.
You can then email your comments to 31117 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#31117; Package guix. (Mon, 09 Apr 2018 19:44:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alex Vong <alexvong1995 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 09 Apr 2018 19:44:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alex Vong <alexvong1995 <at> gmail.com>
To: bug-guix <at> gnu.org
Cc: alexvong1995 <at> gmail.com
Subject: eaae07ec2 breaks 'guix pull' for guile 2.0 users
Date: Tue, 10 Apr 2018 03:42:59 +0800
[Message part 1 (text/plain, inline)]
Hello Guix,

Commit eaae07ec2878707744fed76029a28ab9a494fc2e breaks 'guix pull' for
guile 2.0 users. More precisely, it fails with:

================================================================================
alexvong1995 <at> debian:~$ guix pull 
Updating from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
Building from Git commit 60e1de6d95bd32b4996c199708541781b8f828fd...
Computing Guix derivation for 'x86_64-linux'... /Backtrace:
           7 (primitive-load "/gnu/store/75vknf0m8z0xdqnbbbms93r94j8…")
In ice-9/boot-9.scm:
    142:2  6 (dynamic-wind _ _ #<procedure 2579b40 at ice-9/eval.scm…>)
In ice-9/eval.scm:
    155:9  5 (_ _)
   191:35  4 (_ _)
   173:47  3 (_ #(#(#<directory (guile-user) 206f140> #<build-da…> …)))
In ./guix/self.scm:
    588:4  2 (guix-derivation "/gnu/store/v6gspcm5462rf6c4rlkcjsyr4…" …)
   575:24  1 (guile-for-build _)
     80:4  0 (_ _)

./guix/self.scm:80:4: Throw to key `match-error' with args `("match" "no matching pattern" "guile <at> 2.0")'.
Backtrace:
In ice-9/boot-9.scm:
 160: 14 [catch #t #<catch-closure 55941ede4160> ...]
In unknown file:
   ?: 13 [apply-smob/1 #<catch-closure 55941ede4160>]
In ice-9/boot-9.scm:
  66: 12 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 11 [eval # #]
In ice-9/boot-9.scm:
2404: 10 [save-module-excursion #<procedure 55941ee06900 at ice-9/boot-9.scm:4051:3 ()>]
4056: 9 [#<procedure 55941ee06900 at ice-9/boot-9.scm:4051:3 ()>]
In guix/ui.scm:
1501: 8 [run-guix-command pull]
In ice-9/boot-9.scm:
 160: 7 [catch srfi-34 #<procedure 559421ff5480 at guix/ui.scm:552:2 ()> ...]
 160: 6 [catch system-error ...]
 160: 5 [catch git-error ...]
In guix/scripts/pull.scm:
 280: 4 [#<procedure 559421ff51e0 at guix/scripts/pull.scm:244:4 ()>]
In guix/store.scm:
1443: 3 [run-with-store # ...]
In guix/scripts/pull.scm:
 178: 2 [#<procedure 5594249faf30 at guix/scripts/pull.scm:178:2 (state)> #]
In ice-9/eval.scm:
 386: 1 [eval #<memoized ((<3> <1>) <0>)> (# #t # ...)]
In unknown file:
   ?: 0 [scm-error misc-error #f ...]

ERROR: In procedure scm-error:
ERROR: invalid build result (#<derivation /gnu/store/2x15wf0kpmq29bizxz1nl1lgbsyjpc87-compute-guix-derivation.drv => /gnu/store/75vknf0m8z0xdqnbbbms93r94j8y243f-compute-guix-derivation 559422aa07d0> "")
================================================================================


The relevant error is:

================================================================================
./guix/self.scm:80:4: Throw to key `match-error' with args `("match" "no matching pattern" "guile <at> 2.0")'.
================================================================================

I think the error is caused by the pattern matching code not taking into
account the version suffix. Also, I have used 'guix pull --commit ...'
to make sure it is really eaae07ec2 causing the problem.

Cheers,
Alex
[signature.asc (application/pgp-signature, inline)]

Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Tue, 10 Apr 2018 23:19:02 GMT) Full text and rfc822 format available.

Notification sent to Alex Vong <alexvong1995 <at> gmail.com>:
bug acknowledged by developer. (Tue, 10 Apr 2018 23:19:02 GMT) Full text and rfc822 format available.

Message #10 received at 31117-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <rekado <at> elephly.net>, Alex Vong <alexvong1995 <at> gmail.com>
Cc: 27284-done <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer <at> gmail.com>,
 31117-done <at> debbugs.gnu.org
Subject: Re: bug#27284: ‘guix pull’ broken on Guile 2.0
Date: Wed, 11 Apr 2018 01:18:20 +0200
Hello,

ludo <at> gnu.org (Ludovic Courtès) skribis:

> Indeed, on closer inspection, (guix config) is miscompiled and looks for
> ‘getenv’ and ‘string-append’ in a nonexistent anonymous module (the
> #{ g12345}# thing below) instead of (guile):

It turns out the ‘define-module’ form has to be spliced in 2.0.

Fixed in commit eb72cdf087fe51d85e0c1514ec8e669047b5d6e1.

Thanks Ricardo & Alex,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#31117; Package guix. (Sat, 14 Apr 2018 17:56:01 GMT) Full text and rfc822 format available.

Message #13 received at 31117-done <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 27284-done <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer <at> gmail.com>,
 Alex Vong <alexvong1995 <at> gmail.com>, 31117-done <at> debbugs.gnu.org
Subject: Re: bug#27284: ‘guix pull’ broken on Guile 2.0
Date: Sat, 14 Apr 2018 19:39:11 +0200
Ludovic Courtès <ludo <at> gnu.org> writes:

>> Indeed, on closer inspection, (guix config) is miscompiled and looks for
>> ‘getenv’ and ‘string-append’ in a nonexistent anonymous module (the
>> #{g12345}# thing below) instead of (guile):
>
> It turns out the ‘define-module’ form has to be spliced in 2.0.
>
> Fixed in commit eb72cdf087fe51d85e0c1514ec8e669047b5d6e1.

Thank you.  I tested this and it works fine.

-- 
Ricardo






bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 13 May 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 35 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.