all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#30825: Building disk-image fails
@ 2018-03-15 13:37 Andreas Enge
  2018-03-15 15:14 ` Andreas Enge
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andreas Enge @ 2018-03-15 13:37 UTC (permalink / raw)
  To: 30825

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30825: Building disk-image fails
  2018-03-15 13:37 bug#30825: Building disk-image fails Andreas Enge
@ 2018-03-15 15:14 ` Andreas Enge
  2018-03-15 15:29 ` Ludovic Courtès
  2020-12-07  9:46 ` Mathieu Othacehe
  2 siblings, 0 replies; 6+ messages in thread
From: Andreas Enge @ 2018-03-15 15:14 UTC (permalink / raw)
  To: 30825

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

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


[-- Attachment #2: lime.scm --]
[-- Type: text/plain, Size: 1308 bytes --]

(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)))


^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30825: Building disk-image fails
  2018-03-15 13:37 bug#30825: Building disk-image fails Andreas Enge
  2018-03-15 15:14 ` Andreas Enge
@ 2018-03-15 15:29 ` Ludovic Courtès
  2018-03-15 15:58   ` Mathieu Othacehe
  2018-05-01 20:28   ` Ludovic Courtès
  2020-12-07  9:46 ` Mathieu Othacehe
  2 siblings, 2 replies; 6+ messages in thread
From: Ludovic Courtès @ 2018-03-15 15:29 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 30825

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’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30825: Building disk-image fails
  2018-03-15 15:29 ` Ludovic Courtès
@ 2018-03-15 15:58   ` Mathieu Othacehe
  2018-05-01 20:28   ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Mathieu Othacehe @ 2018-03-15 15:58 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 30825


Hi Ludo & Andreas,

> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30825: Building disk-image fails
  2018-03-15 15:29 ` Ludovic Courtès
  2018-03-15 15:58   ` Mathieu Othacehe
@ 2018-05-01 20:28   ` Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2018-05-01 20:28 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 30825

Ping!  :-)

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

> 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’.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30825: Building disk-image fails
  2018-03-15 13:37 bug#30825: Building disk-image fails Andreas Enge
  2018-03-15 15:14 ` Andreas Enge
  2018-03-15 15:29 ` Ludovic Courtès
@ 2020-12-07  9:46 ` Mathieu Othacehe
  2 siblings, 0 replies; 6+ messages in thread
From: Mathieu Othacehe @ 2020-12-07  9:46 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 30825-done


Hello,

> 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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-07  9:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-15 13:37 bug#30825: Building disk-image fails Andreas Enge
2018-03-15 15:14 ` Andreas Enge
2018-03-15 15:29 ` Ludovic Courtès
2018-03-15 15:58   ` Mathieu Othacehe
2018-05-01 20:28   ` Ludovic Courtès
2020-12-07  9:46 ` Mathieu Othacehe

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.