'guix system disk-image' fails on ARM

  • Done
  • quality assurance status badge
Details
4 participants
  • Andreas Enge
  • Ludovic Courtès
  • Mathieu Othacehe
  • Mathieu Othacehe
Owner
unassigned
Submitted by
Andreas Enge
Severity
normal

Debbugs page

Andreas Enge wrote 7 years ago
Building disk-image fails
(address . bug-guix@gnu.org)
20180315133724.GA1967@jurong
Hello,

trying to build a disk image on armhf on guix git has been failing for
a while now with the following, not very informative message:

...
grafting '/gnu/store/l5a4h6hjjdpf5kiny97pn1m5wd04ippp-zile-2.4.14' -> '/gnu/store/0dd0gyjknaycp768bh7ms1bz6vs34jms-zile-2.4.14'...
Creating manual page database...
1141 entries processed in 7.8 s

warning: collision encountered:
/gnu/store/7b068yxm2i08v9nymh96zqmdr7awmd1d-inetutils-1.9.4/bin/ifconfig
/gnu/store/cb4dwqhgjzvpnjcfynqzg6j1lkfnbpc1-net-tools-1.60-0.479bb4a/bin/ifconfig
warning: arbitrarily choosing /gnu/store/7b068yxm2i08v9nymh96zqmdr7awmd1d-inetutils-1.9.4/bin/ifconfig

warning: collision encountered:
/gnu/store/m8f75dsgp3nbzn9nlzilc0pgh70wka02-util-linux-2.31/sbin/nologin
/gnu/store/d7s422nfkydsc2r7wwjzq23qgiw5w9ss-shadow-4.5/sbin/nologin
warning: arbitrarily choosing /gnu/store/m8f75dsgp3nbzn9nlzilc0pgh70wka02-util-linux-2.31/sbin/nologin

warning: collision encountered:
/gnu/store/m8f75dsgp3nbzn9nlzilc0pgh70wka02-util-linux-2.31/share/man/man8/nologin.8.gz
/gnu/store/d7s422nfkydsc2r7wwjzq23qgiw5w9ss-shadow-4.5/share/man/man8/nologin.8.gz
warning: arbitrarily choosing /gnu/store/m8f75dsgp3nbzn9nlzilc0pgh70wka02-util-linux-2.31/share/man/man8/nologin.8.gz
environment variable `PATH' set to `/gnu/store/qh0ipghra0ggh7pnik9hds0qb361hv0k-qemu-minimal-2.11.1/bin:/gnu/store/170l2mhsb0pycki92l7n0ir50hnabq2c-coreutils-8.28/bin'
creating raw image of 1004.70 MiB...
Formatting '/gnu/store/gqv4i2hamajyqzrdlx90yg3wf49jz6ll-disk-image', fmt=raw size=1053507739
Backtrace:
2 (primitive-load "/gnu/store/50h7i8w32jxfawm8cdry7ingf1n?")
In ./gnu/build/vm.scm:
163:4 1 (load-in-linux-vm _ #:output _ #:qemu _ #:memory-size _ ?)
In unknown file:
0 (scm-error misc-error #f "~A ~S" ("qemu failed" "qem?") #)

ERROR: In procedure scm-error:
qemu failed "qemu-system-arm"
builder for `/gnu/store/vd8bx5jd868mnhm0mdj8zgjsvjakzh4y-disk-image.drv' failed with exit code 1
guix system: error: build failed: build of `/gnu/store/vd8bx5jd868mnhm0mdj8zgjsvjakzh4y-disk-image.drv' failed
...

Andreas
Andreas Enge wrote 7 years ago
(address . 30825@debbugs.gnu.org)
20180315151416.GA4969@jurong
I am attaching my configuration file as passed to
./pre-inst-env guix system disk-image lime.scm
I am trying to create a GuixSD image to be run on the Olimex Lime system.

When I comment out the line "initrd" (since the module does not exist
on x86_64), a disk image is created on x86_64.

What could I do to help debug this?

Andreas
(use-modules (gnu) (gnu bootloader u-boot)) (use-service-modules audio networking ssh) (use-package-modules screen ssh) (operating-system (host-name "my-mpd-server") (timezone "Europe/Berlin") (locale "en_US.utf8") (bootloader (bootloader-configuration (bootloader u-boot-a20-olinuxino-lime-bootloader) (target "/dev/sda"))) (initrd (lambda (fs . rest) (apply base-initrd fs ;; This module is required to mount the sd card. #:extra-modules (list "omap_hsmmc") rest))) (file-systems (cons (file-system (device "my-root") (title 'label) (mount-point "/") (type "ext4")) %base-file-systems)) (users (cons (user-account (name "mpd") (group "users") (home-directory "/home/mpd")) %base-user-accounts)) (services (cons* (dhcp-client-service) (agetty-service (agetty-configuration (extra-options '("-L")) (baud-rate "115200") (term "vt100") (tty "ttyO0"))) %base-services)))
Ludovic Courtès wrote 7 years ago
(name . Andreas Enge)(address . andreas@enge.fr)
87efkluzld.fsf@gnu.org
Hello,

Andreas Enge <andreas@enge.fr> skribis:

Toggle quote (12 lines)
> Formatting '/gnu/store/gqv4i2hamajyqzrdlx90yg3wf49jz6ll-disk-image', fmt=raw size=1053507739
> Backtrace:
> 2 (primitive-load "/gnu/store/50h7i8w32jxfawm8cdry7ingf1n?")
> In ./gnu/build/vm.scm:
> 163:4 1 (load-in-linux-vm _ #:output _ #:qemu _ #:memory-size _ ?)
> In unknown file:
> 0 (scm-error misc-error #f "~A ~S" ("qemu failed" "qem?") #)
>
> ERROR: In procedure scm-error:
> qemu failed "qemu-system-arm"
> builder for `/gnu/store/vd8bx5jd868mnhm0mdj8zgjsvjakzh4y-disk-image.drv' failed with exit code 1

Building an image on ARM, *that’s* bleeding edge! :-)

Could you do:

guix gc --references /gnu/store/vd8bx5jd868mnhm0mdj8zgjsvjakzh4y-disk-image.drv | grep disk-image-builder

and try to run the qemu-system-arm command that appears there with the
arguments that from gnu/build/vm.scm line 163?

Mathieu came up with that code and might have a better idea though. :-)

Thanks,
Ludo’.
Mathieu Othacehe wrote 7 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)
87zi39tjnm.fsf@gmail.com
Hi Ludo & Andreas,

Toggle quote (9 lines)
> Could you do:
>
> guix gc --references /gnu/store/vd8bx5jd868mnhm0mdj8zgjsvjakzh4y-disk-image.drv | grep disk-image-builder
>
> and try to run the qemu-system-arm command that appears there with the
> arguments that from gnu/build/vm.scm line 163?
>
> Mathieu came up with that code and might have a better idea though. :-)

That how I debug this part of the code, so let's wait for the answer :)

Mathieu
Ludovic Courtès wrote 7 years ago
(name . Andreas Enge)(address . andreas@enge.fr)
87fu3bp1d0.fsf@gnu.org
Ping! :-)

ludo@gnu.org (Ludovic Courtès) skribis:

Toggle quote (29 lines)
> Hello,
>
> Andreas Enge <andreas@enge.fr> skribis:
>
>> Formatting '/gnu/store/gqv4i2hamajyqzrdlx90yg3wf49jz6ll-disk-image', fmt=raw size=1053507739
>> Backtrace:
>> 2 (primitive-load "/gnu/store/50h7i8w32jxfawm8cdry7ingf1n?")
>> In ./gnu/build/vm.scm:
>> 163:4 1 (load-in-linux-vm _ #:output _ #:qemu _ #:memory-size _ ?)
>> In unknown file:
>> 0 (scm-error misc-error #f "~A ~S" ("qemu failed" "qem?") #)
>>
>> ERROR: In procedure scm-error:
>> qemu failed "qemu-system-arm"
>> builder for `/gnu/store/vd8bx5jd868mnhm0mdj8zgjsvjakzh4y-disk-image.drv' failed with exit code 1
>
> Building an image on ARM, *that’s* bleeding edge! :-)
>
> Could you do:
>
> guix gc --references /gnu/store/vd8bx5jd868mnhm0mdj8zgjsvjakzh4y-disk-image.drv | grep disk-image-builder
>
> and try to run the qemu-system-arm command that appears there with the
> arguments that from gnu/build/vm.scm line 163?
>
> Mathieu came up with that code and might have a better idea though. :-)
>
> Thanks,
> Ludo’.
Ludovic Courtès wrote 7 years ago
control message for bug #30825
(address . control@debbugs.gnu.org)
87efivp1cd.fsf@gnu.org
retitle 30825 'guix system disk-image' fails on ARM
Mathieu Othacehe wrote 4 years ago
Re: bug#30825: Building disk-image fails
(name . Andreas Enge)(address . andreas@enge.fr)(address . 30825-done@debbugs.gnu.org)
87pn3muewe.fsf@gnu.org
Hello,

Toggle quote (6 lines)
> ERROR: In procedure scm-error:
> qemu failed "qemu-system-arm"
> builder for `/gnu/store/vd8bx5jd868mnhm0mdj8zgjsvjakzh4y-disk-image.drv' failed with exit code 1
> guix system: error: build failed: build of `/gnu/store/vd8bx5jd868mnhm0mdj8zgjsvjakzh4y-disk-image.drv' failed
> ...

That's no longer relevant as "disk-image" are now produced without
resorting to virtual machines.

Thanks,

Mathieu
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 30825@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 30825
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help