From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MBrONwbM91+FaQAA0tVLHw (envelope-from ) for ; Fri, 08 Jan 2021 03:05:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +J6FMwbM91/ZegAAbx9fmQ (envelope-from ) for ; Fri, 08 Jan 2021 03:05:42 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5091A9403E6 for ; Fri, 8 Jan 2021 03:05:42 +0000 (UTC) Received: from localhost ([::1]:60464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxi5s-0000o3-Vd for larch@yhetil.org; Thu, 07 Jan 2021 22:05:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxi5G-0000nc-Oi for bug-guix@gnu.org; Thu, 07 Jan 2021 22:05:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxi5G-0001yF-Gg for bug-guix@gnu.org; Thu, 07 Jan 2021 22:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxi5G-0004Xi-Bs for bug-guix@gnu.org; Thu, 07 Jan 2021 22:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45716: Bug in =?UTF-8?Q?=E2=80=98network-interface-names=E2=80=99?= when building guix for aarch64 on x86_64. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 08 Jan 2021 03:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45716 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Stefan Received: via spool by 45716-submit@debbugs.gnu.org id=B45716.161007509617447 (code B ref 45716); Fri, 08 Jan 2021 03:05:02 +0000 Received: (at 45716) by debbugs.gnu.org; 8 Jan 2021 03:04:56 +0000 Received: from localhost ([127.0.0.1]:49000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxi59-0004XL-Qm for submit@debbugs.gnu.org; Thu, 07 Jan 2021 22:04:55 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:59704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxi54-0004X9-Vl for 45716@debbugs.gnu.org; Thu, 07 Jan 2021 22:04:54 -0500 Received: from localhost (80-110-127-104.cgn.dynamic.surfer.at [80.110.127.104]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 3ADA53363D31; Fri, 8 Jan 2021 04:04:49 +0100 (CET) Date: Fri, 8 Jan 2021 04:04:45 +0100 From: Danny Milosavljevic Message-ID: <20210108040445.1444c372@scratchpost.org> In-Reply-To: <5A46F4E0-9823-4614-A7BC-865F9D7C0FB7@vodafonemail.de> References: <19CC6F6C-98CA-4218-A9E7-FE7AC751E924@vodafonemail.de> <5A46F4E0-9823-4614-A7BC-865F9D7C0FB7@vodafonemail.de> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/.qSaDk=pHCt6xi9zvqYVw+9"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 45716@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.45 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 5091A9403E6 X-Spam-Score: -2.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: 9K7ww3hR7OQm --Sig_/.qSaDk=pHCt6xi9zvqYVw+9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Stefan, >I have however no clue, why the number of bytes is only 32 in case of aarc= h64. This value is taken from the struct ifconf read via ioctl(SIOCGIFCONF). guix/build/syscalls.scm has: >(define ifreq-struct-size > ;; 'struct ifreq' begins with an array of IF_NAMESIZE bytes containing t= he > ;; interface name (nul-terminated), followed by a bunch of stuff. This = is > ;; its size in bytes. > (if (=3D 8 (sizeof '*)) > 40 > 32)) I think that should rather be (sizeof* '*) instead of (sizeof '*). Ludo? Can you try printing (@@ (guix build syscalls) ifreq-struct-size) directly ? >To be precise this is all running in a virtual machine with virtio-net-pci. >Both kernel and qemu on the host are rather old. However, building for x86= _64 >works just fine, so I think the host setup is unrelated. Is it qemu-user or qemu-system ? (Note: Empirically, on armhf, that struct is 32 Bytes big in C. And indeed the Linux kernel contains a compat struct ifreq32 in fs/compat_i= octl.c) --Sig_/.qSaDk=pHCt6xi9zvqYVw+9 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl/3y80ACgkQ5xo1VCww uqXEBQf/d01xj6mUC4LYTLJMU1iGXVv5MhPhf0YgoSELSwhqoqvKlLttGllUA8o/ OjXdO+C7OHm0XkOgvy/V42lVPuc7U9+/KsqvxatEWEn3N/mBBC/STHEJt/GPWhHJ Z0+WBKhforwGNc78v81ewje6yq3xYCv1PakqAMNaa3IDPazYm69Q+GyrRo1YyiUZ c+xRjaM7TgvckhMyBWyZBxwRf2GNM2P36UDR589sLRXlafmfndKcG22SYk79e928 2Smj0knB6zU+Xig3XPOoy5JBDGuGwc/MIuqqf5gl7WUJTY5+U6WTJ6k5z19ucGjH L3+O3bYYRc1uWWLccDWc4drDwMC4jw== =04uu -----END PGP SIGNATURE----- --Sig_/.qSaDk=pHCt6xi9zvqYVw+9--