guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Qemu binfmt on foreign distro


From: Mathieu Othacehe
Subject: Re: Qemu binfmt on foreign distro
Date: Sat, 23 Nov 2019 19:53:43 +0100
User-agent: mu4e 1.2.0; emacs 26.3

Oops pressed C-c C-c by mistake, sorry :p

So here is what is installed by Ubuntu:

--8<---------------cut here---------------start------------->8---
mathieu@cervin:~/guix$ ls /proc/sys/fs/binfmt_misc/ -al
-rw-r--r-- 1 root root 0 nov.  23 19:42 qemu-aarch64
-rw-r--r-- 1 root root 0 nov.  23 19:42 qemu-alpha
--8<---------------cut here---------------end--------------->8---

and,

--8<---------------cut here---------------start------------->8---
mathieu@cervin:~/guix$ cat /proc/sys/fs/binfmt_misc/qemu-aarch64 
enabled
interpreter /usr/bin/qemu-aarch64
flags: OC
offset 0
magic 7f454c460201010000000000000000000200b700
mask ffffffffffffff00fffffffffffffffffeffffff
--8<---------------cut here---------------end--------------->8---

Then when running:

guix build --system=armhf-linux hello

--8<---------------cut here---------------start------------->8---
The following derivation will be built:
   /gnu/store/174lzlz5ggw1gjck7qzkyw9qbi6izxql-hello-2.10.drv
building /gnu/store/174lzlz5ggw1gjck7qzkyw9qbi6izxql-hello-2.10.drv...
while setting up the build environment: executing 
`/gnu/store/50f18mlbj915vydqmm6nyvkh2b23vmf0-guile-2.2.6/bin/guile': No such 
file or directory
builder for `/gnu/store/174lzlz5ggw1gjck7qzkyw9qbi6izxql-hello-2.10.drv' failed 
with exit code 1
build of /gnu/store/174lzlz5ggw1gjck7qzkyw9qbi6izxql-hello-2.10.drv failed
View build log at 
'/var/log/guix/drvs/17/4lzlz5ggw1gjck7qzkyw9qbi6izxql-hello-2.10.drv.bz2'.
guix build: error: build of 
`/gnu/store/174lzlz5ggw1gjck7qzkyw9qbi6izxql-hello-2.10.drv' failed
--8<---------------cut here---------------end--------------->8---

And stracing guix daemon:

--8<---------------cut here---------------start------------->8---
[pid 21571] 
execve("/gnu/store/50f18mlbj915vydqmm6nyvkh2b23vmf0-guile-2.2.6/bin/guile", 
["guile", "--no-auto-compile", "-L", 
"/gnu/store/6y2hmc19rywag4p4akfl4g3vz4cv2948-module-import", 
"/gnu/store/dccz535kqh527828ilsb4lyicx9xbn7p-hello-2.10-guile-builder"], 
0x1fcda60 /* 12 vars */ <unfinished ...>
[pid 21557] write(4, "gmlo\0\0\0\0\250\0\0\0\0\0\0\0@ build-started 
/gnu/store/174lzlz5ggw1gjck7qzkyw9qbi6izxql-hello-2.10.drv - armhf-linux 
/var/log/guix/drvs/17//4lzlz5ggw1gjck7qzkyw9qbi6izxql-hello-2.10.drv.bz2 
21571\n", 184) = 184
[pid 21557] select(20, [19], NULL, NULL, NULL <unfinished ...>
[pid 21571] <... execve resumed> )      = -1 ENOENT (No such file or directory)
--8<---------------cut here---------------end--------------->8---

However, just noticed that if I install qemu-user-static instead of
qemu-user-binfmt, everything works well, not sure why :(.

So I guess I was making noise for nothing, sorry about that.

Mathieu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]