From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6KpKMfSI918nWwAA0tVLHw (envelope-from ) for ; Thu, 07 Jan 2021 22:19:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YNNYLfSI91+gSwAAB5/wlQ (envelope-from ) for ; Thu, 07 Jan 2021 22:19:32 +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 E0EB99403AE for ; Thu, 7 Jan 2021 22:19:31 +0000 (UTC) Received: from localhost ([::1]:41488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxdcv-00057u-G4 for larch@yhetil.org; Thu, 07 Jan 2021 17:19:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxdcU-00057k-72 for bug-guix@gnu.org; Thu, 07 Jan 2021 17:19:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37255) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxdcT-00032N-WF for bug-guix@gnu.org; Thu, 07 Jan 2021 17:19:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxdcT-0005PT-Qj for bug-guix@gnu.org; Thu, 07 Jan 2021 17:19:01 -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: Stefan Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 07 Jan 2021 22:19:01 +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: 45716@debbugs.gnu.org, Danny Milosavljevic Received: via spool by 45716-submit@debbugs.gnu.org id=B45716.161005788220719 (code B ref 45716); Thu, 07 Jan 2021 22:19:01 +0000 Received: (at 45716) by debbugs.gnu.org; 7 Jan 2021 22:18:02 +0000 Received: from localhost ([127.0.0.1]:48801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxdbW-0005O7-2c for submit@debbugs.gnu.org; Thu, 07 Jan 2021 17:18:02 -0500 Received: from smtpout2.vodafonemail.de ([145.253.239.133]:38018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxdbT-0005Nc-FX for 45716@debbugs.gnu.org; Thu, 07 Jan 2021 17:18:00 -0500 Received: from smtp.vodafone.de (unknown [10.2.0.34]) by smtpout2.vodafonemail.de (Postfix) with ESMTP id 68F62127302; Thu, 7 Jan 2021 23:17:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vodafonemail.de; s=vfde-smtpout-mb-15sep; t=1610057872; bh=GPCsC831Gux/fbNzqNDTOezRRUJTHuyIC5BjHfEfwgg=; h=Subject:From:In-Reply-To:Date:References:To; b=Nq/p7/mvUYlOMpp92xDLETEQEayhWrax4WWlczPtyeO6EhJJxZmqHYJ2ZOfXY8/LL ZStM628dk7lJ6mDed+qxSi1HprFp+Te3FJL0p4N0ZUvdFijawOq2zOdKhM7t+UId/0 Te8Mi6R7ZX0Jo/c0yUMCpYM1FYrCQFSSfFpqlPpk= Received: from macbook-pro.kuh-wiese.my-router.de (dslb-002-206-141-230.002.206.pools.vodafone-ip.de [2.206.141.230]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.vodafone.de (Postfix) with ESMTPSA id 32DC3141051; Thu, 7 Jan 2021 22:17:52 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Stefan In-Reply-To: <19CC6F6C-98CA-4218-A9E7-FE7AC751E924@vodafonemail.de> Date: Thu, 7 Jan 2021 23:17:51 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <5A46F4E0-9823-4614-A7BC-865F9D7C0FB7@vodafonemail.de> References: <19CC6F6C-98CA-4218-A9E7-FE7AC751E924@vodafonemail.de> X-Mailer: Apple Mail (2.3124) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 1690 X-purgate-ID: 155817::1610057872-00003440-F8EE8040/0/0 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.85 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=vodafonemail.de header.s=vfde-smtpout-mb-15sep header.b=Nq/p7/mv; 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: E0EB99403AE X-Spam-Score: -0.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: LkWRfdzAM0eq Hi! This change makes the reproducer working and prints some more values: diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm index 85c1c45f81..250c577d33 100644 --- a/guix/build/syscalls.scm +++ b/guix/build/syscalls.scm @@ -1473,7 +1473,19 @@ most LEN bytes from BV." (() (reverse result)) (_ - (loop (drop bytes stride) + (display "bytes: ") + (display (length bytes)) + (newline) + (display "stride: ") + (display stride) + (newline) + (display "ifreq-struct-size: ") + (display ifreq-struct-size) + (newline) + (display "sizeof '*: ") + (display (sizeof '*)) + (newline) + (loop (drop bytes (min stride (length bytes))) (cons (bytes->string bytes) result)))))) =20 (define* (network-interface-names #:optional sock) So indeed, the number of bytes is only 32, if build with = =E2=80=98./pre-inst-env guix build --system=3Daarch64-linux -f = ~/test.scm=E2=80=99: bytes: 32 stride: 40 sizeof '*: 8 If this is instead build with just =E2=80=98./pre-inst-env guix build -f = ~/test.scm=E2=80=99, the output is as expected: bytes: 40 stride: 40 sizeof '*: 8 =20 I have however no clue, why the number of bytes is only 32 in case of = aarch64. This value is taken from the struct ifconf read via = ioctl(SIOCGIFCONF). Danny, does that maybe ring a bell? 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. Bye Stefan=