From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QPyiDDfXNmfdyAAAqHPOHw:P1 (envelope-from ) for ; Fri, 15 Nov 2024 05:08:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id QPyiDDfXNmfdyAAAqHPOHw (envelope-from ) for ; Fri, 15 Nov 2024 06:08:07 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=nmZLUNWp; dkim=fail ("headers rsa verify failed") header.d=jakstys.lt header.s=google header.b=InYc6zf1; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=jakstys.lt (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731647287; a=rsa-sha256; cv=none; b=TiuuCiXZn1U9n/Cq/YQiJkZrMRg6oBM1lKwkhcWQ4hUgs8G70vh6GJ8wzeidepgvK5jHqC /NphbFJXIwOpTn8a4Ssy9FF/z5YbZHZdOdQiHxkn2D7VW7UxSXPehJnXRMUeK+RgWvZ72S 1ktBeh+jchoYUVQN4caBkdRlAQUggPRmAeIMYLW0FVgOq0hImAZx3iAPg70nHeIrCTCe8t fQRSAjxjTnN+Gx4F8Na3yirYnQA002r897LuKqniCjlPSjjiD6h0i8L4uA5mQ8b16VDBup ZjCEqUaI32PWuSsixkEiGwj0DvbSNXKcgRNsNRILe/C7+yMxuqhDjsk0J8ypCw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=nmZLUNWp; dkim=fail ("headers rsa verify failed") header.d=jakstys.lt header.s=google header.b=InYc6zf1; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=jakstys.lt (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731647287; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=il2dP0UdJ9GJ6oVscXXkkx2COEEPi2dAvS0HW9AGDjw=; b=HXkR6NrMA2VzuK3c1NG1vb2VxXveaa6wzRRAUlUc/l4KWXswtOHzbY06wCByO37uUf9vxu I+vQavt8yUMO2pYwyEtHE8tdjip/4fa7yHBkyMhSnWIEyDyD/w5jhYCrimdSZYNKRiNBl+ wHir0UG3X9dlu9+ekSCZwscLIzGAws//COfK287ZwtDsolRqWiuIGY6wsmlSHlLw1EHatm EcPkoqaVWVdokL48DiLPotFSQ8QQvIy9EtKqoqCVVWn8+5fXWbV7gx9KgWsmlRCvW8LN5s vsSs0R9CaDshKH338qbn3e5Dz+RkNDR7ZYG/k18bl8Ht8XprnNcCCJvtbjua3Q== 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 1DA4880B69 for ; Fri, 15 Nov 2024 06:08:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBoYP-0004V2-4n; Fri, 15 Nov 2024 00:07:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tBawG-0007QB-Nf for bug-guix@gnu.org; Thu, 14 Nov 2024 09:35:23 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBaw3-0004tW-Be for bug-guix@gnu.org; Thu, 14 Nov 2024 09:35:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=il2dP0UdJ9GJ6oVscXXkkx2COEEPi2dAvS0HW9AGDjw=; b=nmZLUNWp7EL9I7v+RIdzdnQJ0DE8aT5yToQrhP5EAxdfvbxNAsgFAcxx0vd6VgO6eczqhaJmaoCVkUZvl+ut975MFd8MWknmOk6jbB93ovi6HS+VAV26kLQUOON2U+fcgSPml0wNxUQjTyK2w0oL6gsuQ7OYNpINhR8ti6AeA5ZStAAP3nhOhIh1+MGUNNx3/8IGkdlAkcfqfVafLwcfhV9Y4MDuZynn+CaPPlJe1qvYagjJRl21OY5XISkNUIT4J5r8QqDlq1L1ngSe5yFTYcxGjzJdyeHP+2vzaPcv9kjAGkNU84umiU+vTc8bpR0LtH/8zqEh2gZ8PAsUE//PNw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBaw1-0001bg-TI; Thu, 14 Nov 2024 09:35:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74217: Bootstrapping Zig with no Binary Blobs Resent-From: Motiejus =?UTF-8?Q?Jak=C5=A1tys?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org, Ekaitz Zarraga Resent-Date: Thu, 14 Nov 2024 14:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74217 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Hilton Chain Cc: Ekaitz Zarraga , =?UTF-8?Q?No=C3=A9?= Lopez , dan , Efraim Flashner , 74217@debbugs.gnu.org Received: via spool by 74217-submit@debbugs.gnu.org id=B74217.17315948556106 (code B ref 74217); Thu, 14 Nov 2024 14:35:01 +0000 Received: (at 74217) by debbugs.gnu.org; 14 Nov 2024 14:34:15 +0000 Received: from localhost ([127.0.0.1]:45642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBavF-0001aM-Rv for submit@debbugs.gnu.org; Thu, 14 Nov 2024 09:34:15 -0500 Received: from mail-pj1-f49.google.com ([209.85.216.49]:59497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBWSt-0004py-Qt for 74217@debbugs.gnu.org; Thu, 14 Nov 2024 04:48:40 -0500 Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-2ea08667b23so270700a91.2 for <74217@debbugs.gnu.org>; Thu, 14 Nov 2024 01:48:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jakstys.lt; s=google; t=1731577654; x=1732182454; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=il2dP0UdJ9GJ6oVscXXkkx2COEEPi2dAvS0HW9AGDjw=; b=InYc6zf1juOguFVApyQQiojpXgPLiq5MUEmUSJH2ga2xMtnKvP4mUuVxFq3ohDRX/e Os1U2sfQJuQfIE14eWoJGvgHLJGlyyM6TwUAB7HRe7QSGKjL0mUggKI0N0Dcxb2Gox6p qUvGIaZqNWWsZ+lJE5GQn4Tf88MXY5GW5JXO1bbNXusvC9Yhu270od8wJNfDaZfmUQZQ suPS4LkkLFJ6Ka5KWbU40VpMA6tZ+7WA6CUhbxyEM4/XQpoCq3W10xXdcqdckTSmKJEK odUoGmWSoXbSeRJuuM/cBm/E7JHUkD/dNJasojpAR2accJTQNAR/1d374dvueWNTDHTy IoSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731577654; x=1732182454; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=il2dP0UdJ9GJ6oVscXXkkx2COEEPi2dAvS0HW9AGDjw=; b=Dfznxv1I53xpoR8Vx5qS/wyYJFMcC9ltPBIGgNOhfQCt3/rnxTU2Xfo+B0IVtftz4I l+0P3yCQpWfzMimy4LgxTi9ebfxKp1+2LM90zGzWsynvHUH/adHeB2IsEFDlHeu0kWZ1 SrPTz4PPyW8c7rHusBMDl80C7Uwcz45ivyX+pZfzxk+hDsveedS+iV0S4n0ZoZBY2jvs ffawjiCOy+oaEex7OFWJAvjhwWxLDiZPQmsC8TapubDjOKA+3uxtwDBBWokudxsqzcnQ r2zPRil005v9ItNLjNybG61aKZaYmTotjk2e1pUTThBdXLMxNfta6QBUNfPycLD/ehah PZng== X-Gm-Message-State: AOJu0YxK6paxZo6Ze2ULOKAYi5Qp89PjoH82UMtVTRYASJuo8Faw3qbr cNLf2+B2q7TkCThvgdt/RidIF4PGC2wS4DDqAKGUf7kcWazzrRxUCAg1doC0XHY170fGyn4q0rY 3jJFKXp9G55m9Qt4O1W0AVyHJwiF6LIhgqSL+ X-Google-Smtp-Source: AGHT+IHB6JoDZzpBRvQ4m75JLjXFj8j49sv9hC7Ll7lHzzxcIszwODMPEhUn3S+MBzUVIWL1YUaPULHQAq02nkH/zaE= X-Received: by 2002:a17:90b:4b91:b0:2e2:b46f:d92c with SMTP id 98e67ed59e1d1-2e9b172023bmr29523110a91.14.1731577653944; Thu, 14 Nov 2024 01:47:33 -0800 (PST) MIME-Version: 1.0 References: <87ldxngjy4.wl-hako@ultrarare.space> <878qtmvh2i.wl-hako@ultrarare.space> <877c96vd3u.wl-hako@ultrarare.space> <874j4auz7j.wl-hako@ultrarare.space> <87v7wqtbjq.wl-hako@ultrarare.space> In-Reply-To: <87v7wqtbjq.wl-hako@ultrarare.space> From: Motiejus =?UTF-8?Q?Jak=C5=A1tys?= Date: Thu, 14 Nov 2024 11:47:23 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Thu, 14 Nov 2024 09:34:12 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Fri, 15 Nov 2024 00:07:28 -0500 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.27 X-Spam-Score: -1.27 X-Migadu-Queue-Id: 1DA4880B69 X-Migadu-Scanner: mx12.migadu.com X-TUID: JOJmP9rM/bSJ On Thu, Nov 14, 2024 at 11:22=E2=80=AFAM Hilton Chain wrote: > > On Thu, 14 Nov 2024 14:05:52 +0800, > Hilton Chain wrote: > I also have concern for Zig's relying on /usr/bin/env (Zig uses an ELF fi= le to > find dynamic linker, env is chosen for it's well-known). We have patched= this > reference, not sure if it will cause issue for cross-building Zig. This file is only consulted when `-target=3Dnative`. I.e. when it needs to compile for the host. If target is specified, it will not consult that file. Just verified with zig 0.13.0: $ strace -f -e openat zig cc hello.c -o hello |& grep -w env openat(AT_FDCWD, "/nix/store/sf6y4arqcm100rnnl3dhpg732i774zp6-coreutils-9.5/bin/env", O_RDONLY|O_NOCTTY|O_CLOEXEC) =3D 5 $ strace -f -e openat zig cc -target x86_64-linux-gnu.2.32 hello.c -o hello |& grep -w env $ Motiejus