From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 yFwOO6mTNWcbPgAA62LTzQ:P1 (envelope-from ) for ; Thu, 14 Nov 2024 06:07:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yFwOO6mTNWcbPgAA62LTzQ (envelope-from ) for ; Thu, 14 Nov 2024 07:07:38 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=rmAqGQf+; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=v29sDbQK; dmarc=pass (policy=none) header.from=gnu.org; 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=1731564457; a=rsa-sha256; cv=none; b=pa55RDj3hoX1ATyHkyMQ84T4qMyyiWu5CzSJtBodMtUBXyn0+8GuOq/SVZQfzqHWdALcum j5avQ+c+rVIkctakAAYUO6262KJ6MkjZ4TJIcvXYreRtFBYTm8p6exQPuGCBIzFZ5xHksL gp2rbi1gXInEmXvyXqX5smxeavRDOLUcUiocf2oi0odANmOx7kKiuP/DhMgP5Va5CFUGgN oGDZ0i5YkDJhG+5xMPUqc+ElsRZ3M39pQ+fMR1GNAYTKusNzMi5TaIvadBpSco/bmfBFxb v1C7UOD4CUh9dyNbgRzVQm5+ztBYfBp8Sem5vY0MySk7j4cAtaKBAVfDo3xE+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=rmAqGQf+; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=v29sDbQK; dmarc=pass (policy=none) header.from=gnu.org; 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=1731564457; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=RVP2p+CZrpOBKA+cBT/ThyzbEfIJYP0/6mCHb1d2nsw=; b=jD9/Z05peou22tSKo69s9wJsaMVEjOiXK5snQHxVQdhZmpAPj+9RcjcZwtKt100DkkmTp+ 0R4EHTtsyRzkOsw+jMwyH+9+pdUtB2r9SujAC+dX4XouhQovg90ahyOdu7m9Ug7AxrWlbO kyE4EyKz7fEL8UTVD5TN3eSmkkimi3xmSRHOV6yMaPhT2QZAOAkQn9/bkgD5Xr+TPKdpoy XDr3z6JRr5l86ZbFxhZagI+eZdw4bmJXu5KXRhJuf8A6mNyNYaLDNtrj0Mjq09q995nBIy Xo3osXliBs/5HERGo2Nhpe9lnS0Qo7DeloKOLdsRtWpIBp59abgH6kKAEuPnzQ== 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 C044C8DDB9 for ; Thu, 14 Nov 2024 07:07:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBT0T-0004x8-Q8; Thu, 14 Nov 2024 01:07:05 -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 1tBT0S-0004wv-6p for bug-guix@gnu.org; Thu, 14 Nov 2024 01:07:04 -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 1tBT0R-0005ou-GR for bug-guix@gnu.org; Thu, 14 Nov 2024 01:07:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=RVP2p+CZrpOBKA+cBT/ThyzbEfIJYP0/6mCHb1d2nsw=; b=rmAqGQf+p1w2CwsOeAXUbm+KSzVq+IxzhK4hp0huBFG3/jT5KPJ0wRWJ8FKWsLDeETT6PwioohT6hktxFi7GLd6VykjkNg1x1IBCsg3spZAkeyUOS77Ujl29Ry88wokr4My8Rx9J8/sQeX9Vxl+P0eVe2rTfWZQX849vi+NjrGdLCPbnQQ37dnsb0AWVV0hzpcXq/Hgp9HG3p7Ut1oGIDMZZRMvetFf8A6qZkbW54indSM+zQRMjQ6XV1DhlilPJRMlMObY3FoIEt4XsGPvnGcx09VLiGRsWzE4oJOmPXhv/4/erAhgaQ0hTY/hZFLtA04J/2KrzdjCbaVijrRuWvQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBT0Q-0002Ny-AO; Thu, 14 Nov 2024 01:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74217: Bootstrapping Zig with no Binary Blobs Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org, Ekaitz Zarraga Resent-Date: Thu, 14 Nov 2024 06:07:02 +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: 74217@debbugs.gnu.org Cc: Motiejus =?UTF-8?Q?Jak=C5=A1tys?= , =?UTF-8?Q?No=C3=A9?= Lopez , dan , Efraim Flashner , Ekaitz Zarraga Received: via spool by 74217-submit@debbugs.gnu.org id=B74217.17315643739063 (code B ref 74217); Thu, 14 Nov 2024 06:07:02 +0000 Received: (at 74217) by debbugs.gnu.org; 14 Nov 2024 06:06:13 +0000 Received: from localhost ([127.0.0.1]:44637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBSzd-0002M7-D2 for submit@debbugs.gnu.org; Thu, 14 Nov 2024 01:06:13 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:54128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBSzZ-0002Ll-8a for 74217@debbugs.gnu.org; Thu, 14 Nov 2024 01:06:11 -0500 Date: Thu, 14 Nov 2024 14:05:52 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731564361; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RVP2p+CZrpOBKA+cBT/ThyzbEfIJYP0/6mCHb1d2nsw=; b=v29sDbQKMd/u+6f0i8y7hbkl8Zr0OHdH4onOr/RQeXheRKpiU4+gTjvjjXtWRjl9/apKjP AltGfJKRMxZCft4+4iv2jjVL4sGTj0nLwh3SYkCna44h2PO1aPCvl7Mod0cYQGvuTsPsbu NKi831ebAdBJ8sFNR1DDglnlnC7ze0WHTX626kxLB2p2lGS+NFkJHEILCdHY0luDg4xcFI Hm3LDq7Mx3+UVQd+5PK5tqwpvZM0m0R63ka8shF4ZR2YA8kGSTce1XM2RZiD6Mnu6dk+SY fOkcfqZUSlSEkwJGZPJzAFJwln9xWW3lHwmltLFObksNJnv36eyRENxTsxIWQA== Message-ID: <874j4auz7j.wl-hako@ultrarare.space> In-Reply-To: <877c96vd3u.wl-hako@ultrarare.space> References: <87ldxngjy4.wl-hako@ultrarare.space> <878qtmvh2i.wl-hako@ultrarare.space> <877c96vd3u.wl-hako@ultrarare.space> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- 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: , Reply-to: Hilton Chain From: Hilton Chain via Bug reports for GNU Guix 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: 0.59 X-Spam-Score: 0.59 X-Migadu-Queue-Id: C044C8DDB9 X-Migadu-Scanner: mx12.migadu.com X-TUID: rzK3hyJ90q23 On Thu, 14 Nov 2024 09:05:41 +0800, Hilton Chain wrote: > > On Thu, 14 Nov 2024 07:40:05 +0800, > Hilton Chain wrote: > > > > I thought Zig was using lld as a library for linking. Just looked at > > src/link/Elf.zig, this is not true, it invokes ld.lld. > > > > I have more time today. I'll test this out and see if lld-as-ld-wrapper can > > also add glibc RUNPATH. > > Zig manages linking to libc seperately, if this approach works, we have to > keep validate-runpath? off for Zig. Reference to ld.lld can't be patched > since it's both native-inputs (for building Zig) and inputs (for using the > built Zig), maybe we can add a zig-toolchain (zig + lld-wrapper) later? ld.lld is invoked in 'zig clang' route, sorry for the noise. Currently I'm 1. modifying each-lib-rpath option of 'zig build'. 2. passing libc to linker. I'll write details on this when succeed.