GNU bug report logs - #41929
Missing root file system in OS leads to backtrace

Previous Next

Package: guix;

Reported by: Jan Synacek <jsynacek <at> redhat.com>

Date: Thu, 18 Jun 2020 07:30:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

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 41929 in the body.
You can then email your comments to 41929 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-guile <at> gnu.org:
bug#41929; Package guile. (Thu, 18 Jun 2020 07:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jan Synacek <jsynacek <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Thu, 18 Jun 2020 07:30:02 GMT) Full text and rfc822 format available.

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

From: Jan Synacek <jsynacek <at> redhat.com>
To: bug-guile <at> gnu.org
Subject: backtrace when building os on a foreign distro
Date: Thu, 18 Jun 2020 09:29:24 +0200
$ cat guix-os.scm 
(use-modules (gnu bootloader)
	     (gnu bootloader grub)
	     (gnu system file-systems))

(operating-system
  (host-name "jsynacek-guix-os")
  (timezone "Europe/Prague")
  (locale "en_US.utf8")
  (bootloader
    (bootloader-configuration
      (bootloader grub-efi-bootloader)
      (target "/dev/sdx")))
  (file-systems
    (list (file-system (mount-point "/home")
                       (device "/dev/sda33")
                       (type "ext4")))))

$ guix system build guix-os.scm 
Backtrace:
In ice-9/boot-9.scm:
  1736:10  4 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In unknown file:
           3 (apply-smob/0 #<thunk 7f62f6eb0940>)
In ice-9/boot-9.scm:
    718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handler (k proc)>)
In ice-9/eval.scm:
    619:8  1 (_ #(#(#<directory (guile-user) 7f62f6ad3f00>)))
In guix/ui.scm:
  1936:12  0 (run-guix-command _ . _)

guix/ui.scm:1936:12: In procedure run-guix-command:
In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f

Note that 'guix system init ...' and maybe other commands don't work
too. 'guix system vm' with the above config file works without a
backtrace.

This is on guix 1.1.0 running on Fedora 32. I also tried to 'guix pull'
but the result is the same.

-- 
Jan Synacek
Software Engineer, Red Hat





Changed bug title to 'Missing root file system in OS leads to backtrace' from 'backtrace when building os on a foreign distro' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 28 Jun 2020 20:23:01 GMT) Full text and rfc822 format available.

bug reassigned from package 'guile' to 'guix'. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 28 Jun 2020 20:23:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#41929; Package guix. (Fri, 31 Jul 2020 20:45:02 GMT) Full text and rfc822 format available.

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

From: Robin Green via web <issues.guix.gnu.org <at> elephly.net>
To: 41929 <at> debbugs.gnu.org
Subject: Missing root file system in OS leads to backtrace
Date: Fri, 31 Jul 2020 22:43:55 +0200
test comment





Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Thu, 29 Sep 2022 00:43:02 GMT) Full text and rfc822 format available.

Notification sent to Jan Synacek <jsynacek <at> redhat.com>:
bug acknowledged by developer. (Thu, 29 Sep 2022 00:43:02 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Jan Synacek <jsynacek <at> redhat.com>
Cc: 41929-done <at> debbugs.gnu.org
Subject: Re: bug#41929: Missing root file system in OS leads to backtrace
Date: Wed, 28 Sep 2022 20:42:46 -0400
Hi,

Jan Synacek <jsynacek <at> redhat.com> writes:

> $ cat guix-os.scm 
> (use-modules (gnu bootloader)
> 	     (gnu bootloader grub)
> 	     (gnu system file-systems))
>
> (operating-system
>   (host-name "jsynacek-guix-os")
>   (timezone "Europe/Prague")
>   (locale "en_US.utf8")
>   (bootloader
>     (bootloader-configuration
>       (bootloader grub-efi-bootloader)
>       (target "/dev/sdx")))
>   (file-systems
>     (list (file-system (mount-point "/home")
>                        (device "/dev/sda33")
>                        (type "ext4")))))
>
> $ guix system build guix-os.scm 
> Backtrace:
> In ice-9/boot-9.scm:
>   1736:10  4 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
> In unknown file:
>            3 (apply-smob/0 #<thunk 7f62f6eb0940>)
> In ice-9/boot-9.scm:
>     718:2  2 (call-with-prompt _ _ #<procedure default-prompt-handler (k proc)>)
> In ice-9/eval.scm:
>     619:8  1 (_ #(#(#<directory (guile-user) 7f62f6ad3f00>)))
> In guix/ui.scm:
>   1936:12  0 (run-guix-command _ . _)
>
> guix/ui.scm:1936:12: In procedure run-guix-command:
> In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
>
> Note that 'guix system init ...' and maybe other commands don't work
> too. 'guix system vm' with the above config file works without a
> backtrace.
>
> This is on guix 1.1.0 running on Fedora 32. I also tried to 'guix pull'
> but the result is the same.

Not reproducible using the latest Guix:

--8<---------------cut here---------------start------------->8---
$ guix system build /tmp/os.scm
/tmp/os.scm:12:14: warning: the 'target' field is deprecated, please use 'targets' instead
/tmp/os.scm:5:0: error: missing root file system
--8<---------------cut here---------------end--------------->8---

Closing.

Thanks!

Maxim




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

This bug report was last modified 1 year and 175 days ago.

Previous Next


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