From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathieu Othacehe Subject: Re: Qemu binfmt on foreign distro Date: Sat, 23 Nov 2019 19:53:43 +0100 Message-ID: <87sgmezao8.fsf@gmail.com> References: <87wobt1rb8.fsf@gmail.com> <875zja1n1f.fsf@gnu.org> <87tv6uzbsn.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45159) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYaXX-0004iX-M0 for guix-devel@gnu.org; Sat, 23 Nov 2019 13:53:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iYaXW-0004Pe-J6 for guix-devel@gnu.org; Sat, 23 Nov 2019 13:53:51 -0500 In-reply-to: <87tv6uzbsn.fsf@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel 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 */ [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 [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