GNU bug report logs - #28265
guix system build fails

Previous Next

Package: guix;

Reported by: Efraim Flashner <efraim <at> flashner.co.il>

Date: Mon, 28 Aug 2017 18:53:01 UTC

Severity: normal

Done: Efraim Flashner <efraim <at> flashner.co.il>

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 28265 in the body.
You can then email your comments to 28265 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#28265; Package guix. (Mon, 28 Aug 2017 18:53:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Efraim Flashner <efraim <at> flashner.co.il>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 28 Aug 2017 18:53:02 GMT) Full text and rfc822 format available.

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

From: Efraim Flashner <efraim <at> flashner.co.il>
To: bug-guix <at> gnu.org
Subject: guix system build fails
Date: Mon, 28 Aug 2017 21:52:32 +0300
[Message part 1 (text/plain, inline)]
efraim <at> macbook42:~/workspace/guix$ time nice ./pre-inst-env guix system build ~/lightweight-desktop.scm
Backtrace:
          11 (primitive-load "/home/efraim/workspace/guix/scripts/gu…")
In guix/ui.scm:
  1331:12 10 (run-guix-command _ . _)
In ice-9/boot-9.scm:
    837:9  9 (catch _ _ #<procedure 7f4e83aea8c0 at guix/ui.scm:448…> …)
    837:9  8 (catch _ _ #<procedure 7f4e83aea8d8 at guix/ui.scm:536…> …)
In guix/scripts/system.scm:
   1022:8  7 (_)
    905:6  6 (process-action _ _ _)
In guix/store.scm:
  1441:24  5 (run-with-store _ _ #:guile-for-build _ #:system _)
In guix/scripts/system.scm:
    637:2  4 (_ _)
In gnu/system.scm:
    884:4  3 (_ _)
In gnu/bootloader/grub.scm:
   343:29  2 (grub-configuration-file #<<bootloader-configuration> …> …)
   207:30  1 (eye-candy #<<bootloader-configuration> bootloader: #<…> …)
   149:22  0 (grub-background-image #<<bootloader-configuration> bo…> …)

gnu/bootloader/grub.scm:149:22: In procedure grub-background-image:
gnu/bootloader/grub.scm:149:22: In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): 5

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[lightweight-desktop.scm (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#28265; Package guix. (Mon, 28 Aug 2017 20:16:02 GMT) Full text and rfc822 format available.

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

From: Christopher Baines <mail <at> cbaines.net>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 28265 <at> debbugs.gnu.org
Subject: Re: bug#28265: guix system build fails
Date: Mon, 28 Aug 2017 21:15:35 +0100
[Message part 1 (text/plain, inline)]
On Mon, 28 Aug 2017 21:52:32 +0300
Efraim Flashner <efraim <at> flashner.co.il> wrote:

> efraim <at> macbook42:~/workspace/guix$ time nice ./pre-inst-env guix
> system build ~/lightweight-desktop.scm Backtrace:
>           11 (primitive-load
> "/home/efraim/workspace/guix/scripts/gu…") In guix/ui.scm:
>   1331:12 10 (run-guix-command _ . _)
> In ice-9/boot-9.scm:
>     837:9  9 (catch _ _ #<procedure 7f4e83aea8c0 at guix/ui.scm:448…>
> …) 837:9  8 (catch _ _ #<procedure 7f4e83aea8d8 at guix/ui.scm:536…>
> …) In guix/scripts/system.scm:
>    1022:8  7 (_)
>     905:6  6 (process-action _ _ _)
> In guix/store.scm:
>   1441:24  5 (run-with-store _ _ #:guile-for-build _ #:system _)
> In guix/scripts/system.scm:
>     637:2  4 (_ _)
> In gnu/system.scm:
>     884:4  3 (_ _)
> In gnu/bootloader/grub.scm:
>    343:29  2 (grub-configuration-file #<<bootloader-configuration> …>
> …) 207:30  1 (eye-candy #<<bootloader-configuration> bootloader: #<…>
> …) 149:22  0 (grub-background-image #<<bootloader-configuration> bo…>
> …)
> 
> gnu/bootloader/grub.scm:149:22: In procedure grub-background-image:
> gnu/bootloader/grub.scm:149:22: In procedure struct_vtable: Wrong
> type argument in position 1 (expecting struct): 5
> 

I tried this, and got the same error, but then I deleted all the .go
files, re-ran make, and then tried again, and then it worked.

→ ./pre-inst-env guix system build gnu/system/examples/lightweight-desktop.tmpl 
/gnu/store/hqjri2wz5sz32fabv7cr85zirnbsmvjs-system

I'm not quite sure what this means.... my understanding of Guile is a
bit vague.
[Message part 2 (application/pgp-signature, inline)]

Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Tue, 29 Aug 2017 03:50:02 GMT) Full text and rfc822 format available.

Notification sent to Efraim Flashner <efraim <at> flashner.co.il>:
bug acknowledged by developer. (Tue, 29 Aug 2017 03:50:02 GMT) Full text and rfc822 format available.

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

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Christopher Baines <mail <at> cbaines.net>
Cc: 28265-done <at> debbugs.gnu.org
Subject: Re: bug#28265: guix system build fails
Date: Tue, 29 Aug 2017 06:49:28 +0300
[Message part 1 (text/plain, inline)]
On Mon, Aug 28, 2017 at 09:15:35PM +0100, Christopher Baines wrote:
> On Mon, 28 Aug 2017 21:52:32 +0300
> Efraim Flashner <efraim <at> flashner.co.il> wrote:
> 
> > efraim <at> macbook42:~/workspace/guix$ time nice ./pre-inst-env guix
> > system build ~/lightweight-desktop.scm Backtrace:
> >           11 (primitive-load
> > "/home/efraim/workspace/guix/scripts/gu…") In guix/ui.scm:
> >   1331:12 10 (run-guix-command _ . _)
> > In ice-9/boot-9.scm:
> >     837:9  9 (catch _ _ #<procedure 7f4e83aea8c0 at guix/ui.scm:448…>
> > …) 837:9  8 (catch _ _ #<procedure 7f4e83aea8d8 at guix/ui.scm:536…>
> > …) In guix/scripts/system.scm:
> >    1022:8  7 (_)
> >     905:6  6 (process-action _ _ _)
> > In guix/store.scm:
> >   1441:24  5 (run-with-store _ _ #:guile-for-build _ #:system _)
> > In guix/scripts/system.scm:
> >     637:2  4 (_ _)
> > In gnu/system.scm:
> >     884:4  3 (_ _)
> > In gnu/bootloader/grub.scm:
> >    343:29  2 (grub-configuration-file #<<bootloader-configuration> …>
> > …) 207:30  1 (eye-candy #<<bootloader-configuration> bootloader: #<…>
> > …) 149:22  0 (grub-background-image #<<bootloader-configuration> bo…>
> > …)
> > 
> > gnu/bootloader/grub.scm:149:22: In procedure grub-background-image:
> > gnu/bootloader/grub.scm:149:22: In procedure struct_vtable: Wrong
> > type argument in position 1 (expecting struct): 5
> > 
> 
> I tried this, and got the same error, but then I deleted all the .go
> files, re-ran make, and then tried again, and then it worked.
> 

Ooops, so I should've run `make clean' first.

> → ./pre-inst-env guix system build gnu/system/examples/lightweight-desktop.tmpl 
> /gnu/store/hqjri2wz5sz32fabv7cr85zirnbsmvjs-system
> 
> I'm not quite sure what this means.... my understanding of Guile is a
> bit vague.

its returning the system that you just asked it to build.


I'm closing the bug, should've run `make clean' first.

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#28265; Package guix. (Wed, 30 Aug 2017 09:08:01 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Christopher Baines <mail <at> cbaines.net>
Cc: 28265 <at> debbugs.gnu.org, Efraim Flashner <efraim <at> flashner.co.il>
Subject: Re: bug#28265: guix system build fails
Date: Wed, 30 Aug 2017 11:07:21 +0200
Hello!

Christopher Baines <mail <at> cbaines.net> skribis:

> On Mon, 28 Aug 2017 21:52:32 +0300
> Efraim Flashner <efraim <at> flashner.co.il> wrote:
>
>> efraim <at> macbook42:~/workspace/guix$ time nice ./pre-inst-env guix
>> system build ~/lightweight-desktop.scm Backtrace:
>>           11 (primitive-load
>> "/home/efraim/workspace/guix/scripts/gu…") In guix/ui.scm:
>>   1331:12 10 (run-guix-command _ . _)
>> In ice-9/boot-9.scm:
>>     837:9  9 (catch _ _ #<procedure 7f4e83aea8c0 at guix/ui.scm:448…>
>> …) 837:9  8 (catch _ _ #<procedure 7f4e83aea8d8 at guix/ui.scm:536…>
>> …) In guix/scripts/system.scm:
>>    1022:8  7 (_)
>>     905:6  6 (process-action _ _ _)
>> In guix/store.scm:
>>   1441:24  5 (run-with-store _ _ #:guile-for-build _ #:system _)
>> In guix/scripts/system.scm:
>>     637:2  4 (_ _)
>> In gnu/system.scm:
>>     884:4  3 (_ _)
>> In gnu/bootloader/grub.scm:
>>    343:29  2 (grub-configuration-file #<<bootloader-configuration> …>
>> …) 207:30  1 (eye-candy #<<bootloader-configuration> bootloader: #<…>
>> …) 149:22  0 (grub-background-image #<<bootloader-configuration> bo…>
>> …)
>> 
>> gnu/bootloader/grub.scm:149:22: In procedure grub-background-image:
>> gnu/bootloader/grub.scm:149:22: In procedure struct_vtable: Wrong
>> type argument in position 1 (expecting struct): 5
>> 
>
> I tried this, and got the same error, but then I deleted all the .go
> files, re-ran make, and then tried again, and then it worked.

Yeah, this kind of error is typical of an ABI mismatch.  The reason is
that in Guile, record field accessors of SRFI-9 record types are
inlined:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,use(srfi srfi-9)
scheme@(guile-user)> (define-record-type <foo>
		       (make-foo x)
		       foo?
		       (x foo-x))
scheme@(guile-user)> ,expand (foo-x bar)
$2 = (let ((s bar))
  (if ((@@ (srfi srfi-9) eq?)
       ((@@ (srfi srfi-9) struct-vtable) s)
       <foo>)
    ((@@ (srfi srfi-9) struct-ref) s 0)
    (let ((s* s))
      ((@@ (srfi srfi-9) throw)
       'wrong-type-arg
       'foo-x
       "Wrong type argument: ~S"
       ((@@ (srfi srfi-9) list) s*)
       ((@@ (srfi srfi-9) list) s*)))))
--8<---------------cut here---------------end--------------->8---

The (struct-ref s 0) above becomes incorrect if, say, we add a field
right before ‘x’, because ‘x’ would now be at offset 1.

The safe solution here is to “make clean-go && make”.

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 27 Sep 2017 11:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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