unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Building arm64 guix system image
@ 2023-02-17  8:29 Max Brieiev
  2023-02-17 17:36 ` Akira Kyle
  2023-02-19 20:01 ` Building arm64 guix system image Efraim Flashner
  0 siblings, 2 replies; 15+ messages in thread
From: Max Brieiev @ 2023-02-17  8:29 UTC (permalink / raw)
  To: guix-devel

I want to run Guix on Apple M1 as a Qemu virtual machine.

On the Mac machine I run arm64 dedian image. I installed there guix as a
package manager. Now I am trying to create a guix system image to use
with Qemu, but it fails.

Here is what I do:

    max@debian:~$ guix system image --system=aarch64-linux -t qcow2 ~/code/guix/gnu/system/examples/bare-bones.tmpl 
    guix system: warning: Consider running 'guix pull' followed by
    'guix system reconfigure' to get up-to-date packages and security updates.
    
    substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
    substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
    The following derivations will be built:
      /gnu/store/dhknasynfsx9ffsv2m188mmhfvz4l1cl-grub-2.06.drv
      /gnu/store/875pz541zymv6vhl0hkfll151jv8sd2p-qemu-minimal-7.2.0.drv
      /gnu/store/2vbjnb0f6dzcnvvyaaqjzww0146fpwmj-openbios-qemu-ppc-1.1.drv
      /gnu/store/dclmdk80rbqqpix98vh6srhdbgscyiwb-qemu-7.2.0.tar.xz.drv
      /gnu/store/g9crxhl9j2pw35kwgx9bdcjg3jrvi77v-linux-libre-6.1.9.drv
      /gnu/store/blyj3j5v3p2lh6pj7mw81xjg58d1k4zb-shepherd-0.9.3.drv
      /gnu/store/r517qlsjsl877kpjfl9ixay9mzh0n923-grub-efi32-2.06.drv
      /gnu/store/pyv1w00f9c0q291qhi6y0911sqlvfcrv-grub-efi-2.06.drv
      /gnu/store/875pz541zymv6vhl0hkfll151jv8sd2p-qemu-minimal-7.2.0.drv
      /gnu/store/brzpisxg4dkvad07pd95riwn7c8559j6-genimage-15-1.ec44ae0.drv
    
    1.0 MB will be downloaded
     alsa-utils-1.2.4  987KiB             4.5MiB/s 00:00 [##################] 100.0%
    building /gnu/store/g9crxhl9j2pw35kwgx9bdcjg3jrvi77v-linux-libre-6.1.9.drv...
    building /gnu/store/2vbjnb0f6dzcnvvyaaqjzww0146fpwmj-openbios-qemu-ppc-1.1.drv...
    | 'build' phasebuilder for `/gnu/store/2vbjnb0f6dzcnvvyaaqjzww0146fpwmj-openbios-qemu-ppc-1.1.drv' failed with exit code 1
    build of /gnu/store/2vbjnb0f6dzcnvvyaaqjzww0146fpwmj-openbios-qemu-ppc-1.1.drv failed
    View build log at '/var/log/guix/drvs/2v/bjnb0f6dzcnvvyaaqjzww0146fpwmj-openbios-qemu-ppc-1.1.drv.gz'.
    cannot build derivation `/gnu/store/875pz541zymv6vhl0hkfll151jv8sd2p-qemu-minimal-7.2.0.drv': 1 dependencies couldn't be built
    guix system: error: build of `/gnu/store/875pz541zymv6vhl0hkfll151jv8sd2p-qemu-minimal-7.2.0.drv' failed


The relevant part of the build log shows the following errors:

    Building OpenBIOS for ppc
    Building...
    error:
    /gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.35/include/asm/sigcontext.h:128:2: error: unknown type name ‘__u32’
      128 |  __u32 size; /* size in bytes of the extra space */
          |  ^~~~~
    /gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.35/include/asm/sigcontext.h:129:2: error: unknown type name ‘__u32’
      129 |  __u32 __reserved[3];
          |  ^~~~~
    /gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.35/include/asm/sigcontext.h:136:2: error: unknown type name ‘__u16’
      136 |  __u16 vl;
          |  ^~~~~
    /gnu/store/gm5mbaxkqhzafwy0wnimrg53j884glxn-linux-libre-headers-5.10.35/include/asm/sigcontext.h:137:2: error: unknown type name ‘__u16’
      137 |  __u16 __reserved[3];
          |  ^~~~~
    make[1]: *** [rules.mak:83: host/kernel/bootstrap.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory '/tmp/guix-build-openbios-qemu-ppc-1.1.drv-0/source/obj-ppc'
    make: *** [Makefile:19: build] Error 1
    error: in phase 'build': uncaught exception:
    %exception #<&invoke-error program: "make" arguments: ("-j" "4") exit-status: 2 term-signal: #f stop-signal: #f> 
    phase `build' failed after 0.2 seconds
    command "make" "-j" "4" failed with status 2

I don't know where to look to fix this error. Please, help me.

Also, I thought I could find somewhere arm64 guix build, but apparently
there is none?

I found only a raw image for Pinebook Pro:
https://ci.guix.gnu.org/eval/196495

But for some reason it says it is x86_64 system, and this confuses me.

Thank you in advance.


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

end of thread, other threads:[~2023-02-25 11:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-17  8:29 Building arm64 guix system image Max Brieiev
2023-02-17 17:36 ` Akira Kyle
2023-02-19 12:18   ` Max Brieiev
2023-02-19 12:51     ` Roman Scherer
2023-02-20  9:08       ` Error booting aarch64 installation image (was: Building arm64 guix system image) Max Brieiev
2023-02-20 10:03         ` Roman Scherer
2023-02-21  8:06           ` Error booting aarch64 installation image Max Brieiev
2023-02-22 10:56             ` Efraim Flashner
2023-02-19 20:01 ` Building arm64 guix system image Efraim Flashner
2023-02-20 10:31   ` Roman Scherer
2023-02-20 14:17     ` Efraim Flashner
2023-02-21  5:02       ` Andrew Patterson
2023-02-22 10:45         ` Efraim Flashner
2023-02-25 11:27       ` Roman Scherer
2023-02-23 18:41   ` Roman Scherer

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).