From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 +HzwMM+YOWdLPAAAe85BDQ:P1 (envelope-from ) for ; Sun, 17 Nov 2024 07:18:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +HzwMM+YOWdLPAAAe85BDQ (envelope-from ) for ; Sun, 17 Nov 2024 08:18:39 +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=UmlURJjk; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JbxXSjww; dmarc=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=1731827919; a=rsa-sha256; cv=none; b=JyWT450W5hTW2R95rHKkpQ8DQItqssedFbaa7LUo6PFDKf2FWf7Iv12LoOtypgYne2sOSm oR4sSz6V6DVoauA2b8sEXscaBj4lIcNDHUbM5Ky72J9/r8Ywwf0m/jpm6A454ZPZOdDLg0 5pqULZQWd2HysHYzFjZ6o3vm1HPy6rqRgDXfcU8m7IqQpCpWNVuN4whSkcB7TBYDYzqrU2 a3mPm6xhhwC1DXBr9oIl6KHCNW/W+u/vCKagKJRmWLAtqBUHZZcFF6J41TdY5PC8BbMkWL esBV+lBG/Z7jgzEqCLDbnnT5eaGboZh5w0BsnsHe88XQWS5wA1qvAAiOPmt+Hw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=UmlURJjk; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=JbxXSjww; dmarc=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=1731827919; 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: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=ox8BmwxqZhXnQ7bKNkA7VvHD8sPS7Hy/YQQ6CfLdVOc=; b=OieHunhMCNXzNFnZkpriNpSsGqLoYgkPhfjE13+NTsC49YocDWbKTaQgUJFjXBYWieXaQr oIfTnSsrB4vGPA7ae5bKwAsbNgLbxEqNGYJei447RSqWZoknVbTalFgu+BfKcSCQ8kiV37 HYGP5Nzh/JjHovjIquq+RK9C82orq1QHUiD5xDp4vkelIIO/rPIj8A39BjNpl/wicW/hNz QaUvwOXyuguiYtluE3hzrP9Ra+YDJ6+0sQ0L+u7YBENqBPyqSWhHBvhjAD0n+Zzi93VXWx vWz/CuJjgG2H77sg4BnlATDukQlLusLJvOd/PpOc8dJeubqeFNnae++osuQvOw== 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 1E0E11BAD7 for ; Sun, 17 Nov 2024 08:18:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCZXr-0001Uq-BC; Sun, 17 Nov 2024 02:18:07 -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 1tCZXn-0001Tc-DP for bug-guix@gnu.org; Sun, 17 Nov 2024 02:18: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 1tCZXn-000084-4h for bug-guix@gnu.org; Sun, 17 Nov 2024 02:18:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:MIME-Version:References:From:Date:To:Subject; bh=ox8BmwxqZhXnQ7bKNkA7VvHD8sPS7Hy/YQQ6CfLdVOc=; b=UmlURJjknuhyJHFOmHyE3Fgp3rTVXJ5/OuOXLZMTZUJ+BSB9fz9D9+Lp5a4HqQrLEu4ESyUjbWiRV+UGPRF6Wwed2aiPLhojr7hxmhy12rjvZT4Aka2uRIKmCyjfyowvB+IiKL6FWUVTA3T+w2CPMPhSZYhwCzF4xcTjGgNb679cQvoA8jp9cyuSHqqcmQ1DYE/biUOGIl4EUnnX+Ohz9cSh9+/JJthl8eCEpWwH/w8Iqqvex7sodC9It/R5GnSInz73gd1un9uhnqGvqFw2e0UvU/FKNuP2B3dqy0KAg3bIDR3xXMwWevHvVf6+C+ZcAFODt4QyJTiAgv+K/DT6UQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCZXl-00020K-RZ; Sun, 17 Nov 2024 02:18:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74217: Bootstrapping Zig with no Binary Blobs Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org, Ekaitz Zarraga Resent-Date: Sun, 17 Nov 2024 07:18: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: Motiejus =?UTF-8?Q?Jak=C5=A1tys?= , =?UTF-8?Q?No=C3=A9?= Lopez , dan , Ekaitz Zarraga , 74217@debbugs.gnu.org Received: via spool by 74217-submit@debbugs.gnu.org id=B74217.17318278467652 (code B ref 74217); Sun, 17 Nov 2024 07:18:01 +0000 Received: (at 74217) by debbugs.gnu.org; 17 Nov 2024 07:17:26 +0000 Received: from localhost ([127.0.0.1]:55758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCZXB-0001zM-Vg for submit@debbugs.gnu.org; Sun, 17 Nov 2024 02:17:26 -0500 Received: from mail-wr1-f51.google.com ([209.85.221.51]:58812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCZX8-0001z6-My for 74217@debbugs.gnu.org; Sun, 17 Nov 2024 02:17:24 -0500 Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-382442b7d9aso90274f8f.1 for <74217@debbugs.gnu.org>; Sat, 16 Nov 2024 23:17:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731827776; x=1732432576; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=ox8BmwxqZhXnQ7bKNkA7VvHD8sPS7Hy/YQQ6CfLdVOc=; b=JbxXSjwwzYWdklJ8vpL3ew3vinhZuqwt94UJ2D4FWyUxg1NXbcbApCKMr5V7n/hp5n kRcssERwGBcyUi6mU7sTHN7EjTIgAN0RL9P/d7/58hZh9L7ov2R03zP7QK/ZAgPykFIy dyEPFi+3S8EeUdsTTyVA/mRFU28AGOCAgJ0fbxRvadW75KPxLFy5MDGd8HWlam0s4xQR pnPnqnyracOz1ISvgB9tvKVEwzwF+4crEU4Z4ZhLCygAkTzLeWgKo6Pc+BCEwJW87wJK das9j4k/A1WmTKGxaTo6/kzfIw0ioEeDRcrj81CLn06zgSwcWuzsCOFHX1v3iRvvgX4O U20A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731827776; x=1732432576; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ox8BmwxqZhXnQ7bKNkA7VvHD8sPS7Hy/YQQ6CfLdVOc=; b=T/dlwyZ+k48f32zFWDVq/af/3dQGnrFx2d3QkZQpigaPi7H7gpX8NRgC5N/xXX/fsc EiPEcs+IX2hszcBoxvxTMWp5iogqlCOJXxWoZFf/QoSVsPwwAtwxuK6PBXGelp35dlt0 zqKl0lcp/MryWQqy3jDEm30vkYb0jfUqu5vhg0MLxX8zhQ94MYMswuQXoA/r0fPnz1wR hNlwuXKG1fsAKmGWTV3LXKIITMAiOqKxQqEcPWEpQlgPIduNLWAJolLxLgoHugP2tFwF nKxj/FG/09TL9BIuKtJR68Rxkuv6Jhl5hpeFyl6/QgzjPi/CZEt2zirv/5LLb6AfbuMD 1FIg== X-Gm-Message-State: AOJu0YxVi7IDCm753CFD8vABF0IQJ9XrBQwfrCpZ8uQvWX14DNw3SV5O yuqMaBm8Ud3whSGwkrcRRMhi30nhOyR47RB6zroGAoH98lSCNwZc X-Google-Smtp-Source: AGHT+IHg1LNhUbf2DOfOX0L+PyCVLk29AJ+E2QFpxIm8PNun2aAXQQkorO8GRxJ1qM2SEsqa/xatXg== X-Received: by 2002:a5d:59c8:0:b0:382:d0b:5dc5 with SMTP id ffacd0b85a97d-382258ed412mr6094593f8f.3.1731827775527; Sat, 16 Nov 2024 23:16:15 -0800 (PST) Received: from localhost ([31.210.180.118]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432dac1d85fsm110077255e9.36.2024.11.16.23.16.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Nov 2024 23:16:14 -0800 (PST) Date: Sun, 17 Nov 2024 09:16:13 +0200 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Hilton Chain , 74217@debbugs.gnu.org, Motiejus =?UTF-8?Q?Jak=C5=A1tys?= , =?UTF-8?Q?No=C3=A9?= Lopez , dan , Ekaitz Zarraga 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> <87jzd47enj.wl-hako@ultrarare.space> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GjaMJzC3QT95AqDR" Content-Disposition: inline In-Reply-To: <87jzd47enj.wl-hako@ultrarare.space> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.98 X-Spam-Score: -5.98 X-Migadu-Queue-Id: 1E0E11BAD7 X-Migadu-Scanner: mx12.migadu.com X-TUID: P+2vKKKr2yHA --GjaMJzC3QT95AqDR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 15, 2024 at 10:30:40PM +0800, Hilton Chain wrote: > 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 beha= vior > > 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. >=20 > I have locally made the "use-system-paths" patch larger so that Zig can r= eally > honor "CROSS_" environment variables. >=20 > 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... I= t's > dynamic linker path, I'll look into it soon. I found a patch after the 0.13.0 release that switches from hardcoding pkg-config to using the PKG_CONFIG environment variable and falling back to pkg-config, so I backported it to 0.12 and was able to use that and guix's regular pkg-config package. I've added those patches to the wip-zig-bootstrap tree. We now have a couple of phases that are before the 'build phase, do you think it'd be better to consolidate them into a 'configure phase? There's no 'configure' script to run, but it does do a lot of preparation before the actual 'build phase... --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --GjaMJzC3QT95AqDR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmc5mDoACgkQQarn3Mo9 g1EjVg//ZNxsbIucSXqCBp2nFQQdw5hBU8FA4jrS5AsZ2ZYBxVBV70/h99EX1AkJ LLyOvBlA0dmK8pQQRtzmVJSk/fNoTW3nmJ3VwsT3NZtNG94+CZcLnIzxtJLcFqBu hpC2+v8s1r70HnHUVZyd/jNo6w8JHouk0X8TywFC1C0mNqPlxckRjYhb7SyBbogQ N0v2LdFOFf8D5bZofe6bnTYpNEP+JLsx68IiU8ujQMiCOSYrQvEZJVxRoJ3ZWXao sQKGCwY0te53rZJR3R/fr2YYHhB7VRCYkCQa/m67ZWsdur/L2yQdCoVNq0UYSKOv eYGbtXL7T+LY1gtzF/jR8PWidIvnMCQ7qocOrElZdbqWvq9IHPU5t4TwYRaRbwNA htg1BQQRYx1pXMCG7w/BvQh/8UmmPnK1xF6jk2RCFBbDn1P+UYhnZ4GmAP2oOVfe OuKwn5WSVpBl7B3pAgHiluKDE0H4GFFn3Wlupd2Dy8yxDrdt+OBrG1a9V4OxE//s k+tCkuIDEsj+hdPVIA5LJ4bzzldqOcAPZV2pUCusBBBwtxh2jdFyGScCmYfaAc2v ns71zbHBHn2ptG0bN0cfEXpqtgI/tsszhVe74AqtBq95SwoyTRu7rOoH7GIpNvui WZ1iVo+CP3OpuGeUvyMJIoEHqje8Y5OUdPK5tjF2f4jgTOswYIk= =xUP5 -----END PGP SIGNATURE----- --GjaMJzC3QT95AqDR--