From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2KzRCBpCOGc0VQAAe85BDQ:P1 (envelope-from ) for ; Sat, 16 Nov 2024 06:56:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 2KzRCBpCOGc0VQAAe85BDQ (envelope-from ) for ; Sat, 16 Nov 2024 07:56:26 +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=jokaptOZ; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=ZRMaFKdb; 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=1731740186; a=rsa-sha256; cv=none; b=RiVhQwMYiBUgP3uKSlVyCz80fs4Cnzun0+49CRs7uG8aTVSNbV1Z1bxT+BiT7vVmaXxf/N 3UuBPcaHO0FzMAdvoxSyj2npW3fmTtrhZZJ2IHBmIhcVYfaA/nE/vCUXvoF2PpDiw4htZM cg4E2LVV68kBw1+gPTLT5PhEwKpzGSpzQVJmXL7wxpKhaX1b+g/43ZAqXxxslDxrWsvHgY kB9bCSSNFEakC31j3gLMySpRNJ6uLMA7NZbEBBDHCUrx077M9GRzJu/9SE2ms2XhcRAAB2 tdXRebwcWk2kYDT2wE4aFqD8xbTVmphvGqD6wRc6nMu+eGTHvMPYF5Fp5X8nGw== 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=jokaptOZ; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=ZRMaFKdb; 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=1731740186; 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=QF7bgQjNZScgNdFR8A7Ajpb+5JaOVmIfd2D/ZayQbCM=; b=fOK80HelE+dy8bh4ZHSFnKjZIX/6VS8J10wdJ2srTNkxuZLCVleHXKJpqzsLTWs6G3YMx1 4Rp6boLGKUXeozzJfZGuvbC2j50V/dXkYbEHpLZX0vuB11mSw7emr8wb82yHdTwU19Lif4 /zcse4jGJipYw6Dx0eYTXQAqrjBQ1SQEXQXvm0Xpl2zw1Qo1NEcJPoB9TLAV03FXUN8s1i +3ivZW/Q/a458rQRG88xCYnAJPGLQZPRFO/GPSiFgP3yxPRYdhwe8XQ87OGSO1FeYAzhga hC8/JH0MkKUxV8Y7V9TcZTWNIa103Ba+CdQNUCaZ2X0K4VDN7e36CQElr5Gpkw== 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 E5A4A1D3B3 for ; Sat, 16 Nov 2024 07:56:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCCiz-0005mP-FH; Sat, 16 Nov 2024 01:56: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 1tCCix-0005mA-Bw for bug-guix@gnu.org; Sat, 16 Nov 2024 01:56: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 1tCCix-0002qk-2s for bug-guix@gnu.org; Sat, 16 Nov 2024 01:56: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=QF7bgQjNZScgNdFR8A7Ajpb+5JaOVmIfd2D/ZayQbCM=; b=jokaptOZ+MASQPL6AkCfSw6tK52ZE9suJu5nSd4yKhe0fx7lwoYDQDYvNnAcHXJ4sTZUCDn85TOw+Cl0Gfchnm2bPwAH9D7Ft0gPKQANZK6nEWEpS1vhXaLCCFkCfyXGuxv3kNrTtzQCQV3KkEehPpAszgf64H1YsoxibqhWtr/c7gndWfi1ZAqEU2GIP5clK7wc1hlAAJRJGy2/xD8TTr512PtHTX26cZE5pogWkmmtsehX/RmGsrkbcLamVF14nldoN5apDfSamTIL5ludSfmyOB00TSgBKNOpdLUgvIs7GK9c5NnE/iT+jgUCtPUgN/57S+1n8AEWWJS5sVC6iw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCCiv-0001Qs-UW; Sat, 16 Nov 2024 01:56: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: Sat, 16 Nov 2024 06:56: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.17317401145444 (code B ref 74217); Sat, 16 Nov 2024 06:56:01 +0000 Received: (at 74217) by debbugs.gnu.org; 16 Nov 2024 06:55:14 +0000 Received: from localhost ([127.0.0.1]:51853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCCi9-0001Pk-Kl for submit@debbugs.gnu.org; Sat, 16 Nov 2024 01:55:13 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:36650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCCi7-0001LZ-T2 for 74217@debbugs.gnu.org; Sat, 16 Nov 2024 01:55:12 -0500 Date: Sat, 16 Nov 2024 14:54:55 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731740104; 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=QF7bgQjNZScgNdFR8A7Ajpb+5JaOVmIfd2D/ZayQbCM=; b=ZRMaFKdbWuAM001coZOK193fkXzm8527V5Xm//QoYus01uNkcsZjDEA+3v0aRtnPiXUlmE gGPbXepafAuc7MpaQvSS2m/zSxJtrkImuHttWw9ply8Jq+T20wMkzwsF5yy1Cq3J7M+w+I Xz0v2zxBYmVCqoU8P+ZSWIFAuxHBEMgJO/p1n8de8U/xDOij+ma9kAu2lmP5UNLUSBb5Ej 9KZM4hhzx81PFLxJ/s8pQyqJrpX5AIUDM5XtJuDpxCVxD5layhpQ9ilfurVwYnuGm6rb1z YlV4BXCJwLpkiMgdLVLR9NZsJKwfIBdRnH/gNbbqgmvDRmZd3BgEW6+l3FRBlQ== Message-ID: <87iksn7jnk.wl-hako@ultrarare.space> In-Reply-To: <87jzd47enj.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> <87jzd47enj.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-Spam-Score: -6.33 X-Spam-Score: -6.33 X-Migadu-Queue-Id: E5A4A1D3B3 X-Migadu-Scanner: mx10.migadu.com X-TUID: dDFi7FtEq9Gf On Fri, 15 Nov 2024 22:30:40 +0800, Hilton Chain wrote: > > I have locally made the "use-system-paths" patch larger so that Zig can really > 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. Adding a file with content like the following and passing --libc to zig works, RUNPATH is correct and no need to set CC then. --8<---------------cut here---------------start------------->8--- include_dir=/gnu/store/dfx90sc16nphh6bd07sjyri6x4s51zni-glibc-cross-aarch64-linux-gnu-2.39/include sys_include_dir=/gnu/store/dfx90sc16nphh6bd07sjyri6x4s51zni-glibc-cross-aarch64-linux-gnu-2.39/include crt_dir=/gnu/store/dfx90sc16nphh6bd07sjyri6x4s51zni-glibc-cross-aarch64-linux-gnu-2.39/lib msvc_lib_dir= kernel32_lib_dir= gcc_dir= --8<---------------cut here---------------end--------------->8--- For cross builds interpreter path like /lib/ld-linux-aarch64.so.1 is used in output binary, I'll find a way to fix it. > Also for reproducibility, bin/zig is the only file differs and here's the diff, > I don't know about this part so I currently have no idea on fixing it. This seem to be an upstream issue, Zig is reproducible only on the same machine. I'll verify it and report to upstream.