From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YDHrGYNbN2c81AAAe85BDQ:P1 (envelope-from ) for ; Fri, 15 Nov 2024 14:32:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YDHrGYNbN2c81AAAe85BDQ (envelope-from ) for ; Fri, 15 Nov 2024 15:32:35 +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=upiYhfhm; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=URKTIO3Q; 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=1731681155; 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: 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=JqX2HH6RzWQu+/eIIZexO7kxZaKPeRFRramCwsiLvH8=; b=FLhv9Zzd11QuOKazNtSLpZE+uUssICj4TBRS2DARh9Xvbt2CPGT9xoe/OtshmiW9SlUnB3 W1dryERkVORs8TcTv6s0+ii7e0KudGQ4fLzI7lCmFtJdUpXKnk3jylE3eslIteTa9FlAVx EUwDTfPe5D5r51GVL6EnYcpOcTpk3lEnvL7wB4wbQKzzM60UeSp4SG3aSi1lHeAt+V3NMN Cs23h7+/AFSXi/JJ4MLIqvbTiehtJeL1alNaIfNY7peJIhmlJY0xl7v/9yc6G21oX7BFtQ FtJ6NZCl0aQudYZv8YuaG/vG/cL37pz3d8nBuc7wbneDv8W7oWcaRIIFFBqgog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731681155; a=rsa-sha256; cv=none; b=JHhLWocd85sNmpD5b2gaAvtKZ5/ADScKRbZRi+dab66YwtAaYZHy74PPltAN378hFFXnwd h4oINPmPwGlTKVehlsFFl+Op2xb45nJhgIvYGCkkuq9u1Ep6RR3sOriA7ftalVNldktcbh CDKlP/2BPA1Wfux/52EL2SR+JOfDTn90Mh197pnovbnyRIMJRGqsPyNvdm2DoEGLMsKwBn BJxk7VTdBf+RIUIjoGM+a0CUM9W54fA9/QMa1B8nqsCxC2oNb5hmL/FD9tTI8PbYBTVy2k mUtr3EaSLc3GeJG1yyV6cAOmMutxJ5t965KMj9P9lZRVYC8f9QKVhT1pXJi8IQ== 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=upiYhfhm; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=URKTIO3Q; 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 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 A33535BAF for ; Fri, 15 Nov 2024 15:32:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBxMj-0000k4-MU; Fri, 15 Nov 2024 09:32: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 1tBxMg-0000jg-WF for bug-guix@gnu.org; Fri, 15 Nov 2024 09:32:03 -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 1tBxMg-0002H8-NT for bug-guix@gnu.org; Fri, 15 Nov 2024 09:32:02 -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=JqX2HH6RzWQu+/eIIZexO7kxZaKPeRFRramCwsiLvH8=; b=upiYhfhmVbYZ/kclq5fn1UZD2t0YWo4VLz6D0XQRRH+WyJMQVz9EMrmSmzBlI3m/EdMWPDF3RidTlgU9D03D8Eqh8/ejCWJV87dbUkZV+mf7lbsxPJUcMejRnrFa1CIuX9cAdS7T/2zwZkC5KNOdDsOoLWjl0x3efMcyUpXxEmrnFJSIF7VYToTK+6m6RlSz8HQtyznb8d0yVWV4bp0d54LKipanlvl+OpcfulZDxA/JWbCnGwx0IRyUc3KW9EynfwAMm5qTv653jt7FOd3FMzXcvheiod6O7507QrvTVPBLIq12ObCHIiN47k8ifxfeBEJqaDYiOIT3BMuqdE2rbA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBxMf-0007io-Mg; Fri, 15 Nov 2024 09:32:01 -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: Fri, 15 Nov 2024 14:32: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: 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.173168106929617 (code B ref 74217); Fri, 15 Nov 2024 14:32:01 +0000 Received: (at 74217) by debbugs.gnu.org; 15 Nov 2024 14:31:09 +0000 Received: from localhost ([127.0.0.1]:49095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBxLp-0007hd-7S for submit@debbugs.gnu.org; Fri, 15 Nov 2024 09:31:09 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:33914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBxLm-0007hG-0x for 74217@debbugs.gnu.org; Fri, 15 Nov 2024 09:31:08 -0500 Date: Fri, 15 Nov 2024 22:30:40 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731681057; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JqX2HH6RzWQu+/eIIZexO7kxZaKPeRFRramCwsiLvH8=; b=URKTIO3QnLt45vhwTlzuoDazEm4NBP2hwoqJmKf9UyZc1pTEnfb71D+qQxmebPv31pzHxQ UVXeJLMA80aLVwY2BeR/M5/AKOk0IRbBJID3xjUP3baafiaj091quJAFemqSVKjlNNPOT1 j9xAzpkLMoRUpIxCHQYRQw6AWNLz/jtkCIn7KK01oTyfn3iFph3soW1KlpL6ZYVz5P8Kwq KQ4QJ4gJsBBDyQPJNPf2D+nfeG+fxItmhpoorW27XoLzccFNHVvlI1osDDN+k6XMZ8OQ9S 1yvI7iaSfm6fzvde0wVPGK1L1wCX6hYnm2FfztaeIQqx3WkKKcnhgk8DzSODdQ== Message-ID: <87jzd47enj.wl-hako@ultrarare.space> In-Reply-To: <878qtl5g55.wl-hako@ultrarare.space> 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> <878qtl5g55.wl-hako@ultrarare.space> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: -5.82 X-Spam-Score: -5.82 X-Migadu-Queue-Id: A33535BAF X-Migadu-Scanner: mx13.migadu.com X-TUID: 2dqtgUAWvmJc On Fri, 15 Nov 2024 11:29:10 +0800, Hilton Chain wrote: > > Good news: Thanks to this diff, I know how to add libc to RUNPATH now :) > > Another forced push, I have ensured consistent behavior for > (CROSS_)?LIBRARY_PATH and added libc RUNPATH without restoring the behavi= or > passing '-lc' to linker. > > Who said not going to implement a ld-wrapper within Zig? :P > Fortunately it was already there :) > > BTW, adding pkg-config to native-inputs works for ncdu. I have locally made the "use-system-paths" patch larger so that Zig can rea= lly honor "CROSS_" environment variables. The next issue is cross building with pkg-config. Zig only invokes "pkg-config", but we don't have a "pkg-config" with search path for target inputs. I can add a pkg-config-for-zig to workaround this, and then... It's dynamic linker path, I'll look into it soon. Also for reproducibility, bin/zig is the only file differs and here's the d= iff, I don't know about this part so I currently have no idea on fixing it. --8<---------------cut here---------------start------------->8--- --- /gnu/store/gqdi4drfn3js5cwgfmlpkyfm2xf3l5b0-zig-0.10.1/bin/zig +++ cuirass/gqdi4drfn3js5cwgfmlpkyfm2xf3l5b0-zig-0.10.1/bin/zig =E2=94=9C=E2=94=80=E2=94=80 readelf --wide --decompress --string-dump=3D.ro= data {} =E2=94=82 @@ -77024,14 +77024,16 @@ =E2=94=82 [149be0] +=EF=BF=BD& =E2=94=82 [149bf9] )& =E2=94=82 [149c12] % =E2=94=82 [149c28] VO$ =E2=94=82 [149c40] D=EF=BF=BD( =E2=94=82 [149c59] >$ =E2=94=82 [149c70] 8=EF=BF=BD% =E2=94=82 + [149c94] ; =E2=94=82 + [149ca0] ; =E2=94=82 [149ca8] ' =E2=94=82 [149cb0] uespemos=EF=BF=BDodnarodarenegylsetybdet =E2=94=82 [149cf0] p=EF=BF=BD=EF=BF=BD =E2=94=82 [149d11] O' =E2=94=82 [149d21] 5& =E2=94=82 [149d31] f& =E2=94=82 [149d40] SJ' --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- --- /gnu/store/466cm9xpjqg80iqracj4qirsrdha1rnk-zig-0.11.0/bin/zig +++ cuirass/466cm9xpjqg80iqracj4qirsrdha1rnk-zig-0.11.0/bin/zig =E2=94=9C=E2=94=80=E2=94=80 readelf --wide --decompress --string-dump=3D.ro= data {} =E2=94=82 @@ -64905,14 +64905,16 @@ =E2=94=82 [ 5ae48] xpnt4win2kvistawin10ws2003win8_1win10_th2win10_rs1wi= n10_rs2win10_rs3win10_rs4win10_rs5win10_19h1 =E2=94=82 [ 5aef0] =E2=94=82 [ 5aef8] # =E2=94=82 [ 5af00] % =E2=94=82 [ 5af08] % =E2=94=82 [ 5af10] & =E2=94=82 [ 5af78] celfhexrawmachospirvdxcontainer =E2=94=82 + [ 5afc0] ; =E2=94=82 + [ 5aff8] ; =E2=94=82 [ 5b070] E =E2=94=82 [ 5b0b4] ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz= 0123456789-_ =E2=94=82 [ 5b350] =E2=94=82 [ 5b380] @ =E2=94=82 [ 5b3e0] =E2=94=82 [ 5b420] ] =E2=94=82 [ 5b5e0] % --8<---------------cut here---------------end--------------->8---