From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id aN4rM2JNNWemfwEAqHPOHw:P1 (envelope-from ) for ; Thu, 14 Nov 2024 01:07:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id aN4rM2JNNWemfwEAqHPOHw (envelope-from ) for ; Thu, 14 Nov 2024 02:07:46 +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=N3J7FHGr; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=DlnPRXZw; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731546466; 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=Cxz/RF6uH95dC8RBe1yNe+ydRNF57WE1TWauEime/H0=; b=pE5zyUL+1O4kvrLsBrpBvCENvGpL+J+1f1cBceMGpBpJ1doSLBViERdPGu4Vsodpg2Ok3K rHMWekaEdo818ulChdfyO2PX7lUSVU45DDt5gAmScibWSKcm1WLajTlX3yZI7YsogpJA0v R7zM8NfKpacsqL7ZKYxqUC3DYzNL2ZrMt4cOJEh7KrWZvgNZDT4l3qQ/3xgVoOvrFCbGmn dlMbnPDxkN9htOLG63i1WjdkXS7706Mtpepdf9mtzisl+Z4Gs+XDmkMaPwl3uq/EOJH7Nl JQoJiPIZRCl8BSfco6P3bYDRKnMmCzqBOdFMaDhh3NGlF5kCK8Si/dWjlSx8og== 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=N3J7FHGr; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=DlnPRXZw; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731546466; a=rsa-sha256; cv=none; b=nM2fPr29QRVYjnJR5p9OiQD5jaijTur1R6YMdudh1lLc8nduFU/B5eHA7Xf+i3DpuKWvwR KL8KrqbyaByJNe8lQbFwcpH0liL8x8DsytPks3Tg/5jTFhlhzM7ITeKRv1dbnmOAJ3ElsJ YcVrSKFFwHtDRA/JX3pCsdhgnOzNbXoMCyq9totAqsJh3tjvULKCKdnhnO9MnEpm5UuTZq XYQ6Xr/9ZVCZqPAw/3yiFpDD0R9lHnW6aQwHg8QnlNjC7kQbB706nADrh08g2m29TKraTP bKkhssV1+nLHze0MV+omx/JGsf9FjCqYIPe1mMtwnR/YOOpOipTYiNWWF7zAkQ== 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 6B69C8E1CE for ; Thu, 14 Nov 2024 02:07:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBOKF-0006rp-BB; Wed, 13 Nov 2024 20:07:11 -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 1tBOK8-0006rQ-SJ for bug-guix@gnu.org; Wed, 13 Nov 2024 20:07:05 -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 1tBOK8-0001A5-IX for bug-guix@gnu.org; Wed, 13 Nov 2024 20:07:04 -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=Cxz/RF6uH95dC8RBe1yNe+ydRNF57WE1TWauEime/H0=; b=N3J7FHGrUuqcF19YC/ej1D7fZN33edCIG8QEtQQEMPZxYh4UUZL5fIvRoM0kAU/GCVJMtlL+kdN1MQHO62HPDylDdFkHKniuW8Ep1ILnjn4/kFpAsrGODi2XHj5YtNlZfcwxI5fxZGa27e59adc0GNGjRia/7gvV/MP92JcDtSVHdS7ecag+5Dc1VhN6zbd5+ny1SxEsXxw9t5dhcHh+JRv7/sKcMqSKN3XuphrZ15luywFwXailXZr+lpXITY7GPlvP7+2Khw/h98PF0fzOVrEYE1m2qJMEYPFW53xP90wf/qAgOqnS+r8Sj8DJYUs8LWNDN/m5w7TISz9ITR/hww==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBOK6-0005Ed-KJ; Wed, 13 Nov 2024 20: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 01: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.173154636220035 (code B ref 74217); Thu, 14 Nov 2024 01:07:02 +0000 Received: (at 74217) by debbugs.gnu.org; 14 Nov 2024 01:06:02 +0000 Received: from localhost ([127.0.0.1]:44208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBOJ7-0005D0-LK for submit@debbugs.gnu.org; Wed, 13 Nov 2024 20:06:02 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:53150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBOJ5-0005Cj-BV for 74217@debbugs.gnu.org; Wed, 13 Nov 2024 20:06:00 -0500 Date: Thu, 14 Nov 2024 09:05:41 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731546351; 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=Cxz/RF6uH95dC8RBe1yNe+ydRNF57WE1TWauEime/H0=; b=DlnPRXZwRoOjdo7a0ozkAIkarssdlZcqHv+PCmyqUx+XQEX/hk5JKr111knc0vFko/ufoi ndb/WWh5NrfMD7L1gHlWzIT/LVuVPnDc5tYs54EPOkIQqtTkrQne6V6PERtgBWbw4vVO1P JC79eo2LijrYAEC1J2UJhXoRyTcv0Sxr3oQbBbV5mR3O8PcoqQIAWlYrvZMe5X+5xhIZEX dxmtbj9Qy0jzzC1KnlS0q0efOLBwUZ60pY+OkV5mWePrzp/tVHqFgQblTorYE6XO1Dvz0Z qm6sUbmTKz1jzkpQs3ru1uzmBOG7MuPSPdjkMURAonLPxPIfDxq4EAvNT863ag== Message-ID: <877c96vd3u.wl-hako@ultrarare.space> In-Reply-To: <878qtmvh2i.wl-hako@ultrarare.space> References: <87ldxngjy4.wl-hako@ultrarare.space> <878qtmvh2i.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 0.09 X-Spam-Score: 0.09 X-Migadu-Queue-Id: 6B69C8E1CE X-TUID: dx0DkqyAaP5t On Thu, 14 Nov 2024 07:40:05 +0800, Hilton Chain wrote: > > On Thu, 14 Nov 2024 02:10:44 +0800, > Efraim Flashner wrote: > > > > > I think this is due to Zig's implemention of its own linking logic, which > > > bypasses our ld-wrapper. > > > > I wonder if switching from lld to make-lld-wrapper would make a > > difference here. > > Thanks for mentioning! This should do the work! > > 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?