Received: (at 74217-done) by debbugs.gnu.org; 31 Dec 2024 15:40:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 31 10:40:37 2024 Received: from localhost ([127.0.0.1]:36533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tSeMG-0001qj-SA for submit <at> debbugs.gnu.org; Tue, 31 Dec 2024 10:40:37 -0500 Received: from mx.boiledscript.com ([88.99.243.112]:38216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tSeMD-0001qZ-UL for 74217-done <at> debbugs.gnu.org; Tue, 31 Dec 2024 10:40:35 -0500 Date: Tue, 31 Dec 2024 22:49:54 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1735659602; 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=jy7AWHaKgmFQK2Tzp7UICSgBVz/MaX+sD1Z17KnJ3K0=; b=P8X61FiPWWdY0uSmj+Qz9QOdUjX7FAIGQwD38PoA4ccM+7vi9creUqS17QZd/xxhITL9II Wr6ndaLn+rMn23ZJNrN04dMKCgKcFEDORa/AQQpR6YBL7F7y00whhXDVplc5xDu+YyLyX+ INlmA8/Awl65LESmDOn5dIOfrnrtFrN9AcPC5dDfzErcWvvGBthErauzpsflQUnT7B0KzR i4BBNKo8yFPFDw0Nay53NDqNw+7z7R+Yv7wR9ujP031fPSsRXceo2E5cn5J9XLBSUNdi2T GACjTe2lOPZfI3uEoBvQuTChlKedG3Isel/AbtPzRl8e81osGbIBbhADrmD20w== Message-ID: <87v7uzhppp.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217-done <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87a5djipk6.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217-done Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu, 28 Nov 2024 19:08:09 +0800, Hilton Chain wrote: > > I think this is mostly ready ( again :) ). If there's nothing else missing, > I'll post the current status and call for packages to test the build system on > guix-devel. Applied Zig bootstrap as 40b9f33066...42e32d52c3. I'll delete wip-zig-bootstrap, move Zig libraries left there (currently unused by other packages) to zig-team branch and continue the bootstrap chain on zig-next branch. Manifest for all Zig packages is available at "etc/teams/zig/zig-manifest.scm". BTW I just realised that on reusing procedures from Guix, `guix repl' is more convenient than `guile -c' in terms of load paths: --8<---------------cut here---------------start------------->8--- echo "((assoc-ref (@ (guix build zig-build-system) %standard-phases) 'unpack-dependencies))" | guix repl -t machine --8<---------------cut here---------------end--------------->8--- Builds on ci.guix.gnu.org is a bit slower than my estimation, but hopefully we'll have x86_64-linux substitutes on 2025-01-01. :) Closing.
Ekaitz Zarraga <ekaitz@HIDDEN>
:Hilton Chain <hako@HIDDEN>
:Received: (at 74217) by debbugs.gnu.org; 7 Dec 2024 14:08:10 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 07 09:08:10 2024 Received: from localhost ([127.0.0.1]:46044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tJvTd-0007Bg-MD for submit <at> debbugs.gnu.org; Sat, 07 Dec 2024 09:08:10 -0500 Received: from mx.boiledscript.com ([88.99.243.112]:54334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tJvTa-0007BS-7C for 74217 <at> debbugs.gnu.org; Sat, 07 Dec 2024 09:08:07 -0500 Date: Sat, 07 Dec 2024 22:07:22 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1733580454; 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=3nEDKlEk0SQY9aitVa25+GDw6KND53NspWDBb3HSloY=; b=VN+p5X2Z8aTPPDB5XQ6bModTJUItvLEx9XztHyPh2K8KdY2UB2rt7lF9mtdVHYga3D/+NO PPj9X91XHZlyp7V7wOcK5+s7lXrUvQsePKuy97/ygZH9OGrgibEmZU3mMNkpFqc238G1dr Q7PEeFBFzhFyK6dv9jcuR39Zo6z6VhXmcJy8ow6FcIEAZg2H8qjeZSLTa/tX0f8I6D3czD QLwTuOzgLj6gnw61CaabJQIsRSCn2mhfiKzmn9nWQE5acprupPkrWVfN/xFMZUYWmRLK9B +0u6rgN5dWahTK6BqO9LmigK6+OaHsXdrbXVNP3aXNZAiYUFnSGJRvVjTgA/Vg== Message-ID: <87o71nh9id.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87r06mprul.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> <87h67mbrdy.wl-hako@HIDDEN> <87r06mprul.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu, 05 Dec 2024 14:27:14 +0800, Hilton Chain wrote: > > On Mon, 02 Dec 2024 13:11:53 +0800, > Hilton Chain wrote: > > > > On Thu, 28 Nov 2024 19:08:09 +0800, > > Hilton Chain wrote: > > > > > > Made "#:zig-inputs" a private keyword, its value will be passed to inputs like > > > cargo-build-system (the build system doesn't extract the whole closure for > > > now, this can be added in the future depending on how Zig ecosystem develops). > > > > Just thought if we can avoid using #:zig-inputs, it turns out doing so is quite > > easy: > > Added two procedures producing origin snippets in (gnu packages zig-xyz). > > 'add-build.zig.zon' for generating build.zig.zon, currently unused. > 'rename-zig-dependencies' for replacing #:zig-inputs. Moved to (gnu packages zig). > I'll try to make unpack-dependencies phase reading dependencies from > build.zig.zon instead of input labels so that we can have more specificity. Changed install path for Zig packages to /src/zig, added a GUIX_ZIG_PACKAGE_PATH search path (currently only in Zig 0.13 to avoid rebuilds). Phase unpack-dependencies is changed to: 1. Find dependencies in build.zig.zon. 2. Find inputs in GUIX_ZIG_PACKAGE_PATH. 3. Per dependency, invoke "zig fetch" on matched input ('^dependency[-.]?', this pattern expands available specificity to minor version, in case it's unavoidable to propagate multiple versions of the same package into build environment). With above changes, it's possible to reuse dependencies packaged in Guix, for example: --8<---------------cut here---------------start------------->8--- cd $(mktemp -d) cp --recursive --no-preserve=all $(<...>/pre-inst-env guix build --source zig-httpz)/. . <...>/pre-inst-env guix shell --development zig-httpz <...>/pre-inst-env guile -c "((@@ (guix build zig-build-system) unpack-dependencies))" zig build --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- cd $(mktemp -d) git clone https://github.com/karlseguin/http.zig && cd http.zig git checkout zig-0.13 <...>/pre-inst-env guile -c "(eval ((@ (gnu packages zig) rename-zig-dependencies) '((\"metrics\" . \"zig-metrics\") (\"websocket\" . \"zig-websocket\"))) (interaction-environment))" <...>/pre-inst-env guix shell zig zig-metrics zig-websocket <...>/pre-inst-env guile -c "((@@ (guix build zig-build-system) unpack-dependencies))" zig build --8<---------------cut here---------------end--------------->8---
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 5 Dec 2024 06:33:56 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 05 01:33:56 2024 Received: from localhost ([127.0.0.1]:37852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tJ5Qy-00028k-67 for submit <at> debbugs.gnu.org; Thu, 05 Dec 2024 01:33:56 -0500 Received: from mx.boiledscript.com ([88.99.243.112]:46924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tJ5Qw-00028c-Nf for 74217 <at> debbugs.gnu.org; Thu, 05 Dec 2024 01:33:55 -0500 Date: Thu, 05 Dec 2024 14:27:14 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1733380403; 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=8wNZ45utmHjl+7E+k75t+8ckXdx8skcaypdR9aIQyqU=; b=I0jR1PyJgs9s1XwNR1JudegMhV9j30kGVg1whH/t52FBXPfGffXwZvte7ff9B1tTrrICHi joYqLviwNyMpGePzjcNnk70AihqO0wDs+hyZRrzTnrqEkRPRlGXsym1r2ElOtlQQ/D8Y3b Ewt0bHDhmdWH0KIm6pLFwbHFR8PXW4ypIfOOP694+XQZe2nqbdpRow8oiGVrIlO5HXlJMZ kKkSvGixxfoy/X0ipoEj/WRrcMEwQ5qMpLdNF3e7gOt4YlmGsiEr1rNZCj7yGQ40O9CnEC A7tykJ6jH2+1a85r8i4ydeWjHjVaochP0q/CMDLs6S1CTrXTaX7D7FTcEOdb1A== Message-ID: <87r06mprul.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87h67mbrdy.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> <87h67mbrdy.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Mon, 02 Dec 2024 13:11:53 +0800, Hilton Chain wrote: > > On Thu, 28 Nov 2024 19:08:09 +0800, > Hilton Chain wrote: > > > > Made "#:zig-inputs" a private keyword, its value will be passed to inputs like > > cargo-build-system (the build system doesn't extract the whole closure for > > now, this can be added in the future depending on how Zig ecosystem develops). > > Just thought if we can avoid using #:zig-inputs, it turns out doing so is quite > easy: Added two procedures producing origin snippets in (gnu packages zig-xyz). 'add-build.zig.zon' for generating build.zig.zon, currently unused. 'rename-zig-dependencies' for replacing #:zig-inputs. I'll try to make unpack-dependencies phase reading dependencies from build.zig.zon instead of input labels so that we can have more specificity.
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 2 Dec 2024 07:41:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 02 02:41:12 2024 Received: from localhost ([127.0.0.1]:54112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tI13Q-0007OU-FN for submit <at> debbugs.gnu.org; Mon, 02 Dec 2024 02:41:12 -0500 Received: from mail-wm1-f41.google.com ([209.85.128.41]:48472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <efraim.flashner@HIDDEN>) id 1tI13O-0007OC-6k for 74217 <at> debbugs.gnu.org; Mon, 02 Dec 2024 02:41:11 -0500 Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-434a8640763so32562345e9.1 for <74217 <at> debbugs.gnu.org>; Sun, 01 Dec 2024 23:41:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733125204; x=1733730004; 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=9kVNuD2NdT/2TPY0cPuJc654Q3xC1QKHcFIwxYZEuDI=; b=EXUBjfgee14jfHSJu/gZO2QGTI1z/Z4vkW8rDAnS1NAu7MW4YefDw0llp5o0A4efsH rXWBgwW7aCKZoknxC6K7t7GpwJyhROfN+vUk6108TkDD4hM8JK0T9jMGjaKrYF9wNb2k jdyqIYM2h5c4RGEzspyAhdy0b34tk+1/ZrEOZnxl1pj+sbZxBhJoK6tTeBpMVPx3yFBu ifg+RETbkfTyXlBV/5H4ftM8c0BsuGT+4HkQ+x5K+2UGEGxqFyzfH5X+SqZdh2HSwj+E BcTJtc8axPKWz6zEF0DHWI13yuIJogqgoZS/lhPGIWLarXL++HKY1WrgN1+Ek3jx89kp BE0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733125204; x=1733730004; 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=9kVNuD2NdT/2TPY0cPuJc654Q3xC1QKHcFIwxYZEuDI=; b=TplghTD9Co/bZyGHi7dBOfy+mQwOqcOSQxCARKWH4nLrw7idQIppK5A1HbDE2EZMM2 ettBaAiZcNPJrykiAMxXYr/IzKxGXDXwv9aLkkHJgN3yAT0X6Oq9gJioiTZKrUMUInvf RSBHkQtyVAyLp7P9fp75qv4ZuP5Nw9CrdkkqTlfx7jR9dX+M6f0QHzuWE0DKXX0tmaGm 2M7GKU4Wc0mvk/fTKXY9pZ6aaOs9xEX1Hms/AmAsOu0Re3C432xrJxKq+KEx4MRWy9m0 pnMQfr/M+/ISNt+0NwLzOanA7yJ3sqZZgjxMEkwoYa305OwsWDA/RGZ4gUy2fms1iRwz otzA== X-Forwarded-Encrypted: i=1; AJvYcCXZpUJt4j2RKuqLnydZ5m5at2WhzC07mT9fYTr5ZhU+7/z1VXmIYh++BI+ByFumC8W2P8TJzg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyJzqYr/yVO/kJ3Za7L3Tuwn2EPRA2oWiOYSm8YM+iulnDnpCDL xJR2UBvNmba0hL7Sr47/ItvpPSpdLJ9xTpqQ2VmzHfwlGONey5LO X-Gm-Gg: ASbGncuwg7fFEzSpWdqAf15JU4oFAak2fCX1+Oi0lG2SloIpBfT/yakTQ1FecY0Hz8Z OnNIoB38HbivKmKrE5lysgMbk89eZlFWymYasgwjdwehHKOyy8OeurTjGt8ER7bwKoXNEGio2V1 0ZVEI9zqcSKTMV7pak25YlFWBVcJ5qbJsFR2+05N21xm0RLBieN+Csox+w478mUjmsahJDVc5G0 cnDP+3lctc4hxLSyULeU9L7zL/xHHQYCwn3BVJ3V62AFyc= X-Google-Smtp-Source: AGHT+IHYDgKiN5KLSeFJ1qAXdhoBXRwdTYTYuHyfb0lix+HwpXICxxsuLgtzto+Oj4relFdU2eTLqA== X-Received: by 2002:a05:600c:1c88:b0:42c:bb96:340e with SMTP id 5b1f17b1804b1-434a9df111cmr205737645e9.31.1733125203925; Sun, 01 Dec 2024 23:40:03 -0800 (PST) Received: from localhost ([141.226.9.46]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434b0d9bcf9sm141555725e9.6.2024.12.01.23.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Dec 2024 23:40:03 -0800 (PST) Date: Mon, 2 Dec 2024 09:40:01 +0200 From: Efraim Flashner <efraim@HIDDEN> To: Motiejus =?utf-8?Q?Jak=C5=A1tys?= <motiejus@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs Message-ID: <Z01kUThyeFzXqZhr@3900XT> Mail-Followup-To: Efraim Flashner <efraim@HIDDEN>, Motiejus =?utf-8?Q?Jak=C5=A1tys?= <motiejus@HIDDEN>, Hilton Chain <hako@HIDDEN>, 74217 <at> debbugs.gnu.org, =?utf-8?Q?No=C3=A9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> References: <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> <CA+jRjx02=69qgNeyaPn=KbTA+1OHmxM-YOsqDFRjccsNP7yW-w@HIDDEN> <878qt3idw4.wl-hako@HIDDEN> <CA+jRjx0DBNe=eRNf9YLmZjnK+2tfTn1r9xEXp=YHU6oAArRp3w@HIDDEN> <87bjxyp6pk.wl-hako@HIDDEN> <CA+jRjx2rAJMpkwO0y0aMc_X0wi=P+1uegYOQkq9zjLcgaBF=7w@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="m7lQxlkGoKBevhr4" Content-Disposition: inline In-Reply-To: <CA+jRjx2rAJMpkwO0y0aMc_X0wi=P+1uegYOQkq9zjLcgaBF=7w@HIDDEN> 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-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 74217 Cc: Hilton Chain <hako@HIDDEN>, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN>, 74217 <at> debbugs.gnu.org, =?utf-8?Q?No=C3=A9?= Lopez <noe@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) --m7lQxlkGoKBevhr4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 01, 2024 at 09:32:01PM +0200, Motiejus Jak=C5=A1tys wrote: > On Fri, Nov 29, 2024 at 2:25=E2=80=AFPM Hilton Chain <hako@HIDDEN= e> wrote: > > > > On Fri, 29 Nov 2024 04:53:57 +0800, > > Motiejus Jak=C5=A1tys wrote: > > > > > > [1 <text/plain; UTF-8 (quoted-printable)>] > > > On Thu, Nov 28, 2024 at 5:20=E2=80=AFPM Hilton Chain <hako@ultrarare.= space> wrote: > > > > Thanks! Then I'll keep abilists removed before we can reproduce on= e :) > > > > > > OK here it is for 0.11: > > > > > > 1. check out glibc-abi-tool 13576b1ea957882be7ff2c99f4cdc27454930219 > > > 2. rm -fr glibc/2.3{5,6,7,8} > > > 3. apply the attached patch. > > > 4. /path/to/zig-0.11/bin/zig run consolidate.zig > > > > > > ... which results in abilists > > > 546e3c64b5c972b45c4c5c3e81fa1c73282db9377d57ae870d7abcb276f9605c. > > > > > > Motiejus > > > [2 Backport-consolidate.zig-to-zig-0.11.0.patch <text/x-patch; US-ASC= II (base64)>] > > > From 23135302904467aa2e814500af6327408c46f52e Mon Sep 17 00:00:00 2001 > > > From: =3D?UTF-8?q?Motiejus=3D20Jak=3DC5=3DA1tys?=3D <motiejus@jakstys= =2Elt> > > > Date: Thu, 28 Nov 2024 22:52:13 +0200 > > > Subject: [PATCH] Backport consolidate.zig to zig 0.11.0 > > > > > > --- > > > consolidate.zig | 8 ++------ > > > 1 file changed, 2 insertions(+), 6 deletions(-) > > > > Thanks very much! I have added abilists for 0.9 and 0.10 as well. >=20 > For the record, I have smoke-tested abilists on 0.9, 0.10, 0.11.0, > 0.12.1 and 0.13. The test was as follows: >=20 > 1. create a "hello world" C program that uses printf. > 2. /gnu/.../zig-VERSION/bin/zig cc -target x86_64-linux-gnu.2.28 > hello.c -o hello > 3. readelf -Ws hello > 4. observe line (3) has line "printf@GLIBC_2.2.5". > 5. run `hello` on non-guix and observe expected output. Thank you for sharing that syntax for targeting specific glibc versions. I'm continuing to try to build zig-0.10.0-610 on riscv64. I've had more luck with powerpc64le but it's not the most convenient thing with passing build targets between my computer and berlin. --=20 Efraim Flashner <efraim@HIDDEN> =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 --m7lQxlkGoKBevhr4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmdNZFEACgkQQarn3Mo9 g1H0lg/+KQ68CFsPvw32OoDSkE59IyXS0k3RW0JJM3DMypuai4q4znwM/9588qXq +AYku55+8Yf1hm2dMPJogoKGyO08T2AXGFAtT02a8yEG/NlFKweL9gyNNdSLnc7/ MKoHe3cCwgaFErXvGzt985LeVgBYLVvkh7fnCCVU0aJbKgSAdzZjUbSfOetXrcnx bOXYO9IW7b7HKO+JfAYSj+3gaU9jEfOAbAwo3qagvyhOJ7J2/bYI80fpSEaR6W9t pDpvQdVvMZ9PWBJaEXDsRyvfC6arw24p+BaVXdU23lt0qP3bTMrB31PDLAuD4sLc BHHQDbRiao9b9LpVrOMcUEgl7zd841kYeg6MUHz3Ygrcdk7h+pij7fuNz0G1FEO+ XgsoNUneDWp3On0Y8xEn7XjTUWJUCLGFlmoCDvFibcoHSxvnC/VdXEmUKaMAvcB7 Sud45/3QQAgA5LlaIAXGxRHqmNMr2RIXjJvDF6CgCiUEvu1zlCsjiQFFZnjoWZtg LA0f/seh5YzDdXs9hTFyH5f0J2nlnzC+q6aqqwiWR+axN69zYrKUhSoVmWIUXX1r +WTxxX5oGbL57L92xMtwQb0ZX6NTDM2ytG19K4TWcsTlv8iOyketK+/qv4eCZJWP MjnvKMyZTdJ050HAfOU9Bn1dfpXRBRnphVrk340B1ZLTo/ezVqM= =p8uH -----END PGP SIGNATURE----- --m7lQxlkGoKBevhr4--
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 2 Dec 2024 05:12:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 02 00:12:08 2024 Received: from localhost ([127.0.0.1]:53884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tHyj9-00081T-Uk for submit <at> debbugs.gnu.org; Mon, 02 Dec 2024 00:12:08 -0500 Received: from mx.boiledscript.com ([88.99.243.112]:44820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tHyj8-00081J-5z for 74217 <at> debbugs.gnu.org; Mon, 02 Dec 2024 00:12:07 -0500 Date: Mon, 02 Dec 2024 13:11:53 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1733116324; 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=jmMV2LV+3l/e/IL2K5Lk/OAXJg/zxYi4sR1fa7HoWkE=; b=TEFtsgqLyZuji6NOhgsQtf5i6X7twhAmYefQlMFffJGR57OjkCA5F7H3c9h0daSfjtqy1Y rVctvYwcAJdbCZb/Hkx3j5x6amUzbRjHmEz36+QXX41H8CWKnQ42m28mcqzSzkew4Y+X46 1ekzqjrut2rQlEHLJil1F+kyOcOX81aXhx0J0Tp0yhcfVFCVv+wfNqu0M/mTArzAvNpOFd B/sy/xCslF+ga7Lnc+gMkUVJlMY1dIdluSdqKW403375D8AFY1/v1ArvNKksQQhzt4rw2C EIHhx1EgXJtb37inIejQFuDjjAzCvc5mOKv5oBDM/CmhlfyunptPYNcwfz1RCA== Message-ID: <87h67mbrdy.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87a5djipk6.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu, 28 Nov 2024 19:08:09 +0800, Hilton Chain wrote: > > Made "#:zig-inputs" a private keyword, its value will be passed to inputs like > cargo-build-system (the build system doesn't extract the whole closure for > now, this can be added in the future depending on how Zig ecosystem develops). Just thought if we can avoid using #:zig-inputs, it turns out doing so is quite easy: --8<---------------cut here---------------start------------->8--- @@ -330,9 +327,20 @@ (define-public zig-zls-0.12 (file-name (git-file-name name version)) (sha256 (base32 - "1ini1ifa9b0v2ika3sqsiiv2p7v9npfslss45280yxwn2pjqmn7n")))) + "1ini1ifa9b0v2ika3sqsiiv2p7v9npfslss45280yxwn2pjqmn7n")) + (modules '((guix build utils))) + (snippet + #~(begin + (substitute* "build.zig" + (("(b\\.dependency.\")diffz" _ prefix) + (string-append prefix "zig-diffz")) + (("(b\\.dependency.\")known_folders" _ prefix) + (string-append prefix "zig-known-folders"))) + (substitute* "build.zig.zon" + (("\\.diffz") ".@\"zig-diffz\"") + (("\\.known_folders") ".@\"zig-known-folders\"")))))) (build-system zig-build-system) - (inputs (list zig-0.12)) + (inputs (list zig-0.12 zig-diffz zig-known-folders)) (arguments (let ((version-data-path #~(string-append "-Dversion_data_path=" @@ -344,7 +352,4 @@ (define-public zig-zls-0.12 #:zig-build-flags #~(list #$version-data-path) #:zig-test-flags - #~(list #$version-data-path) - #:zig-inputs - `(("known_folders" ,zig-known-folders) - ("diffz" ,zig-diffz))))))) + #~(list #$version-data-path)))))) (define-public zig-zls-0.13 (package --8<---------------cut here---------------end--------------->8--- I also continued the bootstrap path to current master: https://paste.sr.ht/~hako/584dd15fd1614f23e6a421b906092a1b28614148
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 1 Dec 2024 19:33:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 01 14:33:18 2024 Received: from localhost ([127.0.0.1]:53130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tHpgz-0003yo-Pr for submit <at> debbugs.gnu.org; Sun, 01 Dec 2024 14:33:18 -0500 Received: from mail-pj1-f43.google.com ([209.85.216.43]:59887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <motiejus@HIDDEN>) id 1tHpgu-0003ya-O8 for 74217 <at> debbugs.gnu.org; Sun, 01 Dec 2024 14:33:15 -0500 Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2ee6abf124aso1632257a91.3 for <74217 <at> debbugs.gnu.org>; Sun, 01 Dec 2024 11:33:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jakstys.lt; s=google; t=1733081532; x=1733686332; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zggNAuRlBqMNk7V/hUNmc1fI+7XZQQXqp/lgP0Xpr3Y=; b=HtFVMJOBnNi771T/LcF/8JdZqs9QY2zbqUqWYIbsEO+FVNb7abOK5q0BfJMACN85/9 fjEbUoF4zt/1tIyVUbhExtTTwDDqzDqtx6TjmLg/2niWO9J1e7UTaz5D9j78n6ASuVSZ 2N6aZsmExoAl1lW3H312+JFiNV42fXJaEFF3c1iCIm5ctpUsqthVqvoXLa2czfRzfD9u XyfmLcmOE7JsRAsyfIQ57TSoKGPLmmgOJuW25CrKAezEXRVQUyMTMr8Zeew0XlPh4pNd FyAkcKtZj6tP05VhClaxk3nHg0G5Iz+NrftZsLjNJUUibWQBlwAhOnj5rWl8rTMM78s5 scEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733081532; x=1733686332; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zggNAuRlBqMNk7V/hUNmc1fI+7XZQQXqp/lgP0Xpr3Y=; b=bpDv4PbNQCKc+WLFhjwdVEr9X1+/RtID2T4EIa04nhso7AAy2YwGNq7VUEAgcR5GFU i9cmWanHvJ2xS52IlIK4Zxfpd5L217aV+Mmf7TF1j+7u6Pk9/eTvKgSAlOl/M+TgWgVZ 9U2nz4zzZ1KggcaOyh3oh3dhNsNyTyshQcm32RlCsr0mlaUzw+QVsp8cYk+LLrnuRz4s Z0N8CEL0jYg/N4c0VgnJMLy1Khj013203NA1DJcVfsBPv52GlObs3GLrrR5dTr6xrJur A/8b/UZgetmPmknnDEVSzyc8QXB1lzyt2WI4eyNVjAoSPPilOJw0OqSdO4LWASIXlnyu fV2Q== X-Gm-Message-State: AOJu0YwsCN5ONcV1HGoxvkdm+bgdv3VoIEnALb6JxfACoNd5G2afXh1T GRisGcHyTtAuOslHzI4nJnPzGGZcABhd5+qt7L/I/hLY6U9Q8Y/z5wL8TDFJYtiY3PVHItYuL31 eZCnnVuissyqjKDLPS/L//COICfSZOHIIrupkP8+cOtlM2VizUUVZ X-Gm-Gg: ASbGnctesfs/aHdxwov4uMk0ARjN4zLSGOEvUc/jbRtfVgm/3ChizrnLWP2zZ4Xv7eg AiK7aaO2WdrOTfqktyvxknS972gLuhJo= X-Google-Smtp-Source: AGHT+IFQKRCzwvBwaQ6V+NQO5Ljax7R+X8vgjR4R/usxjW+0N8rmLJc1FUJPiB4mgYJJXSLWlJcKpURKpmx7O97Mseg= X-Received: by 2002:a17:90b:35c9:b0:2ea:4a6b:79d1 with SMTP id 98e67ed59e1d1-2ee08eb2bdfmr25545184a91.11.1733081531978; Sun, 01 Dec 2024 11:32:11 -0800 (PST) MIME-Version: 1.0 References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> <CA+jRjx02=69qgNeyaPn=KbTA+1OHmxM-YOsqDFRjccsNP7yW-w@HIDDEN> <878qt3idw4.wl-hako@HIDDEN> <CA+jRjx0DBNe=eRNf9YLmZjnK+2tfTn1r9xEXp=YHU6oAArRp3w@HIDDEN> <87bjxyp6pk.wl-hako@HIDDEN> In-Reply-To: <87bjxyp6pk.wl-hako@HIDDEN> From: =?UTF-8?Q?Motiejus_Jak=C5=A1tys?= <motiejus@HIDDEN> Date: Sun, 1 Dec 2024 21:32:01 +0200 Message-ID: <CA+jRjx2rAJMpkwO0y0aMc_X0wi=P+1uegYOQkq9zjLcgaBF=7w@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs To: Hilton Chain <hako@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?UTF-8?Q?No=C3=A9_Lopez?= <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Fri, Nov 29, 2024 at 2:25=E2=80=AFPM Hilton Chain <hako@HIDDEN>= wrote: > > On Fri, 29 Nov 2024 04:53:57 +0800, > Motiejus Jak=C5=A1tys wrote: > > > > [1 <text/plain; UTF-8 (quoted-printable)>] > > On Thu, Nov 28, 2024 at 5:20=E2=80=AFPM Hilton Chain <hako@HIDDEN= ace> wrote: > > > Thanks! Then I'll keep abilists removed before we can reproduce one = :) > > > > OK here it is for 0.11: > > > > 1. check out glibc-abi-tool 13576b1ea957882be7ff2c99f4cdc27454930219 > > 2. rm -fr glibc/2.3{5,6,7,8} > > 3. apply the attached patch. > > 4. /path/to/zig-0.11/bin/zig run consolidate.zig > > > > ... which results in abilists > > 546e3c64b5c972b45c4c5c3e81fa1c73282db9377d57ae870d7abcb276f9605c. > > > > Motiejus > > [2 Backport-consolidate.zig-to-zig-0.11.0.patch <text/x-patch; US-ASCII= (base64)>] > > From 23135302904467aa2e814500af6327408c46f52e Mon Sep 17 00:00:00 2001 > > From: =3D?UTF-8?q?Motiejus=3D20Jak=3DC5=3DA1tys?=3D <motiejus@HIDDEN= t> > > Date: Thu, 28 Nov 2024 22:52:13 +0200 > > Subject: [PATCH] Backport consolidate.zig to zig 0.11.0 > > > > --- > > consolidate.zig | 8 ++------ > > 1 file changed, 2 insertions(+), 6 deletions(-) > > Thanks very much! I have added abilists for 0.9 and 0.10 as well. For the record, I have smoke-tested abilists on 0.9, 0.10, 0.11.0, 0.12.1 and 0.13. The test was as follows: 1. create a "hello world" C program that uses printf. 2. /gnu/.../zig-VERSION/bin/zig cc -target x86_64-linux-gnu.2.28 hello.c -o hello 3. readelf -Ws hello 4. observe line (3) has line "printf@GLIBC_2.2.5". 5. run `hello` on non-guix and observe expected output. Regards, Motiejus
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 29 Nov 2024 14:52:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 29 09:52:00 2024 Received: from localhost ([127.0.0.1]:41806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tH2Lg-0004W9-Ax for submit <at> debbugs.gnu.org; Fri, 29 Nov 2024 09:52:00 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:38262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tH2Le-0004Vq-MK for 74217 <at> debbugs.gnu.org; Fri, 29 Nov 2024 09:51:59 -0500 Date: Fri, 29 Nov 2024 22:51:33 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1732891911; 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=lK6anNbq1Lqea+9oJa4WJqpTO5Q8NLwjqozksGAHpO0=; b=1pX1rPv5hRvMZM6KDHMyFTA2lHQOkZEYB4mlHQYdWIaeCWLzWK/4E00ktQSAon/tDnT361 upp33e9I+WaLRUEtiUo8uVlRArUmS2FSRt6pj0eRlgYv7GKWXEFbXXNtRlw5I/zYh8EY+G 5XPiY2Lr/Q8e26Htv33C9CQjIhTbhw4plgI1u2Krd2Y6ta8n5OBRAOzOW+sMYKzplA1tiR jr1AjFvHkn69OYtsC60gQ40/c/7BcfZhnaSdhuVdNUsUi5MT1VzZ7MKiGCaOWsei32B4ft cQURA/f8lr1ex0k6IqfigiabJ/SyzUl80Dicr1CytCtIwfhRnTwqehLy5aUKHg== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <878qt2ozyi.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: Motiejus =?ISO-8859-2?Q?Jak=B9tys?= <motiejus@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87bjxyp6pk.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> <CA+jRjx02=69qgNeyaPn=KbTA+1OHmxM-YOsqDFRjccsNP7yW-w@HIDDEN> <878qt3idw4.wl-hako@HIDDEN> <CA+jRjx0DBNe=eRNf9YLmZjnK+2tfTn1r9xEXp=YHU6oAArRp3w@HIDDEN> <87bjxyp6pk.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: - X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Fri, 29 Nov 2024 20:25:43 +0800, Hilton Chain wrote: > > Just realised the weekend is coming, I'll send to guix-devel soon. ;) https://lists.gnu.org/archive/html/guix-devel/2024-11/msg00271.html
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 29 Nov 2024 12:26:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 29 07:26:01 2024 Received: from localhost ([127.0.0.1]:41371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tH04P-0005UQ-He for submit <at> debbugs.gnu.org; Fri, 29 Nov 2024 07:26:01 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:37718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tH04N-0005U6-Sh for 74217 <at> debbugs.gnu.org; Fri, 29 Nov 2024 07:26:00 -0500 Date: Fri, 29 Nov 2024 20:25:43 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1732883152; 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=q1fXQ1WgvUuxbMof63Xy3Gmxdjp9aKHsw0qODk/qr/g=; b=xrd4HfRxDE2f3/+rTVGjQpCfcH++eE3lvAK9bikY1UpJR/27GCvhptv68REBMzEDIAIR6H 0LaDlXzLjfUwjJCjwDF8J92JIdgao6sSaPa887vRw585NtjFxqWVkKzAMdnvKjHucZFxQe LJSEtN864JZC75DPLLPh/leE7ZDAlUvLYftv0i5tnDYSdRMAg1fF3fgw5JsqZUmiPjkN+N FXNZN3dvA239NRaqWrdwcm4qibATlxJGqSdfq3XpDqVcmZk6VN/rGGTrzsX+azSPb7SY71 QWlz+eVJ2N9qufXVvFjmnRidLVQUEwH9wLjYRKPMRZhsFxddpBsWhv1S8jj1Ow== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87bjxyp6pk.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: Motiejus =?ISO-8859-2?Q?Jak=B9tys?= <motiejus@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <CA+jRjx0DBNe=eRNf9YLmZjnK+2tfTn1r9xEXp=YHU6oAArRp3w@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> <CA+jRjx02=69qgNeyaPn=KbTA+1OHmxM-YOsqDFRjccsNP7yW-w@HIDDEN> <878qt3idw4.wl-hako@HIDDEN> <CA+jRjx0DBNe=eRNf9YLmZjnK+2tfTn1r9xEXp=YHU6oAArRp3w@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Fri, 29 Nov 2024 04:53:57 +0800, Motiejus Jak=C5=A1tys wrote: > > [1 <text/plain; UTF-8 (quoted-printable)>] > On Thu, Nov 28, 2024 at 5:20=E2=80=AFPM Hilton Chain <hako@HIDDEN= e> wrote: > > Thanks! Then I'll keep abilists removed before we can reproduce one :) > > OK here it is for 0.11: > > 1. check out glibc-abi-tool 13576b1ea957882be7ff2c99f4cdc27454930219 > 2. rm -fr glibc/2.3{5,6,7,8} > 3. apply the attached patch. > 4. /path/to/zig-0.11/bin/zig run consolidate.zig > > ... which results in abilists > 546e3c64b5c972b45c4c5c3e81fa1c73282db9377d57ae870d7abcb276f9605c. > > Motiejus > [2 Backport-consolidate.zig-to-zig-0.11.0.patch <text/x-patch; US-ASCII (= base64)>] > From 23135302904467aa2e814500af6327408c46f52e Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Motiejus=3D20Jak=3DC5=3DA1tys?=3D <motiejus@HIDDEN> > Date: Thu, 28 Nov 2024 22:52:13 +0200 > Subject: [PATCH] Backport consolidate.zig to zig 0.11.0 > > --- > consolidate.zig | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) Thanks very much! I have added abilists for 0.9 and 0.10 as well. Also supported "-Wl,-rpath=3D" from pkg-config output in the fix-runpath pa= tch. Should be enough for current packages. Just realised the weekend is coming, I'll send to guix-devel soon. ;)
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 28 Nov 2024 20:55:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 28 15:55:18 2024 Received: from localhost ([127.0.0.1]:39943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tGlXh-0000Vn-Sd for submit <at> debbugs.gnu.org; Thu, 28 Nov 2024 15:55:18 -0500 Received: from mail-pj1-f52.google.com ([209.85.216.52]:55358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <motiejus@HIDDEN>) id 1tGlXf-0000QV-L1 for 74217 <at> debbugs.gnu.org; Thu, 28 Nov 2024 15:55:16 -0500 Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-2ee397a82f6so528553a91.2 for <74217 <at> debbugs.gnu.org>; Thu, 28 Nov 2024 12:55:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jakstys.lt; s=google; t=1732827250; x=1733432050; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xOQHKyNa8v9diS1xgKx2pj7WV+AhbJ/C7zFV3Z3orAw=; b=KNSoI8Qx9CQO0cbJ/Iy3uHepoVHQZALFg/0BpAoE5sE6kDf+shu9beTkd9dS2YMVST eZcuqOvZnuPHAgW+Pto0APoKfsjZ5DWw9kJaNiQWbM3H7+cxy5iwTXehgKQDHYwpsR1O 0gqPRI3AkJn9VpiqigOjSTIwX8tEXHgxbPk333s7SkkhLL41Ht0dDRkoaRqHdtuJvhK6 8MWpc+kQzRXSK5b0FUFOfxboTU4nXyEb4qZoYDFoo7CP4iPhZMYK880CbyoqV7ZZ7jLV pPT2RJGS5KbJnQA6eVqb0fFnmNkjSsqAB3fngwO9pyz5iPTxNIDeqi+e3zoB/BDggg7e HajQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732827250; x=1733432050; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xOQHKyNa8v9diS1xgKx2pj7WV+AhbJ/C7zFV3Z3orAw=; b=AdmeqIHrlDfjGxhUq8RcP3TtApd/X8rvdtWeCaxi2PFwdYXR796rrca5aaICquZGY6 DIy3fHfemeABpqI5pG8J32XjlCx2P15eHALwZcFpx87IJGpcupalx0LJLG/lRqIIiv1+ NjIODIOrGASvaAfYNQQ/uNsnHaPSMzGcte/Wf1JROaaEEemvaJ2tkE0Fjyj8gq9Skwa7 NV0y1QjfhJK222X03h3KP7HlSnD67aQXz8Xd5lkIVBNWOsJCZE2It9bir3UhiFEbjv7p NZRzw0UZv7VGzQOmvILoyQZ2ZxecEICDG+JR2ZeRDlnI4rxbODIfWv5WIE5C2+Rj13kT /f5w== X-Gm-Message-State: AOJu0Yy9fY0asCKyBzaSVJIk6uPn+d4uvCoLHntKt4bo+gkU7QjrUxXO mt2nn1Hw7aGCW+9kRA93Fkw7aSwkNLli0okOkgfGCJLimZs3jMQyURtwrRrNu/4TEZh8nZL1WbL nZhwjmdLnHXxHLMlPJKqsUG9J4Ts8eeesngH1 X-Gm-Gg: ASbGnctYF3lyx6AFXY9m1yyGp/WLm/fqVzMUiz+Tjzb5I1SYUcX0vwQE4G89+oqlpvO ZoUH6u6w86xj/K4leErX6f/ms4ZBo5mY= X-Google-Smtp-Source: AGHT+IGM5T+xdZs9OJssfX6ho7fvrFwbso/w93JMxVPpvIMxz2gro/J4VfT6pt+7dLKbTjxHXPmLs+iONK/IIugqeWs= X-Received: by 2002:a17:90b:3887:b0:2ea:77d9:6346 with SMTP id 98e67ed59e1d1-2ee08e9fe11mr10940991a91.11.1732827249849; Thu, 28 Nov 2024 12:54:09 -0800 (PST) MIME-Version: 1.0 References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> <CA+jRjx02=69qgNeyaPn=KbTA+1OHmxM-YOsqDFRjccsNP7yW-w@HIDDEN> <878qt3idw4.wl-hako@HIDDEN> In-Reply-To: <878qt3idw4.wl-hako@HIDDEN> From: =?UTF-8?Q?Motiejus_Jak=C5=A1tys?= <motiejus@HIDDEN> Date: Thu, 28 Nov 2024 22:53:57 +0200 Message-ID: <CA+jRjx0DBNe=eRNf9YLmZjnK+2tfTn1r9xEXp=YHU6oAArRp3w@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs To: Hilton Chain <hako@HIDDEN> Content-Type: multipart/mixed; boundary="000000000000af726d0627ff4891" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?UTF-8?Q?No=C3=A9_Lopez?= <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --000000000000af726d0627ff4891 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 28, 2024 at 5:20=E2=80=AFPM Hilton Chain <hako@HIDDEN>= wrote: > Thanks! Then I'll keep abilists removed before we can reproduce one :) OK here it is for 0.11: 1. check out glibc-abi-tool 13576b1ea957882be7ff2c99f4cdc27454930219 2. rm -fr glibc/2.3{5,6,7,8} 3. apply the attached patch. 4. /path/to/zig-0.11/bin/zig run consolidate.zig ... which results in abilists 546e3c64b5c972b45c4c5c3e81fa1c73282db9377d57ae870d7abcb276f9605c. Motiejus --000000000000af726d0627ff4891 Content-Type: text/x-patch; charset="US-ASCII"; name="Backport-consolidate.zig-to-zig-0.11.0.patch" Content-Disposition: attachment; filename="Backport-consolidate.zig-to-zig-0.11.0.patch" Content-Transfer-Encoding: base64 Content-ID: <f_m41sl25d0> X-Attachment-Id: f_m41sl25d0 RnJvbSAyMzEzNTMwMjkwNDQ2N2FhMmU4MTQ1MDBhZjYzMjc0MDhjNDZmNTJlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/TW90aWVqdXM9MjBKYWs9QzU9QTF0eXM/PSA8 bW90aWVqdXNAamFrc3R5cy5sdD4KRGF0ZTogVGh1LCAyOCBOb3YgMjAyNCAyMjo1MjoxMyArMDIw MApTdWJqZWN0OiBbUEFUQ0hdIEJhY2twb3J0IGNvbnNvbGlkYXRlLnppZyB0byB6aWcgMC4xMS4w CgotLS0KIGNvbnNvbGlkYXRlLnppZyB8IDggKystLS0tLS0KIDEgZmlsZSBjaGFuZ2VkLCAyIGlu c2VydGlvbnMoKyksIDYgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvY29uc29saWRhdGUuemln IGIvY29uc29saWRhdGUuemlnCmluZGV4IDA5NTZiMTFlYTk4My4uYjVmNDk2OWQyOGMyIDEwMDY0 NAotLS0gYS9jb25zb2xpZGF0ZS56aWcKKysrIGIvY29uc29saWRhdGUuemlnCkBAIC0xMjYsMTAg KzEyNiw2IEBAIGNvbnN0IHZlcnNpb25zID0gW19dVmVyc2lvbnsKICAgICAuey5tYWpvciA9IDIs IC5taW5vciA9IDMyfSwKICAgICAuey5tYWpvciA9IDIsIC5taW5vciA9IDMzfSwKICAgICAuey5t YWpvciA9IDIsIC5taW5vciA9IDM0fSwKLSAgICAuey5tYWpvciA9IDIsIC5taW5vciA9IDM1fSwK LSAgICAuey5tYWpvciA9IDIsIC5taW5vciA9IDM2fSwKLSAgICAuey5tYWpvciA9IDIsIC5taW5v ciA9IDM3fSwKLSAgICAuey5tYWpvciA9IDIsIC5taW5vciA9IDM4fSwKIH07CiAKIC8vIGZwdS9u b2ZwdSBhcmUgaGFyZGNvZGVkIGVsc2V3aGVyZSwgYmFzZWQgb24gLmdudWVhYmkvLmdudWVhYmlo ZiB3aXRoIGFuIGV4Y2VwdGlvbiBmb3IgLmFybQpAQCAtODM4LDcgKzgzNCw3IEBAIHB1YiBmbiBt YWluKCkgIXZvaWQgewogCiAgICAgewogICAgICAgICAvLyBGdW5jdGlvbiBJbmNsdXNpb25zCi0g ICAgICAgIHRyeSB3LndyaXRlSW50TGl0dGxlKHUxNiwgQGludENhc3QoZm5faW5jbHVzaW9ucy5p dGVtcy5sZW4pKTsKKyAgICAgICAgdHJ5IHcud3JpdGVJbnRMaXR0bGUodTE2LCBAYXModTE2LCBA aW50Q2FzdChmbl9pbmNsdXNpb25zLml0ZW1zLmxlbikpKTsKICAgICAgICAgdmFyIGk6IHVzaXpl ID0gMDsKICAgICAgICAgd2hpbGUgKGkgPCBmbl9pbmNsdXNpb25zLml0ZW1zLmxlbikgewogICAg ICAgICAgICAgY29uc3QgbmFtZSA9IGZuX2luY2x1c2lvbnMuaXRlbXNbaV0ubmFtZTsKQEAgLTg3 NCw3ICs4NzAsNyBAQCBwdWIgZm4gbWFpbigpICF2b2lkIHsKIAogICAgIHsKICAgICAgICAgLy8g T2JqZWN0IEluY2x1c2lvbnMKLSAgICAgICAgdHJ5IHcud3JpdGVJbnRMaXR0bGUodTE2LCBAaW50 Q2FzdChvYmpfaW5jbHVzaW9ucy5pdGVtcy5sZW4pKTsKKyAgICAgICAgdHJ5IHcud3JpdGVJbnRM aXR0bGUodTE2LCBAYXModTE2LCBAaW50Q2FzdChvYmpfaW5jbHVzaW9ucy5pdGVtcy5sZW4pKSk7 CiAgICAgICAgIHZhciBpOiB1c2l6ZSA9IDA7CiAgICAgICAgIHdoaWxlIChpIDwgb2JqX2luY2x1 c2lvbnMuaXRlbXMubGVuKSB7CiAgICAgICAgICAgICBjb25zdCBuYW1lID0gb2JqX2luY2x1c2lv bnMuaXRlbXNbaV0ubmFtZTsKLS0gCjIuNDcuMAoK --000000000000af726d0627ff4891--
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 28 Nov 2024 20:15:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 28 15:15:31 2024 Received: from localhost ([127.0.0.1]:39862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tGkvD-0006w3-IB for submit <at> debbugs.gnu.org; Thu, 28 Nov 2024 15:15:31 -0500 Received: from mail-pf1-f178.google.com ([209.85.210.178]:59837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <motiejus@HIDDEN>) id 1tGkvB-0006vv-Iu for 74217 <at> debbugs.gnu.org; Thu, 28 Nov 2024 15:15:30 -0500 Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-720cb6ac25aso938930b3a.3 for <74217 <at> debbugs.gnu.org>; Thu, 28 Nov 2024 12:15:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jakstys.lt; s=google; t=1732824869; x=1733429669; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=A6XeP49G6ApBbNgr/ZMobkbWL/G7XeACjULQBJHRoEw=; b=HJhl9IX/UAzWe3Ci8jMtdetvN9xCx/6u7rbHNGhjH9VEVFvyx1vZtne8gH765rXChH AqppsPJ+b4Y7JWUTctPKtov1Lg8ewpRAMk1oDUNfyQHmr3ZrplaaUoWhhmn/G6VsDTIT QpSpmH//v3spCe3sKJj653HUdY1190Uwv/L3xKJXxNgliag3rlro0TeYvDrJncJwktes cOHC7K8OjZ7baUTEN7T2BBSSOrOPDX8E5nf/LoCINZGRvQRUQMMAT9T9H8uma6iXG0CG Sb5Kx6CMX3KUr+KwuME8o1Zi+AQvTMzjrIX/ZuF4BKTojLdMkl65TqSzMJ8/5MKbmQ3J Qciw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732824869; x=1733429669; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A6XeP49G6ApBbNgr/ZMobkbWL/G7XeACjULQBJHRoEw=; b=rItZfYWcd/MEvR/eGf2oRz/hniz5MdzVsk4CRezeWGeOyI5Ei76i6nV+0bQOhZYxL3 E46HURFGBsuESaMHGMJKpY3B2lEOXLR4OPSDL7MbLnrWs0f8czN0qRNzfG9Xx0Q4obEq H3eDL9vpsNmRUP+oK1rSP3X1Dt9Tm3K76A0ZKLuaMb/UcIZfaBJIWYft+bSw/yVO7EEG G3JnGkc/pD/Y74R+KeY+WoIzcPCpw9sVcUgHM2I29goixoneNW2paKamqz4uFYtYa/IO X4Julm9HDolUjf6YJ/s4Zxrr0/SsoWKgdHQDxpla5bbwFSQoYdK4XBebqWw26kC3jsrd s7xQ== X-Gm-Message-State: AOJu0YyUGn5aHaaGDwderbKgwxhcsyTOfkMiAGcw/RzKg+IQh45b0d2R djHdOqXan5zEt0KBl6Jx50ZezxKKbJksTWJ03ZnaO8YJfB7Y8bEm8EClJY3eiDWQ6Gw7oZJYtWA xR2VfP8W3Mf6J3YA2oTZZx+QFCVwWZrcUots4 X-Gm-Gg: ASbGncupi0GyQ2GhO1YWAn/n+7n7OWJcQD0wQpf6jS4Le8D7A1P+qLOaCGS5s+P5MJv TPlfLGpNZYGZ+JU7Z+yfZWLMM9F0fAcU= X-Google-Smtp-Source: AGHT+IGwnZHoc+xSjsUSfpv8415O0mbOPWlvtaHQhBiMSQjAoQexegavfUJ3bZNBjuvZQELmI46rL83KQWCpr2Lp3sc= X-Received: by 2002:a17:902:e801:b0:20c:9936:f0ab with SMTP id d9443c01a7336-21501d57906mr116313085ad.47.1732824867513; Thu, 28 Nov 2024 12:14:27 -0800 (PST) MIME-Version: 1.0 References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> <CA+jRjx02=69qgNeyaPn=KbTA+1OHmxM-YOsqDFRjccsNP7yW-w@HIDDEN> <878qt3idw4.wl-hako@HIDDEN> <CA+jRjx2yhwz0j6Hq8pCGwQjGRGAX9naijNt5gQ3705z4XxGzcg@HIDDEN> In-Reply-To: <CA+jRjx2yhwz0j6Hq8pCGwQjGRGAX9naijNt5gQ3705z4XxGzcg@HIDDEN> From: =?UTF-8?Q?Motiejus_Jak=C5=A1tys?= <motiejus@HIDDEN> Date: Thu, 28 Nov 2024 22:14:16 +0200 Message-ID: <CA+jRjx3zFQw3x1-GHB4igJcGCBpiCG9088CKW0=PHdyu+eF7yA@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs To: Hilton Chain <hako@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?UTF-8?Q?No=C3=A9_Lopez?= <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu, Nov 28, 2024 at 10:12=E2=80=AFPM Motiejus Jak=C5=A1tys <motiejus@ja= kstys.lt> wrote: > > On Thu, Nov 28, 2024 at 5:20=E2=80=AFPM Hilton Chain <hako@HIDDEN= e> wrote: > > Thanks! Then I'll keep abilists removed before we can reproduce one :) Ahh, now I realized you probably meant removed in 0.11. Sorry for the noise= ! Motiejus
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 28 Nov 2024 20:14:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 28 15:14:08 2024 Received: from localhost ([127.0.0.1]:39846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tGktr-0006mi-LY for submit <at> debbugs.gnu.org; Thu, 28 Nov 2024 15:14:08 -0500 Received: from mail-pj1-f51.google.com ([209.85.216.51]:43169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <motiejus@HIDDEN>) id 1tGktp-0006mY-Ag for 74217 <at> debbugs.gnu.org; Thu, 28 Nov 2024 15:14:06 -0500 Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-2ee50ffcf14so131021a91.0 for <74217 <at> debbugs.gnu.org>; Thu, 28 Nov 2024 12:14:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jakstys.lt; s=google; t=1732824784; x=1733429584; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nMLdtWYUnW+SpZW4DPcYmDA068F1raITdKFwUGCmHjs=; b=APr1ATy38znrRr9/DLsNuVpctdBPAkYb3aCE8BOmEHtEWgOqOVPNwt/sZW958dRHu5 vl6MMCCQMQYJQMSVA7oWQFjVUrPUK7GzRe2+pqE9VmzdIb4hRWFHjkl8SfnBgF/IWl/k uOpKEL5A6/JMvZ51ZfOBATehAuhd1w03dxXTI2Vgof13gPccovJGwm16sjbD04gp9mOn iBss9OSsN5FK8A9vtBDhEwvzUhghnJwO9QAaA+ENIr4QtOU5lvwAxayfp4p+RSmouQqa TSuNLv73yHZ0k8FReoF0VnpxrPbmgH+ZjZ3WVTz9fLF0Dt2XSxYmNcgEYh3NpxQeXoxV gf4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732824784; x=1733429584; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nMLdtWYUnW+SpZW4DPcYmDA068F1raITdKFwUGCmHjs=; b=AacLHKxjKZurgYEPPbkgeuqCTWZoy+hYR7ODVLRyi1tmPlDRqggWYzOA/g2iAK0tVU A4u0b0FXUipZiWtrEmsnBX0rXykQYRMMK7aVtLBLqXaFE1UcmSd/T8OcQqkeob2xo+Md YmyQPM5DPNLeKjUrQYV6upGBCov3TL5K3De/pz0Je38cAsZUxghefgzBuUexUtZ8Il57 udrg8OGqOU7OHEXnG8Lp0xUVkyl+Cwtqztsroi7CHgD0G2X8e7w/AoAbB/tJfaaLU56z J4mYE7bZasMnH+upVnMyJinS62ids0SeL8cXrFlVHo3G0UEtsjxAMKrBLKcnS9QMwJdW W9uA== X-Gm-Message-State: AOJu0YzOLge7Y59JAI5gNTd1cu8N1QRueoDWQhwyvhGSCakEtf8j33O8 frsJuKBBBsTSPWZHGHyjZpW8jQiYLusZg6dbgxR02PV7BYFvu/6kPOk4r1RStlhoWGc7nz87E/j l+ihmk315Kb0SuVyUGFHu8C6sfdo9Ktya9BMm X-Gm-Gg: ASbGncuLFbb/TjXYjvEiPvnpKkOsGibLS5b0zN8ZC+ITw+wNhWzoGyCZkfd/njFKd8l iY7htK1MEN2M/Age7a2oUawPn+BTU3w8= X-Google-Smtp-Source: AGHT+IHGkNKimhV4fj9DMudkJXEWr/0/Vjfc+pMEh+ke0QO7Xi0WyjSN7M20cPfhS5gtUK6HigiNLUe9r2T69ccIVFs= X-Received: by 2002:a17:90b:3c4d:b0:2ea:4e67:5649 with SMTP id 98e67ed59e1d1-2ee25b061d2mr6865091a91.14.1732824784328; Thu, 28 Nov 2024 12:13:04 -0800 (PST) MIME-Version: 1.0 References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> <CA+jRjx02=69qgNeyaPn=KbTA+1OHmxM-YOsqDFRjccsNP7yW-w@HIDDEN> <878qt3idw4.wl-hako@HIDDEN> In-Reply-To: <878qt3idw4.wl-hako@HIDDEN> From: =?UTF-8?Q?Motiejus_Jak=C5=A1tys?= <motiejus@HIDDEN> Date: Thu, 28 Nov 2024 22:12:53 +0200 Message-ID: <CA+jRjx2yhwz0j6Hq8pCGwQjGRGAX9naijNt5gQ3705z4XxGzcg@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs To: Hilton Chain <hako@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?UTF-8?Q?No=C3=A9_Lopez?= <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu, Nov 28, 2024 at 5:20=E2=80=AFPM Hilton Chain <hako@HIDDEN>= wrote: > > On Thu, 28 Nov 2024 20:41:10 +0800, > Motiejus Jak=C5=A1tys wrote: > > > > On Thu, Nov 28, 2024 at 1:08=E2=80=AFPM Hilton Chain <hako@HIDDEN= ace> wrote: > > > > > > <...> together with the concern on generated files. > > > > Hi Hilton, > > > > The only remaining, to my knowledge, binary file is `abilists`, which, > > once you have `zig` binary, can be generated this way: > > > > git clone https://github.com/ziglang/glibc-abi-tool; cd glibc-abi-tool > > git checkout fc5d0a7046b76795e4219f8f168e118ec29fbc53 > > /path/to/zig-0.13/bin/zig run consolidate.zig > > mv abilists /path/to/zig/lib/libc/glibc/abilist > > > > For 0.12.1: > > rm -fr glibc/2.39 > > sed -i '133d' consolidate.zig > > /path/to/zig-0.12.1/bin/zig run consolidate.zig > > mv abilists /path/to/zig/lib/libc/glibc/abilist > > > > I wasn't able to generate it for 0.11, but perhaps it's not as > > important, as I imagine there are very few people, if any, still > > developing on 0.11. Since one needs abilists *only* to cross-compile > > to non-guix glibc targets, it sounds like a vanishingly small use case > > for Guix to support. > > > > Motiejus > > Thanks! Then I'll keep abilists removed before we can reproduce one :) Seems reproducible, at least on my machine. Let's start at the last commit before 0.13.0 that updates abilists[1]: commit 53137050f8718c923983878904f5467446d28ba5 Author: Andrew Kelley <andrew@HIDDEN> Date: 2024-06-06T03:43:41+03:00 glibc: update abilists file generated from ziglang/glibc-abi-tool commit fc5d0a7046b76795e4219f8f168e118ec29fbc53 which now contains glibc 2.39 lib/libc/glibc/abilists | Bin 214842 -> 217016 bytes 1 file changed, 0 insertions(+), 0 deletions(-) sha256sum 0.13.0:lib/libc/glibc/abilists is the same as if I generate abilists myself on fc5d0a7046b76795e4219f8f168e118ec29fbc53 using zig 0.13.0. I get a62c6860a5db1f575b385fd45357f2c841abc84387b8047ca0ebf98a44d19= 47e. Great to see you progressing so quickly. Have fun with the remaining bits! Motiejus [1]: https://github.com/ziglang/zig/commit/53137050f8718c923983878904f54674= 46d28ba5
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 28 Nov 2024 15:20:26 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 28 10:20:26 2024 Received: from localhost ([127.0.0.1]:39340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tGgJe-0007hr-81 for submit <at> debbugs.gnu.org; Thu, 28 Nov 2024 10:20:26 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:44724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tGgJb-0007hb-J7 for 74217 <at> debbugs.gnu.org; Thu, 28 Nov 2024 10:20:24 -0500 Date: Thu, 28 Nov 2024 23:20:11 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1732807214; 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=7f7BITals+3F//1YDi631pgFw+gFaKxCn7RB35yhcX0=; b=m1s0Gbpb9w/TMRkJIcfsyFCESScGqN5xnCACVrx2ZR26cponX9IKN2CxxOSHVJaUyrYS10 LkQKUtbfjIhXi7E+QcoDC/ErcaGCptfOo33hstQ5M/Au3x35Jb59JSfSkrCdscZZPcsAIX 9DTY3KkwuLxCkr1ZIKx+Hm7kmnLJN33ocJQHEGXxv/FCCZGL1XSPuBVMljQeMRLUg+asVg kePIWhuj4vkZTd1KptaOgpZK1O2z5NxCo+B3yAKASK4SFr24SWVR4zl2Azb21ijUCoZ+0U BEatPynUBpO7QTTPM+k5U4gfVrwEbWLjMx4qo21DjMYHYojY1t9f5jlWujYNjQ== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <878qt3idw4.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: Motiejus =?ISO-8859-2?Q?Jak=B9tys?= <motiejus@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <CA+jRjx02=69qgNeyaPn=KbTA+1OHmxM-YOsqDFRjccsNP7yW-w@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> <CA+jRjx02=69qgNeyaPn=KbTA+1OHmxM-YOsqDFRjccsNP7yW-w@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: - X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu, 28 Nov 2024 20:41:10 +0800, Motiejus Jak=C5=A1tys wrote: > > On Thu, Nov 28, 2024 at 1:08=E2=80=AFPM Hilton Chain <hako@HIDDEN= e> wrote: > > > > <...> together with the concern on generated files. > > Hi Hilton, > > The only remaining, to my knowledge, binary file is `abilists`, which, > once you have `zig` binary, can be generated this way: > > git clone https://github.com/ziglang/glibc-abi-tool; cd glibc-abi-tool > git checkout fc5d0a7046b76795e4219f8f168e118ec29fbc53 > /path/to/zig-0.13/bin/zig run consolidate.zig > mv abilists /path/to/zig/lib/libc/glibc/abilist > > For 0.12.1: > rm -fr glibc/2.39 > sed -i '133d' consolidate.zig > /path/to/zig-0.12.1/bin/zig run consolidate.zig > mv abilists /path/to/zig/lib/libc/glibc/abilist > > I wasn't able to generate it for 0.11, but perhaps it's not as > important, as I imagine there are very few people, if any, still > developing on 0.11. Since one needs abilists *only* to cross-compile > to non-guix glibc targets, it sounds like a vanishingly small use case > for Guix to support. > > Motiejus Thanks! Then I'll keep abilists removed before we can reproduce one :)
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 28 Nov 2024 12:42:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 28 07:42:29 2024 Received: from localhost ([127.0.0.1]:37749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tGdqn-00082b-7t for submit <at> debbugs.gnu.org; Thu, 28 Nov 2024 07:42:29 -0500 Received: from mail-pj1-f43.google.com ([209.85.216.43]:52642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <motiejus@HIDDEN>) id 1tGdqk-00082I-SP for 74217 <at> debbugs.gnu.org; Thu, 28 Nov 2024 07:42:27 -0500 Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2ea8d322297so618311a91.1 for <74217 <at> debbugs.gnu.org>; Thu, 28 Nov 2024 04:42:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jakstys.lt; s=google; t=1732797681; x=1733402481; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ektnxdvFb/am9ZGCXwMmbWyVQEhDm/XrOT89t/7nDWo=; b=GjZcmf19pxCUx/ENdredNrBm9gASIp9IlvtdSIUaVK7I47Byku65OFpt5wr6nV6ePW pN0PjqzloVuHfmfGVsQ5aqzNBr9DSHrdfCirpRNC0sAmmDXR7PgBrInE1kGUhe0GkX2W TNYu+VO4nU8KYytoedhkQlH2iz7qvoXz6wrDVmif4CgP944LKdbu9kfF04mAUCI9Bj1z gbj4WWM3tbqdWox7+BAfHSBjuZvH8t/O/yb00TNVoLmMNXDIk+NPL4rRBrut5oaYf0eV 41Jsotvz4PV17WiCV/XtEitO0JAQboyfwoyAVeFK0OToJ9plSPB6mh45H21X67soQDSP sjwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732797681; x=1733402481; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ektnxdvFb/am9ZGCXwMmbWyVQEhDm/XrOT89t/7nDWo=; b=j50BqUDXat3hIPCvOZ+9v0vRcHu16RW0UAvnPjVXw+f8MivM6HXSPXxhpje6hkWat8 fJJwBYzirXktdc810sNFcl4CMhtB/Dip4BV13yheQ+N3hbPd5fecxpFC7Lp24tbCqMP2 R8WmlYp4WkUz60EMLKYoNglvaGWCgmqAxmgk0Y5WgvrtI5Eo5DC3J/cKcQX1WRPWEuxS 2YL5QTshY4zNn8hGH2/One/OSn/fjVZC7VYtn9XAz+1fbSRSwDIzKRtfK4EVWNumGRiS 4EEHRxC8cEGQEeefntFq9cw5i6Ohsb7npaDPm1BEXpBYoV4FfwOZF7uKo3mq84BVecDW Zyeg== X-Gm-Message-State: AOJu0YzGbwF2/FBETBMNOMzfrmFIjJJCLSFPHn7icUXXEbQXNJ7eeqjn IzKCIB+eMNrT7P6pwhtkbkziNxP+JhmBKv3FOiIogrShu0txAoJ8xH/KVeDPA0mqgdjQpmrX5cz mDAVBE7KCuvWxmdpodV0HUsI0HZEZRcCdAPKNEeycd3XEgV90Gu/B X-Gm-Gg: ASbGncsm/rQL1bcRaWUx1EaShkTx8yBYp6X0G4YhHWQekVj0T/Tp+zm15d13wrjlbKL 4Rs4SlHYla/qJPJZdfVRBcFqV2fCiQ8k= X-Google-Smtp-Source: AGHT+IEP2q2eRHG3i78csjyfaSm6kU6NZdj/2u8PvUVAx3M9XhHq9oBNPXThH766xZ1+OHCBAEE1gqLsG2Mfmpw56KM= X-Received: by 2002:a17:90b:4fcc:b0:2ea:61ac:a51b with SMTP id 98e67ed59e1d1-2ee097dce78mr7741190a91.34.1732797681085; Thu, 28 Nov 2024 04:41:21 -0800 (PST) MIME-Version: 1.0 References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> <87a5djipk6.wl-hako@HIDDEN> In-Reply-To: <87a5djipk6.wl-hako@HIDDEN> From: =?UTF-8?Q?Motiejus_Jak=C5=A1tys?= <motiejus@HIDDEN> Date: Thu, 28 Nov 2024 14:41:10 +0200 Message-ID: <CA+jRjx02=69qgNeyaPn=KbTA+1OHmxM-YOsqDFRjccsNP7yW-w@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs To: Hilton Chain <hako@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?UTF-8?Q?No=C3=A9_Lopez?= <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu, Nov 28, 2024 at 1:08=E2=80=AFPM Hilton Chain <hako@HIDDEN>= wrote: > > <...> together with the concern on generated files. Hi Hilton, The only remaining, to my knowledge, binary file is `abilists`, which, once you have `zig` binary, can be generated this way: git clone https://github.com/ziglang/glibc-abi-tool; cd glibc-abi-tool git checkout fc5d0a7046b76795e4219f8f168e118ec29fbc53 /path/to/zig-0.13/bin/zig run consolidate.zig mv abilists /path/to/zig/lib/libc/glibc/abilist For 0.12.1: rm -fr glibc/2.39 sed -i '133d' consolidate.zig /path/to/zig-0.12.1/bin/zig run consolidate.zig mv abilists /path/to/zig/lib/libc/glibc/abilist I wasn't able to generate it for 0.11, but perhaps it's not as important, as I imagine there are very few people, if any, still developing on 0.11. Since one needs abilists *only* to cross-compile to non-guix glibc targets, it sounds like a vanishingly small use case for Guix to support. Motiejus
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 28 Nov 2024 11:08:45 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 28 06:08:45 2024 Received: from localhost ([127.0.0.1]:36911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tGcO5-0002eH-5N for submit <at> debbugs.gnu.org; Thu, 28 Nov 2024 06:08:45 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:60288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tGcO3-0002dy-PO for 74217 <at> debbugs.gnu.org; Thu, 28 Nov 2024 06:08:44 -0500 Date: Thu, 28 Nov 2024 19:08:09 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1732792115; 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=xjLzvdUxlsHaHqCWoxWG146rAqInk/G5q4LpvRdx95w=; b=H3TJqnu0/bJH/urlj0baf5453XS2bSjvcjK6e4Gc6JXFhE2h6apcqjN0oMg9022hgjrrA2 WA/zZHjJ8U2GrauY9NITmg6U+kxrgOrA8QmR5vkdK6DL/eAN6v14RvSOqYMAF8AATFAdk0 eS8+GCUh+Yo89lS0RxHrH+gBn0b/6HHRdbg9kFN+NpWZzKUV40BKdX9PzMptJ1UBtTiBDb 9kZXlkLI7pDmsQVdk/i2uwOrpYHgEffBSaBKKk+D163gGywb3d2O8+nEld26Z22rj+COy5 IXqjfkh3cs7wGnY/ZXcu0B1bVAdA6kGqyY5+v1WryjH0HP9ubKkXfWZku1piuA== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87a5djipk6.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87ed34viqk.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> <87ed34viqk.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) I started to learn Zig these days and adjusted patches for Zig a bit. Other than this, I have added a install-source? argument to zig-build-system, it can now install package source to "/src/<name>-<version>". "-Dtarget" is used in zig-build-system's native builds as well, same as Zig for reproducibility. Made "#:zig-inputs" a private keyword, its value will be passed to inputs like cargo-build-system (the build system doesn't extract the whole closure for now, this can be added in the future depending on how Zig ecosystem develops). Set ZIG_GLOBAL_CACHE_DIR and ZIG_LOCAL_CACHE_DIR to "/tmp/zig-cache", and set ZIG_LIBC instead of using "zig build --libc", for convenience. I think this is mostly ready ( again :) ). If there's nothing else missing, I'll post the current status and call for packages to test the build system on guix-devel, together with the concern on generated files.
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 21 Nov 2024 13:07:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 21 08:07:08 2024 Received: from localhost ([127.0.0.1]:49500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tE6tn-0001Xh-VV for submit <at> debbugs.gnu.org; Thu, 21 Nov 2024 08:07:08 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:34760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tE6tm-0001X4-E3 for 74217 <at> debbugs.gnu.org; Thu, 21 Nov 2024 08:07:07 -0500 Date: Thu, 21 Nov 2024 21:06:43 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1732194418; 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=ESkDKwKPm/YpMUCt2v8Dr5rt+SlCKAByd3eNZ4/b+x8=; b=SGdPr0+vUz7HmWNyNvtPgwFS0U3si/zL2/YTDNsvmvAQTLFQbGxbYu0ONfN/fsaHyCLD/i Q2faBoJmx9tiuwr9yPCsgN3su5fr+2VW9H+1btMvFTn7F/Ulef03TIB+wYAIbwoKDndGUQ NUPPHNkDybFQLZmkitiej+mUOX8HD4P51l2rJEt58zyt4IZq4cB67bDNIzSrYvCQ7orx9M CGpPi7MBcVJE8WD7AM5RfUqRSGfEKych7sdGE+OpVMHflF4vBDEWzOVHP9qK/uJYiMi81v /iGdPBW++Hbk/a/rmKswluU0hjDq2v4sWs1olnEk/cb7SGYNXb/VaQvl6nb8Qg== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87ed34viqk.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87frnns6wh.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> <87frnns6wh.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Tue, 19 Nov 2024 21:13:50 +0800, Hilton Chain wrote: > > I'll take a look at Zig package manager support. Added support for Zig package manager (build.zig.zon) and switched default Zig to zig-0.13, please see the two DRAFT commits. I have also updated and added some packages as examples. Since Zig has command line option changes in 0.11 (those are affecting us: "-Drelease-safe" -> "-Doptimeze=ReleaseSafe", new "-j"), I added a zig-arguments procedure which returns an alist mapping command line options. Motiejus raised concern about Zig's bundled abilist file[1][2], which is generated from sources of various glibc versions. How should we treat it? [1]: https://github.com/ziglang/zig/tree/master/lib/libc/glibc [2]: https://github.com/ziglang/glibc-abi-tool
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 19 Nov 2024 13:14:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 19 08:14:16 2024 Received: from localhost ([127.0.0.1]:41464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tDO3c-0005Cn-5v for submit <at> debbugs.gnu.org; Tue, 19 Nov 2024 08:14:16 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:59536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tDO3a-0005CY-3V for 74217 <at> debbugs.gnu.org; Tue, 19 Nov 2024 08:14:15 -0500 Date: Tue, 19 Nov 2024 21:13:50 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1732022046; 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=Bja5RyVx35HDEISRjNoEtVp8GncADQmCx3TuV+f04fA=; b=Y8BrqJ6xnTOWN1jmJ7zwmKgldqxXNp0qKvtMKTOTcmUhDac2zd9M7Za4sqxe22N8bHdTYq LtChlKo2+Fo36pteisNblBRDiRJcKIG0LQEqIcB0GWUm/Q/oM/36HQdRofVDidp87iIFwN dxD15iPVpgDKzvw4+5yy9lGZ8YuwksNMhBcEwAp0fahrjj4UAQfza8+KEaQ0f1g9UMuA8Y dIkHxfuT35Igi2oiVoAhzPXIr31gXf3TMqNrIssCAWtOa4Owebc/3LmOTTp0QvqE/8mZT3 RB7U9A+pna8CdiYBmsVZMLJTFVpEOZ8rUcOj1sBKz04TWYvFsPGdxTGz2dxndA== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87frnns6wh.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87a5dx7w1n.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Sun, 17 Nov 2024 22:51:48 +0800, Hilton Chain wrote: > > Thanks, I have ported all patches and pushed. GUIX_ZIG_LIBC_DIR is changed to > GUIX_ZIG_GLIBC_LINKER and is set as full path in Guix side because I don't want > mess with strings in Zig side... Reworked this, patched Zig to search dynamic linker in CROSS_LIBRARY_PATH or LIBRARY_PATH (added in the use-system-paths patch), no extra environment variable introduced now. > > 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... > > I have merged these phases into configure, forgot to change commit log though. Moved zig-target and zig-build-system's configure phase to (guix build zig-utils) to avoid dependency issue, as building Zig now uses them too. Removed nonfree files (IETF RFC documents) from Zig source. I'll take a look at Zig package manager support.
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 18 Nov 2024 12:00:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 18 07:00:30 2024 Received: from localhost ([127.0.0.1]:60269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tD0Qg-0006Mt-Bk for submit <at> debbugs.gnu.org; Mon, 18 Nov 2024 07:00:30 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:47474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tD0Qe-0006Md-1D for 74217 <at> debbugs.gnu.org; Mon, 18 Nov 2024 07:00:28 -0500 Date: Mon, 18 Nov 2024 20:00:06 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731931219; 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=iVqefJHyc2xUymgWvQ/xyeCTaDScoL7QnQ58tkb6CRo=; b=a/rDUNfMh2/I3sCznrbBQgLKrStgcXngKrbkdpIGiftedmQkyzRoSr2Z65Oeh23YzvHYP7 aKJPH6pPWp6LAf9xQR/QWkZn/BRh5FVGsO1d/M2Z9Zfg2GZ1yRGSby/CqcYzn0Ub+Ccstz YNpAfJ1twBy4aYxUreTc1bGe9AkTSOaA32gnuOY5oSMzedUUpC3GDI7zUIXWoHsVWFxDpI 9KoI+TUlAtM7DOQViPy2fC5nkcLa08YLIo0K2CZGFdztlWtmMu/YxWElyyfc49FcZADWa3 Un+XocYo+9GBFFuycBYtL0n0SpFnDzMwzMOGmRTzpdtHHJX58/JICLVhm8rFiQ== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87a5dwsqex.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87a5dx7w1n.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> <87a5dx7w1n.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Sun, 17 Nov 2024 22:51:48 +0800, Hilton Chain wrote: > > The reproducibility issue is related to kernel version from target ("native" by > default) information, to address this we need to specify a target for native > builds too. Specifying a target makes Zig behave like in cross-compilation, fortunately workaround for zig-build-system still applies here too. Marked the commit as DRAFT since I'm still building it.
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 17 Nov 2024 14:52:09 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 17 09:52:09 2024 Received: from localhost ([127.0.0.1]:56365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tCgdF-0005bn-AI for submit <at> debbugs.gnu.org; Sun, 17 Nov 2024 09:52:09 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:47840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tCgdC-0005bH-H8 for 74217 <at> debbugs.gnu.org; Sun, 17 Nov 2024 09:52:07 -0500 Date: Sun, 17 Nov 2024 22:51:48 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731855118; 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=seyIghHYRc0eY/gmle9O6Gs05DrpirNRorGsIt8YjcE=; b=Oe/4NS8GavARz+Wk2fSu4YFOjisO11lH41xAuicj/eat2a9f16VsA1iaFsVPAEFT3wzcgK +B+AgsigcnDnP+cZo/Iaa4Ym8lM2KqrNUGrOkIxYJygcPGf/5WmCqtyrusUWa1NUZXLLW9 PFKWQiBXPap4sd6L/TDtcBI4djnWOhLZJnqH36Y+MoAHxM9rRckpAxnV0LZ4zGqDGRIoxc Z6DHfSlZmlK/AeL374plEdV37D0cqj8d4KXCsG2OKOfr+33SnILd36XKU0xS/l62RqltWD lQImtv6eC2Q4IVrE49N1I1kI+rCtlWwH0jiVd9aCHScjOLIz3r2Yf0KNg6O+Kw== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87a5dx7w1n.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <ZzmYPYaie5Av09gX@3900XT> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <ZzmYPYaie5Av09gX@3900XT> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak=B9tys?= <motiejus@HIDDEN>, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Hilton Chain <hako@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Sun, 17 Nov 2024 15:16:13 +0800, Efraim Flashner wrote: > > [1 <text/plain; utf-8 (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 behavior > > > 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 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. > > 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. Thanks, I have ported all patches and pushed. GUIX_ZIG_LIBC_DIR is changed to GUIX_ZIG_GLIBC_LINKER and is set as full path in Guix side because I don't want mess with strings in Zig side... > 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... I have merged these phases into configure, forgot to change commit log though. The reproducibility issue is related to kernel version from target ("native" by default) information, to address this we need to specify a target for native builds too.[1] --- [1]: https://github.com/ziglang/zig/issues/22002#issuecomment-2480933071
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 17 Nov 2024 07:17:26 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 17 02:17:26 2024 Received: from localhost ([127.0.0.1]:55758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tCZXB-0001zM-Vg for submit <at> 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 <efraim.flashner@HIDDEN>) id 1tCZX8-0001z6-My for 74217 <at> 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 <at> 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 <efraim@HIDDEN> To: Hilton Chain <hako@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs Message-ID: <ZzmYPYaie5Av09gX@3900XT> Mail-Followup-To: Efraim Flashner <efraim@HIDDEN>, Hilton Chain <hako@HIDDEN>, 74217 <at> debbugs.gnu.org, Motiejus =?utf-8?Q?Jak=C5=A1tys?= <motiejus@HIDDEN>, =?utf-8?Q?No=C3=A9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> 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@HIDDEN> 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-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?utf-8?Q?Jak=C5=A1tys?= <motiejus@HIDDEN>, =?utf-8?Q?No=C3=A9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) --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 <efraim@HIDDEN> =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--
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 17 Nov 2024 01:39:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 16 20:39:45 2024 Received: from localhost ([127.0.0.1]:55303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tCUGM-0002nk-2C for submit <at> debbugs.gnu.org; Sat, 16 Nov 2024 20:39:45 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:48878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tCUGC-0002nN-PD for 74217 <at> debbugs.gnu.org; Sat, 16 Nov 2024 20:39:38 -0500 Date: Sun, 17 Nov 2024 09:39:08 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731807564; 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=JU2KEkOlVJMQY0sVi8lPfdfoNqwMKduD6jrKqyLL4R4=; b=uS4E4/DxvQbdDK1ZsgLgzW9iZuQ+4VKs6XR6zGHb+l45mWaC85GIHS1vLeSlDyhqcHSceQ M25VD1jGk3n3H520gWavJ4fn5MqQ8WnQ+QpOgMn72i+FyGZjfxvZ3sUiqJVl6cYTPKfYum mJCZCvrz40ZFZlSxyrPdTgfMmRTG7C3hEuDxJu4TB5CYFcgPSg+DBrmu3AE2K7yiNLwDDG vWfr8+Nvyj4cxqVMYW+2HQyek0ExRRc9F3RiUHlhIbrBTzjQBkZ27Mp3ijKUDoYyAXC66i 1JoCVzr0Z409NmLnWX+FF3FyHWV4XfcqWdCF6UxmBKh47YLd3v1T60D2Vurxzw== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87bjye7i6b.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87iksn7jnk.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <87iksn7jnk.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Sat, 16 Nov 2024 14:54:55 +0800, Hilton Chain wrote: > > > 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. Opened a GitHub issue: <https://github.com/ziglang/zig/issues/22002>.
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 16 Nov 2024 19:00:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 16 14:00:15 2024 Received: from localhost ([127.0.0.1]:54818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tCO1n-0001gG-12 for submit <at> debbugs.gnu.org; Sat, 16 Nov 2024 14:00:15 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:44350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tCO1k-0001cw-P5 for 74217 <at> debbugs.gnu.org; Sat, 16 Nov 2024 14:00:14 -0500 Date: Sun, 17 Nov 2024 02:59:54 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731783605; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Of2CNbgUEDulf91MXe7MwW097UAkbg0qmQi0THeGxqg=; b=pGT/bwicora9jPiedkJ1ZZd37XuX6QyRZQWpm1RCYNkrq0x04tOcFsA/uEIWjB6IYA4uom dN0RahE9bSyo9/9nX3BCIdtMy/Z1Nu/4235NV5horghax762yKgrkfRGHvmE0EmRl07c+N MGs6hXdxzjjrto0nrT8pOhWc+cZlmeINzMngQDFQDbmKV75TzGkDJth+ZKbd8pi1aWds6V cnKSqhnXBE1m2m7I50zTHBxh24HMP/nvt0nsd3lQmT+OfZyjuJeMHHqlwQMkXTRfAMwyOQ 257c4fT2QYqvdnzR+TWs1BGBg0GneUnyzdyjszJdFx77Fv1KFWf9bX1Z7g+9dQ== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87ed3b6m39.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: Efraim Flashner <efraim@HIDDEN>, Hilton Chain <hako@HIDDEN>, 74217 <at> debbugs.gnu.org, Motiejus =?ISO-8859-2?Q?Ja?= =?ISO-8859-2?Q?k=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <ZzjQf-YCLUUT2Nnk@3900XT> References: <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <87iksn7jnk.wl-hako@HIDDEN> <ZzjQf-YCLUUT2Nnk@3900XT> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Sun, 17 Nov 2024 01:03:59 +0800, Efraim Flashner wrote: > > [1 <text/plain; utf-8 (quoted-printable)>] > On Sat, Nov 16, 2024 at 02:54:55PM +0800, Hilton Chain wrote: > > 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 c= an 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 t= arget > > > 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. > > I tried adding pkg-config-for-build as a work-around but it wasn't > enough without touching the zig compiler's source too, which I didn't > attempt yesterday. > > > Adding a file with content like the following and passing --libc <this = file> to > > zig works, RUNPATH is correct and no need to set CC then. > > > > --8<---------------cut here---------------start------------->8--- > > include_dir=3D/gnu/store/dfx90sc16nphh6bd07sjyri6x4s51zni-glibc-cross-a= arch64-linux-gnu-2.39/include > > sys_include_dir=3D/gnu/store/dfx90sc16nphh6bd07sjyri6x4s51zni-glibc-cro= ss-aarch64-linux-gnu-2.39/include > > crt_dir=3D/gnu/store/dfx90sc16nphh6bd07sjyri6x4s51zni-glibc-cross-aarch= 64-linux-gnu-2.39/lib > > msvc_lib_dir=3D > > kernel32_lib_dir=3D > > gcc_dir=3D > > --8<---------------cut here---------------end--------------->8--- > > Is this the layout of the file expected? That doesn't look too hard to > create in the build-system if necessary. > > > For cross builds interpreter path like /lib/ld-linux-aarch64.so.1 is us= ed in > > output binary, I'll find a way to fix it. > > I was going to say to take a look at gcc-2.95, where we point all the > linkers for all the architectures to whatever the target architecture > is, but that won't work here since we have 1 zig binary and it can > compile for any architecture. > > I'm going to suggest against adding a cross-libc for all the different > architectures as an input, that would be crazy. > > (ins)efraim@3900XT ~/workspace/zig$ git grep 'ld-linux-aarch64.so.1' > lib/libc/include/aarch64-linux-gnu/gnu/lib-names-lp64.h:#define LD_LINUX_= AARCH64_SO "ld-linux-aarch64.so.1" > lib/libc/include/aarch64-linux-gnu/gnu/lib-names-lp64.h:#define LD_SO = "ld-linux-aarch64.so.1" > lib/std/Build.zig:/// that contains the path `aarch64-linux-gnu/lib/ld-li= nux-aarch64.so.1`. > lib/std/Target.zig: .aarch64 =3D> init("/lib/ld-linux-aarc= h64.so.1"), > Binary file stage1/zig1.wasm matches > > Would it be possible to change the init("/path/to/ld.so") part to the > zig equivalent of (search-input-file inputs "/path/to/ld.so"), and then > when it is used from Guix the cross-libc will already be in the PATH and > therefore findable from zig's search through the vector=B9 of the paths > inside PATH? > > =B9 I know it's not true but in my mind a vector and an array are the same > thing. I have added a GUIX_ZIG_LIBC_DIR environment variable, to be set as output = path of cross-libc or libc by zig-build-system, patched Zig to search it and concatenate it with "/lib/ld...". Also added the file for --libc option in zig-build-system. Cross compilati= on is available now. (only available in 0.12 for now, I'll port the patches to o= ther versions when I get up.)
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 16 Nov 2024 17:05:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 16 12:05:07 2024 Received: from localhost ([127.0.0.1]:54593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tCMEM-0004wu-Ii for submit <at> debbugs.gnu.org; Sat, 16 Nov 2024 12:05:07 -0500 Received: from mail-wm1-f48.google.com ([209.85.128.48]:46101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <efraim.flashner@HIDDEN>) id 1tCMEJ-0004ux-Bb for 74217 <at> debbugs.gnu.org; Sat, 16 Nov 2024 12:05:05 -0500 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4315baa51d8so14837655e9.0 for <74217 <at> debbugs.gnu.org>; Sat, 16 Nov 2024 09:05:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731776642; x=1732381442; 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=jjjMitwnSElSq1/pqoO4RXytQ2kcbsaEXswq3CxsvmA=; b=CZer/yzd9ADLxWbjtPr0x+As506EOtJn/XGQoFAuM3ELAZ0vpui2GkuBxjn14uTN/6 xYb0YJhiPSf1Ry1wVn1ugakOGGNmHuaorUjpg0Q9hZ658LqqI5cmnitv9hToL1AGzeCh pOa7+F2MluIs7Z1ABDojB2BlVkVF34pS+ecf2bKUVE045lb6KS3OVnxJOiLoOJjMa8K6 eLa70JxU9aihntIXVF1plfOkKf0csBlCvnNsl+f1H3RhzhxcQ8XWjOK5TCBnIQIecbpm Fz9+opNnXnw6zChh3uJgBXP9JoM4Hsi/Ox1u8N9hU36SW0kjEI5yTuP6lIZJS5e7RUnV pUlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731776642; x=1732381442; 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=jjjMitwnSElSq1/pqoO4RXytQ2kcbsaEXswq3CxsvmA=; b=F6k2M/x3zy7IldS5SdNttQDAwAGTT+3oOZdl68ft2pTv33bCuVmNO+S6Dujx8mVpqs Ud5Zy2BEYMNkPm1FRxwmm5uJ4mdERcHudXRYCaJmG9jNfVh408kiu7hlfHrISwHXbTUO eHoDROU8UTboFeaR6hCIJQmWpiPCc9H6F1/ygONmASgYysAZAYZwcnTtKKuCQt4u1h8u bi27LpCIsSPau5xMW4LvF7KztmsXuo/Qo2LFH/KaCF5z+kIlJ9E358fX4ShgLnXcao+n pUnVvjNU6DuVK8Aqhvh6VDH9voV/Adv8W2jtdsMj7wno7FG5NX8va31KWY+3jjyjRSXA Ylgw== X-Gm-Message-State: AOJu0Yzj3v2rY79+FAVvKuU0fgMBDHmy8Ivoh8QflirNyuWR0c0Qyj0Q HEjzV8itYU2nZerXXGf3HI+mrpHWXkCJ5m6uF/4yaqxD/4plsSTB X-Google-Smtp-Source: AGHT+IFJHHi+TwHcrNPHwPKmrDnlh2bebj0by44FuzGfWdWJld2bxtY7/DnnvSR8/uQ+RJjUDRBMRg== X-Received: by 2002:a05:6000:18af:b0:37d:4ef1:1820 with SMTP id ffacd0b85a97d-38225a91e80mr5668385f8f.40.1731776642218; Sat, 16 Nov 2024 09:04:02 -0800 (PST) Received: from localhost ([31.210.180.118]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3822eb34170sm3774311f8f.11.2024.11.16.09.04.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Nov 2024 09:04:01 -0800 (PST) Date: Sat, 16 Nov 2024 19:03:59 +0200 From: Efraim Flashner <efraim@HIDDEN> To: Hilton Chain <hako@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs Message-ID: <ZzjQf-YCLUUT2Nnk@3900XT> Mail-Followup-To: Efraim Flashner <efraim@HIDDEN>, Hilton Chain <hako@HIDDEN>, 74217 <at> debbugs.gnu.org, Motiejus =?utf-8?Q?Jak=C5=A1tys?= <motiejus@HIDDEN>, =?utf-8?Q?No=C3=A9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> References: <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <87iksn7jnk.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="I7I5RvsaNhwjmeFO" Content-Disposition: inline In-Reply-To: <87iksn7jnk.wl-hako@HIDDEN> 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-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?utf-8?Q?Jak=C5=A1tys?= <motiejus@HIDDEN>, =?utf-8?Q?No=C3=A9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) --I7I5RvsaNhwjmeFO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 16, 2024 at 02:54:55PM +0800, Hilton Chain wrote: > 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 tar= get > > 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. I tried adding pkg-config-for-build as a work-around but it wasn't enough without touching the zig compiler's source too, which I didn't attempt yesterday. > Adding a file with content like the following and passing --libc <this fi= le> to > zig works, RUNPATH is correct and no need to set CC then. >=20 > --8<---------------cut here---------------start------------->8--- > include_dir=3D/gnu/store/dfx90sc16nphh6bd07sjyri6x4s51zni-glibc-cross-aar= ch64-linux-gnu-2.39/include > sys_include_dir=3D/gnu/store/dfx90sc16nphh6bd07sjyri6x4s51zni-glibc-cross= -aarch64-linux-gnu-2.39/include > crt_dir=3D/gnu/store/dfx90sc16nphh6bd07sjyri6x4s51zni-glibc-cross-aarch64= -linux-gnu-2.39/lib > msvc_lib_dir=3D > kernel32_lib_dir=3D > gcc_dir=3D > --8<---------------cut here---------------end--------------->8--- Is this the layout of the file expected? That doesn't look too hard to create in the build-system if necessary. > 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. I was going to say to take a look at gcc-2.95, where we point all the linkers for all the architectures to whatever the target architecture is, but that won't work here since we have 1 zig binary and it can compile for any architecture. I'm going to suggest against adding a cross-libc for all the different architectures as an input, that would be crazy. (ins)efraim@3900XT ~/workspace/zig$ git grep 'ld-linux-aarch64.so.1' lib/libc/include/aarch64-linux-gnu/gnu/lib-names-lp64.h:#define LD_LINUX_AA= RCH64_SO "ld-linux-aarch64.so.1" lib/libc/include/aarch64-linux-gnu/gnu/lib-names-lp64.h:#define LD_SO = "ld-linux-aarch64.so.1" lib/std/Build.zig:/// that contains the path `aarch64-linux-gnu/lib/ld-linu= x-aarch64.so.1`. lib/std/Target.zig: .aarch64 =3D> init("/lib/ld-linux-aarch6= 4.so.1"), Binary file stage1/zig1.wasm matches Would it be possible to change the init("/path/to/ld.so") part to the zig equivalent of (search-input-file inputs "/path/to/ld.so"), and then when it is used from Guix the cross-libc will already be in the PATH and therefore findable from zig's search through the vector=C2=B9 of the paths inside PATH? =C2=B9 I know it's not true but in my mind a vector and an array are the sa= me thing. > > Also for reproducibility, bin/zig is the only file differs and here's t= he diff, > > I don't know about this part so I currently have no idea on fixing it. >=20 > This seem to be an upstream issue, Zig is reproducible only on the same m= achine. > I'll verify it and report to upstream. --=20 Efraim Flashner <efraim@HIDDEN> =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 --I7I5RvsaNhwjmeFO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmc40HwACgkQQarn3Mo9 g1FDKBAAsOjAtHrgqW3V3e2O+kURryk4zOC+D7b18vVDbz4vygQnJ5ysG2lAZyXl 8X/C9Yzffu5LAwXZbW2cS+HZXi+URXLxzfXwXblxGhGd0C6Qc/FK5N6K+loCnG7p R628weaFJuvQuGouu+0oa99wgmQjAYBYq5n+laPCvw6BOx5lAIilBjJcPk6Qf892 PId6I0P6TPs+MxRrWuKpVpMPh2/Su5PnH10qcHW3zSAQ81z08lvYGSBQB1y1ZLik 2/obfqjHhVz7HV4WTN/ysyqkot0JH5r1tG0RWwB0IGooX8audRG6anZiyHzKYpp8 h45JVbeIAgiFL20ka92GS4nXGxDeToJEDCpPFctDWCvnHwbYXa2v9aHVx+liJyTw +WAwMKKQ713LaNQVMaFvlSg5frTKLwqzw6r7MIVMZqakm4z9HbqH2i+uYPkNAwWc CMHvWEidwA7+KNQ7cAlb1Fx79e/dt7nopNw4Tcmqw8QT/uPd6sgg2kOjlWKmFDTY mgSWa0g5BwSLmQjuVUae7SkveOG5F2fu6QIymwQnvyXJqvNR8DK3SyCj/HiGYEP/ OcEvhnH000QUEiXp/DNdFH5cBrqFmzfxhhz5eEE3I87rJUb0UnR5sgCR4G75M/8b 0vheaTxUnSy0QRe1iu9ev5kEcdkTfpJRRz1+S170Oi2rX2lgLiA= =Fqzp -----END PGP SIGNATURE----- --I7I5RvsaNhwjmeFO--
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 16 Nov 2024 07:19:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 16 02:19:16 2024 Received: from localhost ([127.0.0.1]:51892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tCD5Q-0002Pm-LL for submit <at> debbugs.gnu.org; Sat, 16 Nov 2024 02:19:16 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:59062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tCD5P-0002PZ-0E for 74217 <at> debbugs.gnu.org; Sat, 16 Nov 2024 02:19:15 -0500 Date: Sat, 16 Nov 2024 15:18:53 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731741548; 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=kblOLDWUYcUSHNZf3yjMrHY5Oa8QVJz8ym4+vAd/1L0=; b=qsNCsPz3+8c1adPEAmRqgm7qydWLXRt5DS1qR5e1ybST6pbrejZ5+vPjqcvFlua//91Ll8 5XSA7Dd76xJgUA80sMybSCDzDOVPv9wFRALcdXkxEK9wrd0FGK3o0/lxiuyBBjcew8UMeA X0ZmDYycr32goEvU+Wd4ca0HdTnF3MyiC2KZxl9yVcejHcTzv3Bx7iJ4twfATGm0I9089S 9CRfXd1PhBHlzcTMYbLd2wIhR4VL2NXfAtzTx/vIz/UTmeVzgS5iRLXssB1dCCKqTbQoW4 JIjgg/dPqlMV3S6FmsnuwOaCOvlFU5PRTp1PrleVJEjtky0rOj6dKib3hyeCPw== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87frnr7ijm.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: Motiejus =?ISO-8859-2?Q?Jak=B9tys?= <motiejus@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <CA+jRjx2OxbzATu3=ORp_Z31xvEzykuXpxfwUhj5VU=CwqHD2yA@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <87iksn7jnk.wl-hako@HIDDEN> <CA+jRjx2OxbzATu3=ORp_Z31xvEzykuXpxfwUhj5VU=CwqHD2yA@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Sat, 16 Nov 2024 15:13:40 +0800, Motiejus Jak=C5=A1tys wrote: >=20 > On Sat, Nov 16, 2024 at 8:55=E2=80=AFAM Hilton Chain <hako@HIDDEN= e> wrote: > > > > On Fri, 15 Nov 2024 22:30:40 +0800, > > Hilton Chain wrote: > > > > > > 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. >=20 > Zig defaults to `-march=3Dnative` when building for the host. Try > ZIG_TARGET_MCPU=3Dbaseline when building stage3. Yes, ZIG_TARGET_MCPU=3Dbaseline is passed to cmake.
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 16 Nov 2024 07:14:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 16 02:14:58 2024 Received: from localhost ([127.0.0.1]:51883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tCD1F-0002Ci-VR for submit <at> debbugs.gnu.org; Sat, 16 Nov 2024 02:14:58 -0500 Received: from mail-pj1-f52.google.com ([209.85.216.52]:46470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <motiejus@HIDDEN>) id 1tCD1E-0002CX-Nf for 74217 <at> debbugs.gnu.org; Sat, 16 Nov 2024 02:14:57 -0500 Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-2ea0a592c25so1213364a91.1 for <74217 <at> debbugs.gnu.org>; Fri, 15 Nov 2024 23:14:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jakstys.lt; s=google; t=1731741231; x=1732346031; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ku7aZIGroSfKqGP1bsSEJ9t+nO9c7WWN0nWEQDvorT4=; b=NkU4UHenqq+xrmetdpGQwKY3K0prxEuyYxmeXBkDuw+P7TswWn2P6nYz/x2letbBZx MpQ+hWKQUIWrRO90yq6vO3AwNkzgTiR8VLTiR/g4e1XDPv2VRL/s1/AVbSFmXfArgNAo xo1gaos5A5Mlw2Tu4pCRjQ/4Q8gx0POAvudah2Lff/qmSqwLYQV8nfGKaTbICdndhRs4 vbAaSo4bFbpcU9jhSfuRXoZgU6/Nn48/rRFnf8GUuwy+sWtfjLi6jfiCAG15u9JzhzTg UKTl5puHlU+zEmKASymgwKKpLYO1Tq/UQIisMwnYwLdNRitqNyQAKriAopURFguZg88g BBTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731741231; x=1732346031; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ku7aZIGroSfKqGP1bsSEJ9t+nO9c7WWN0nWEQDvorT4=; b=elNJeh5oRIr0FV63Log1OB/AXO13pttK6/2LqoOuVCDljRMjG8LLLFTTVf7iIIEtzd +gaWl3TuDKktE+1fy787O0X5wsvegA2cYWMCVqZozeLBNMOa0UXACAZLc+ApJ6nDUutp ohRPlFl00hVOnL4YchDagPkajm5NEibQY83kfTmklYOI8990zEbHXGNsnNgOMNSWP8eq CsY9JPhh0gUn+CuLHBrl2mCyAnXzuQWMKXxRkWFUECSz0oDV6fYUQ8Dpd2Kfe8kT8naU NynjHU/5J5Yz3uSc1LaQnNywugu1q/YKMVhiXz4OrQIyGAvedH3ZAuIdt9Rbf85e3Era Yj0Q== X-Gm-Message-State: AOJu0YxWqsEcwVt8fWAHp49lMh+FL1G1mEYRF2aA1A+lPJOSRGpG/WCr aHkG7cEceAuwPODnPDEstkfVWhAjbiTMmnVNKm2ktmsW5NPZYvus6xsiUjfl1nsX0L38YkOB/uA nMUFrtoWepCeCXnfOdTv6xl0EQnY4H2p0wb4H X-Google-Smtp-Source: AGHT+IE5wGQ8QIPbMmhqqkHkfz3ybspMElYC0teV0zsse8BJqAF1tdD3slsBwlSETuJVt+rZkAZjOerxFFIfvjIbGew= X-Received: by 2002:a17:90b:1a85:b0:2e7:89df:858c with SMTP id 98e67ed59e1d1-2ea154cc447mr6241008a91.6.1731741230986; Fri, 15 Nov 2024 23:13:50 -0800 (PST) MIME-Version: 1.0 References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> <87iksn7jnk.wl-hako@HIDDEN> In-Reply-To: <87iksn7jnk.wl-hako@HIDDEN> From: =?UTF-8?Q?Motiejus_Jak=C5=A1tys?= <motiejus@HIDDEN> Date: Sat, 16 Nov 2024 09:13:40 +0200 Message-ID: <CA+jRjx2OxbzATu3=ORp_Z31xvEzykuXpxfwUhj5VU=CwqHD2yA@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs To: Hilton Chain <hako@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?UTF-8?Q?No=C3=A9_Lopez?= <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Sat, Nov 16, 2024 at 8:55=E2=80=AFAM Hilton Chain <hako@HIDDEN>= wrote: > > On Fri, 15 Nov 2024 22:30:40 +0800, > Hilton Chain wrote: > > > > Also for reproducibility, bin/zig is the only file differs and here's t= he 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 m= achine. > I'll verify it and report to upstream. Zig defaults to `-march=3Dnative` when building for the host. Try ZIG_TARGET_MCPU=3Dbaseline when building stage3. Motiejus
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 16 Nov 2024 06:55:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 16 01:55:14 2024 Received: from localhost ([127.0.0.1]:51853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tCCi9-0001Pk-Kl for submit <at> 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 <hako@HIDDEN>) id 1tCCi7-0001LZ-T2 for 74217 <at> 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== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87iksn7jnk.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87jzd47enj.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> <87jzd47enj.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) 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 <this file> 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.
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 15 Nov 2024 14:31:09 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 15 09:31:09 2024 Received: from localhost ([127.0.0.1]:49095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tBxLp-0007hd-7S for submit <at> 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 <hako@HIDDEN>) id 1tBxLm-0007hG-0x for 74217 <at> 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== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87jzd47enj.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <878qtl5g55.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> <878qtl5g55.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) 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---
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 15 Nov 2024 03:29:34 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 14 22:29:34 2024 Received: from localhost ([127.0.0.1]:48003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tBn1Z-0003fo-Td for submit <at> debbugs.gnu.org; Thu, 14 Nov 2024 22:29:34 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:49010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tBn1Y-0003fZ-1p for 74217 <at> debbugs.gnu.org; Thu, 14 Nov 2024 22:29:32 -0500 Date: Fri, 15 Nov 2024 11:29:10 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731641364; 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=6Mq9+ppCakrVMdYu8JFDb4WcTH0cVE9/6ApziTd8MIA=; b=JMCo05nTt3Y8vzMEIcTgT0h40UK51IARRURJcnWI5qPRlVDkrBkR/A4g9jcXI52uSdam0Y /MXtrV05XW3zBLcRZ/thvdiwI1godE4KnIyGk4b2R6HKwJC65E2oKoxmODxE9JnnDoZvQh SK1VXVWIevKscX2E/aKk+L0Op4yfpXCM4/y6TrCwY/+JTv2MHmLdweLfSPsPii54qgxd3l /xN8QE9Rx+ykbmauywV4K0ViSG9lwOmtrxOq7H4XK0PeV1RuucdmxpJlqv3FuiBBsmVy0P VbHbA3sMV3a3l9E12bsFrGv2HzEUkBZq3wsgqVPoR8yopmNO2kSBCwPIFz5nfQ== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <878qtl5g55.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <ZzXFsMhXohkMutaw@3900XT> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> <ZzXFsMhXohkMutaw@3900XT> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak?= =?ISO-8859-2?Q?=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu, 14 Nov 2024 17:41:04 +0800, Efraim Flashner wrote: > > [1 <text/plain; utf-8 (quoted-printable)>] > On Thu, Nov 14, 2024 at 05:22:17PM +0800, Hilton Chain wrote: > > 2. Pass libc to Zig's linker > > This was the behavior in 0.9, but changed due to issue on macOS[1]. (b= tw, our > > CPLUS_INCLUDE_PATH also has issue with macOS target[2]). RUNPATH for g= libc was > > missing because of this, since it's the linker handling each-lib-rpath. > > > > Since we do not support macOS anyway, can we restore this behavior? > > At worst I could see adding a comment that it would likely break future > macOS cross-compiles. I don't see an issue with either putting it back > unconditionally or trying to make it conditional based on > (%current-system) or the contents of (%current-target-system). Bad news: Zig 0.12 changed[1] behavior of each_lib_rpath, it won't filter libraries now. 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 behavior 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 also have concern for Zig's relying on /usr/bin/env (Zig uses an ELF = file to > > find dynamic linker, env is chosen for it's well-known). We have patch= ed this > > reference, not sure if it will cause issue for cross-building Zig. > > We use search-input-file in the replacement, so it should choose the > cross-binutils for the replacement /bin/env, so it shouldn't be a > problem. On Thu, 14 Nov 2024 17:47:23 +0800, Motiejus Jak=B9tys wrote: > > This file is only consulted when `-target=3Dnative`. I.e. when it needs > to compile for the host. If target is specified, it will not consult > that file. > > Just verified with zig 0.13.0: > > $ strace -f -e openat zig cc hello.c -o hello |& grep -w env > openat(AT_FDCWD, > "/nix/store/sf6y4arqcm100rnnl3dhpg732i774zp6-coreutils-9.5/bin/env", > O_RDONLY|O_NOCTTY|O_CLOEXEC) =3D 5 > $ strace -f -e openat zig cc -target x86_64-linux-gnu.2.32 hello.c -o > hello |& grep -w env > $ Thanks! Then it should be in inputs. I don't want to add coreutils to it,= so I patched reference of /usr/bin/env to clang++ (it's both in inputs and RUNPA= TH) instead. --- [1]: https://github.com/ziglang/zig/commit/852e7e24b5f15b489463bdabb0039e2a= 424e5ee6
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 14 Nov 2024 14:34:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 14 09:34:15 2024 Received: from localhost ([127.0.0.1]:45642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tBavF-0001aM-Rv for submit <at> debbugs.gnu.org; Thu, 14 Nov 2024 09:34:15 -0500 Received: from mail-pj1-f49.google.com ([209.85.216.49]:59497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <motiejus@HIDDEN>) id 1tBWSt-0004py-Qt for 74217 <at> debbugs.gnu.org; Thu, 14 Nov 2024 04:48:40 -0500 Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-2ea08667b23so270700a91.2 for <74217 <at> debbugs.gnu.org>; Thu, 14 Nov 2024 01:48:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jakstys.lt; s=google; t=1731577654; x=1732182454; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=il2dP0UdJ9GJ6oVscXXkkx2COEEPi2dAvS0HW9AGDjw=; b=InYc6zf1juOguFVApyQQiojpXgPLiq5MUEmUSJH2ga2xMtnKvP4mUuVxFq3ohDRX/e Os1U2sfQJuQfIE14eWoJGvgHLJGlyyM6TwUAB7HRe7QSGKjL0mUggKI0N0Dcxb2Gox6p qUvGIaZqNWWsZ+lJE5GQn4Tf88MXY5GW5JXO1bbNXusvC9Yhu270od8wJNfDaZfmUQZQ suPS4LkkLFJ6Ka5KWbU40VpMA6tZ+7WA6CUhbxyEM4/XQpoCq3W10xXdcqdckTSmKJEK odUoGmWSoXbSeRJuuM/cBm/E7JHUkD/dNJasojpAR2accJTQNAR/1d374dvueWNTDHTy IoSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731577654; x=1732182454; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=il2dP0UdJ9GJ6oVscXXkkx2COEEPi2dAvS0HW9AGDjw=; b=Dfznxv1I53xpoR8Vx5qS/wyYJFMcC9ltPBIGgNOhfQCt3/rnxTU2Xfo+B0IVtftz4I l+0P3yCQpWfzMimy4LgxTi9ebfxKp1+2LM90zGzWsynvHUH/adHeB2IsEFDlHeu0kWZ1 SrPTz4PPyW8c7rHusBMDl80C7Uwcz45ivyX+pZfzxk+hDsveedS+iV0S4n0ZoZBY2jvs ffawjiCOy+oaEex7OFWJAvjhwWxLDiZPQmsC8TapubDjOKA+3uxtwDBBWokudxsqzcnQ r2zPRil005v9ItNLjNybG61aKZaYmTotjk2e1pUTThBdXLMxNfta6QBUNfPycLD/ehah PZng== X-Gm-Message-State: AOJu0YxK6paxZo6Ze2ULOKAYi5Qp89PjoH82UMtVTRYASJuo8Faw3qbr cNLf2+B2q7TkCThvgdt/RidIF4PGC2wS4DDqAKGUf7kcWazzrRxUCAg1doC0XHY170fGyn4q0rY 3jJFKXp9G55m9Qt4O1W0AVyHJwiF6LIhgqSL+ X-Google-Smtp-Source: AGHT+IHB6JoDZzpBRvQ4m75JLjXFj8j49sv9hC7Ll7lHzzxcIszwODMPEhUn3S+MBzUVIWL1YUaPULHQAq02nkH/zaE= X-Received: by 2002:a17:90b:4b91:b0:2e2:b46f:d92c with SMTP id 98e67ed59e1d1-2e9b172023bmr29523110a91.14.1731577653944; Thu, 14 Nov 2024 01:47:33 -0800 (PST) MIME-Version: 1.0 References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> In-Reply-To: <87v7wqtbjq.wl-hako@HIDDEN> From: =?UTF-8?Q?Motiejus_Jak=C5=A1tys?= <motiejus@HIDDEN> Date: Thu, 14 Nov 2024 11:47:23 +0200 Message-ID: <CA+jRjx2GTNU3+Rw=aXFmq3f_K2TqKtw_i9ppy95oYdM9MV2o9g@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs To: Hilton Chain <hako@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 X-Mailman-Approved-At: Thu, 14 Nov 2024 09:34:12 -0500 Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?UTF-8?Q?No=C3=A9_Lopez?= <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu, Nov 14, 2024 at 11:22=E2=80=AFAM Hilton Chain <hako@HIDDEN= > wrote: > > On Thu, 14 Nov 2024 14:05:52 +0800, > Hilton Chain wrote: > I also have concern for Zig's relying on /usr/bin/env (Zig uses an ELF fi= le to > find dynamic linker, env is chosen for it's well-known). We have patched= this > reference, not sure if it will cause issue for cross-building Zig. This file is only consulted when `-target=3Dnative`. I.e. when it needs to compile for the host. If target is specified, it will not consult that file. Just verified with zig 0.13.0: $ strace -f -e openat zig cc hello.c -o hello |& grep -w env openat(AT_FDCWD, "/nix/store/sf6y4arqcm100rnnl3dhpg732i774zp6-coreutils-9.5/bin/env", O_RDONLY|O_NOCTTY|O_CLOEXEC) =3D 5 $ strace -f -e openat zig cc -target x86_64-linux-gnu.2.32 hello.c -o hello |& grep -w env $ Motiejus
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 14 Nov 2024 09:42:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 14 04:42:15 2024 Received: from localhost ([127.0.0.1]:45087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tBWMh-0004Yn-AO for submit <at> debbugs.gnu.org; Thu, 14 Nov 2024 04:42:15 -0500 Received: from mail-wr1-f48.google.com ([209.85.221.48]:52392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <efraim.flashner@HIDDEN>) id 1tBWMf-0004YW-IE for 74217 <at> debbugs.gnu.org; Thu, 14 Nov 2024 04:42:14 -0500 Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-37d495d217bso339409f8f.0 for <74217 <at> debbugs.gnu.org>; Thu, 14 Nov 2024 01:42:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731577268; x=1732182068; 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=20WqDyBFBuTchfVeArW6JdVvYOO4l7fwiG8lGzj3DRk=; b=fIiMVau04GHGs8Xqqk/5C+hKVSEvYHofD1xl00E5rY+5xbwlCKF31BRaiMv7q8clex 5sbUKvBTJTLkve89k3eH4XnbyLufnJgrHvEZClK2cYpBZpRM/7qTgRMPDU2obNk9dFIq YMQZBOFbwniwcKj/FFJFfqlNrZHQDhEJ8SC4qjVai3rqgHL5QXeyLEtJ68Py4rGeyycp jFqv6P+pPkYiqXDjiz5UE3oIt1kYl7iK56kkUKPgbzxgAWZrTJJXcx93X84Y7BItZmDJ TIKXi4v4DQJPvoLuDo1TasOz4LhdchmmYjyKY1WK4RStRdPN1lZVstJ3HnnI9GFMUsNS m8XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731577268; x=1732182068; 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=20WqDyBFBuTchfVeArW6JdVvYOO4l7fwiG8lGzj3DRk=; b=AejKwTENhShTZQVU+fDefY1YDhqscUl2ZYTnOYbG7h82KqgIG+onIL/JOifcipsuBu 9IJKGqaFhPtShN+8o6OsmWLIFNWav2oKWA8ekCfBbcJx0qakwrCuq7yofxBaHsdnAb/5 Hqz8ifGJRnZMO0uTWgPM8ifPVedohWGfgPWINXStxgSi+83BOw4ewKVe18rpIahLQ2GV 7y4zCSsCi57NbPWD844xOiMp8+gPDS1Q/w6BwvpghnT9SjATSn4DLYe5dga99PUpNFL4 w7VsGzeV16aDzHr0gWCiM6yu3c7T6eqe9VB2nXTsYL/CDyZokuhnFnlAR4pqwiLf0cDc bTZA== X-Gm-Message-State: AOJu0YxcoZztZuY5FD0rA7xMFrwt7Er1xO6TCR3v7NC2u7ZPaQWS6mos 3/NUjFbvk94uZSuuh+5NaXfXnuFOCzKBRwuCiLbgTfFBB2b6GgYz X-Google-Smtp-Source: AGHT+IHklvejg2z7L+jRm56wLucCU3WDDTgoDuka8NeK+DnbvNyRbpBYtdfziVf+Uq0ydFLEfk27Mg== X-Received: by 2002:a5d:5846:0:b0:37d:95a7:9e57 with SMTP id ffacd0b85a97d-382184fee3amr1456133f8f.2.1731577267295; Thu, 14 Nov 2024 01:41:07 -0800 (PST) Received: from localhost ([141.226.162.35]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3821ada3bdasm1022348f8f.3.2024.11.14.01.41.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 01:41:06 -0800 (PST) Date: Thu, 14 Nov 2024 11:41:04 +0200 From: Efraim Flashner <efraim@HIDDEN> To: Hilton Chain <hako@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs Message-ID: <ZzXFsMhXohkMutaw@3900XT> Mail-Followup-To: Efraim Flashner <efraim@HIDDEN>, Hilton Chain <hako@HIDDEN>, 74217 <at> debbugs.gnu.org, Motiejus =?utf-8?Q?Jak=C5=A1tys?= <motiejus@HIDDEN>, =?utf-8?Q?No=C3=A9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> <87v7wqtbjq.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PHkvmXZGOaAzhGJw" Content-Disposition: inline In-Reply-To: <87v7wqtbjq.wl-hako@HIDDEN> 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-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?utf-8?Q?Jak=C5=A1tys?= <motiejus@HIDDEN>, =?utf-8?Q?No=C3=A9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) --PHkvmXZGOaAzhGJw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 14, 2024 at 05:22:17PM +0800, Hilton Chain wrote: > On Thu, 14 Nov 2024 14:05:52 +0800, > Hilton Chain wrote: > > > > Currently I'm 1. modifying each-lib-rpath option of 'zig build'. 2. pa= ssing > > libc to linker. I'll write details on this when succeed. >=20 > 1. Modification about each-lib-rpath. > --8<---------------cut here---------------start------------->8--- > -feach-lib-rpath Ensure adding rpath for each used dynamic = library > --8<---------------cut here---------------end--------------->8--- >=20 > This option is on implicitly for native builds. This implicity is what o= ur Zig > currently solely relies on. >=20 > I'm modifying it so that it's also on when CROSS_LIBRARY_PATH or LIBRARY_= PATH is > set. This approach is better than my previous one since it only adds nee= ded > libraries. >=20 >=20 > 2. Pass libc to Zig's linker > This was the behavior in 0.9, but changed due to issue on macOS[1]. (btw= , our > CPLUS_INCLUDE_PATH also has issue with macOS target[2]). RUNPATH for gli= bc was > missing because of this, since it's the linker handling each-lib-rpath. >=20 > Since we do not support macOS anyway, can we restore this behavior? At worst I could see adding a comment that it would likely break future macOS cross-compiles. I don't see an issue with either putting it back unconditionally or trying to make it conditional based on (%current-system) or the contents of (%current-target-system). >=20 > I also have concern for Zig's relying on /usr/bin/env (Zig uses an ELF fi= le to > find dynamic linker, env is chosen for it's well-known). We have patched= this > reference, not sure if it will cause issue for cross-building Zig. We use search-input-file in the replacement, so it should choose the cross-binutils for the replacement /bin/env, so it shouldn't be a problem. >=20 > Thanks > --- > [1]: https://github.com/ziglang/zig/issues/10765 > [2]: https://github.com/ziglang/zig/issues/18063 --=20 Efraim Flashner <efraim@HIDDEN> =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 --PHkvmXZGOaAzhGJw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmc1xawACgkQQarn3Mo9 g1Hi9w/+MoKStnX0lS8NjHsUjTnNwMLx887hHQQXP/qYgWae/gb3bL4wCnxcfIek BJ0T+dHaLG1T+YMxe91ElDh00aYo72IBaRPjL7fxjV15Frpg0WHW28wAXWYEmBE2 e//KDc04IyODHM36v6bU6V/oDeLL6h+Hc7Cr3j5l4LzEVFB2NHTKNSkfQ2g8sPx+ 2rYp5hXfHcM8jWmpUgjE1bIx0G/GF7EVEN2mTYCTBXpdNO+jWG4Koob94+BSHwqJ WOQcy0dT7bp7Ir6nm+ICu7FAVRPrgu1zlaDUv1QWQBwh7fS1E3jhYYWAUEgBrO8i QuAYHrGvi0783XPDWuNwRltQV7CfwQpP/1w2Nay/3pi782oYEcRWmu7AttWTYNK2 XO6NKpK5c9MxNbI+dP3ppoToHsYOOUPO7Rbl4UDSnPnB+/auElVclObwdaiiymzo CoC98hlKWqjwx5O8hrU57845X9rjZ/rnxfpfO21oJZyBP7RGX8503cvGKnLPn99b 8KUEkmI0TNiqcVLPuaBo3W5CSCBn0HWnUAsYb1td49sIu5phcENLuryOSairyfSU bS5Ms5lJSttyQo1zB2+1VY+4SejWy43bsYD1djHH//ACs3ddgaVmYYV4ljCBpOS9 tZgojHKsQjKWUmQ8XO1lNKIZh3kIj7J2KvvbOEa3lsNFQOehbsA= =C+D0 -----END PGP SIGNATURE----- --PHkvmXZGOaAzhGJw--
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 14 Nov 2024 09:22:41 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 14 04:22:40 2024 Received: from localhost ([127.0.0.1]:45033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tBW3k-0003ai-KG for submit <at> debbugs.gnu.org; Thu, 14 Nov 2024 04:22:40 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:51566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tBW3h-0003aR-Hr for 74217 <at> debbugs.gnu.org; Thu, 14 Nov 2024 04:22:38 -0500 Date: Thu, 14 Nov 2024 17:22:17 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731576150; 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=MK4kFKQSIf3aVm1+sUpwSJjHfDIQpTIvSPDoeXcAHcA=; b=wXxjmwdeNZ7QE5L5V4bLjTxRSv7REz7YBZ58BKr22Io1pXsSMmQhnDgUrrdPnOOh/ilqTe n8UNZAz38u/TCAYlNRsiJWPQX32L8T5S7Vp6NgojQoUWk6vdhw6dCHWjompocQkzLJz3y6 4VOzVayayCpoVHIPX4uIqz74dLJw3DyB8xN/2WteuFtasMawmUBmg8zvsFJ0TVZ/VIoRQF q2hMQne3AGcbun4ZaxRCiUPC2AsHFxF274cuY8lMoO2MxP5Vab/NRhw26wklLJ4qo14nnK aiCuL8shH8slH1+G01ptbpdeTpiaQpAE/50ct4LgyRkxWHeZKGOJRiF3I9cSVw== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87v7wqtbjq.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <874j4auz7j.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> <874j4auz7j.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) On Thu, 14 Nov 2024 14:05:52 +0800, Hilton Chain wrote: > > 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. 1. Modification about each-lib-rpath. --8<---------------cut here---------------start------------->8--- -feach-lib-rpath Ensure adding rpath for each used dynamic library --8<---------------cut here---------------end--------------->8--- This option is on implicitly for native builds. This implicity is what our Zig currently solely relies on. I'm modifying it so that it's also on when CROSS_LIBRARY_PATH or LIBRARY_PATH is set. This approach is better than my previous one since it only adds needed libraries. 2. Pass libc to Zig's linker This was the behavior in 0.9, but changed due to issue on macOS[1]. (btw, our CPLUS_INCLUDE_PATH also has issue with macOS target[2]). RUNPATH for glibc was missing because of this, since it's the linker handling each-lib-rpath. Since we do not support macOS anyway, can we restore this behavior? I also have concern for Zig's relying on /usr/bin/env (Zig uses an ELF file to find dynamic linker, env is chosen for it's well-known). We have patched this reference, not sure if it will cause issue for cross-building Zig. Thanks --- [1]: https://github.com/ziglang/zig/issues/10765 [2]: https://github.com/ziglang/zig/issues/18063
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 14 Nov 2024 06:06:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 14 01:06:13 2024 Received: from localhost ([127.0.0.1]:44637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tBSzd-0002M7-D2 for submit <at> 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 <hako@HIDDEN>) id 1tBSzZ-0002Ll-8a for 74217 <at> 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== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <874j4auz7j.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <877c96vd3u.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> <877c96vd3u.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) 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.
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 14 Nov 2024 01:06:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 13 20:06:02 2024 Received: from localhost ([127.0.0.1]:44208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tBOJ7-0005D0-LK for submit <at> 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 <hako@HIDDEN>) id 1tBOJ5-0005Cj-BV for 74217 <at> 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== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <877c96vd3u.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <878qtmvh2i.wl-hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> <878qtmvh2i.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) 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?
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 13 Nov 2024 23:40:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 13 18:40:30 2024 Received: from localhost ([127.0.0.1]:44111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tBMyM-0001Yv-Cj for submit <at> debbugs.gnu.org; Wed, 13 Nov 2024 18:40:30 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:45824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tBMyK-0001Yd-Fh for 74217 <at> debbugs.gnu.org; Wed, 13 Nov 2024 18:40:29 -0500 Date: Thu, 14 Nov 2024 07:40:05 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731541219; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VHfRyq8iWWangiZGyDPX8d584KjRe/XpDge4LSUPMus=; b=L5oO+Uq2u1wQR814KQ99lAjUH9jsxuDRBgp7q8Vn44sn0ZenDoYPeYIQalRmSLU+YtnH4I Vdy6itgIlwFmZMBLvqZNU6G+DDjVW71jPHWls8SfMAI+z3vSSSju5phLjHujJOjOSHA0Nj /f+D+S4HJiGFFnaQvBeGuOCqUvOeJWIW/6MVh1Qt49MT/UqFbTrJgxOxa2EnyT8zsR5lQ7 RcOcGSub2LikEwiaXBbz0IWdyWLOvIYb2woqFoeAjPWXuSZOW6Xqkn7xs7FKNhqMZz5Bjj ut6PWATVhbL3xMh7n/EMyBw8A8CtZNNYoMZpoBwv4jWvRPBAwB1/yjgnoFDNsA== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <878qtmvh2i.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: Efraim Flashner <efraim@HIDDEN>, Hilton Chain <hako@HIDDEN>, 74217 <at> debbugs.gnu.org, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN>, Motiejus =?ISO-8859-2?Q?Jak=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <ZzTrpMLuGg9cr70s@3900XT> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> <ZzTrpMLuGg9cr70s@3900XT> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) 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.
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 13 Nov 2024 18:11:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 13 13:11:51 2024 Received: from localhost ([127.0.0.1]:43543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tBHqJ-0003ey-7d for submit <at> debbugs.gnu.org; Wed, 13 Nov 2024 13:11:51 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:61696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <efraim.flashner@HIDDEN>) id 1tBHqG-0003en-Cn for 74217 <at> debbugs.gnu.org; Wed, 13 Nov 2024 13:11:50 -0500 Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-43168d9c6c9so62541555e9.3 for <74217 <at> debbugs.gnu.org>; Wed, 13 Nov 2024 10:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731521447; x=1732126247; 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=Ifmv0OreLBa1pg2qKbwha9uI1P4MslEE6CtJ1g+rVg8=; b=ZGM9N92n4grDElPjZBKXivHOfo2CuzTWH1CgVgPDFeL7WnQPyfPcbEhRPRigpk2BJC PYbg/+dn0jDTsW9qy4ymCOt3pI3kaWrIYB6TQRJ3zXYWjlPsYeQUMFGs9MCKe0Fj+6pB 1/m1v8yqLaSAVfznhp6RxtXVvRch+E7gt8E2b9S3PaxCBkCaegVzhjOiQXPQn/8m9D5S 0cssnLZka271ObRbm77JOB6kpZeHS8IfKeRvw65Av/MfnM7J+EjMaS0/0IwNR27jBRz7 C7BiJpG16Q9O58wv/ZsS78RV81zMleTj9vH0pi+vTZT7tuEdMp2r+7dvvp8Ut3DuC7j3 mY5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731521447; x=1732126247; 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=Ifmv0OreLBa1pg2qKbwha9uI1P4MslEE6CtJ1g+rVg8=; b=UOByhMN6XLSoZT7J+QK29lCqvmAnW58C+EXOgZsWPa/mLkDb9fQHyIzWkgh3T94nF9 rZg0oumQTJ362lLz1emiFe/PenYd/5MCrbfWU7hi4B+w0XorMPGnjDDsBdppWFwNJJdd 7Wb2oonVXVx7W7HpRgyEFg/x9NTKd1DLKKGkm4GaH13ldvSFc21X5KRZXb+cycN+pYdM qW0CHuFTwuf9dzjmIYZscb9yWZ7tYIQ4WFRfezZR6fnGE9Zfc9H1cod/pTAX2gcDJMCI QfQY3IuMNUH5zgvpZ4Q/Amu03Ta8Gv+taxqxt+Xgr2aLsOJd0X6wyDzjey+Mq7V61QOy 9J/g== X-Gm-Message-State: AOJu0YwP3VXpc1FHokuf4FU6qGnZuqRtAcaDIQxu9ZSFFfaSXcKrVnoj geiRmw1mz1d1a4V80E7vES8Kz/5mcsRYSI/Ryne29e7zEB7jM/RW X-Google-Smtp-Source: AGHT+IGrG88U4v0r3vfO3SJvSp7c5l8KJ0lQ7HXktMP83rGUlqWFGQMvE/I2enUjSQSWBC8EHQ/E4Q== X-Received: by 2002:a5d:6da8:0:b0:37d:4846:42c3 with SMTP id ffacd0b85a97d-381f186cc3emr19068880f8f.22.1731521447011; Wed, 13 Nov 2024 10:10:47 -0800 (PST) Received: from localhost ([141.226.162.35]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381ed9ea653sm18769982f8f.65.2024.11.13.10.10.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 10:10:46 -0800 (PST) Date: Wed, 13 Nov 2024 20:10:44 +0200 From: Efraim Flashner <efraim@HIDDEN> To: Hilton Chain <hako@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs Message-ID: <ZzTrpMLuGg9cr70s@3900XT> Mail-Followup-To: Efraim Flashner <efraim@HIDDEN>, Hilton Chain <hako@HIDDEN>, 74217 <at> debbugs.gnu.org, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN>, Motiejus =?utf-8?Q?Jak=C5=A1tys?= <motiejus@HIDDEN>, =?utf-8?Q?No=C3=A9?= Lopez <noe@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxngjy4.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="klKYw7Fd5mtswz7Y" Content-Disposition: inline In-Reply-To: <87ldxngjy4.wl-hako@HIDDEN> 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-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?utf-8?Q?Jak=C5=A1tys?= <motiejus@HIDDEN>, =?utf-8?Q?No=C3=A9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) --klKYw7Fd5mtswz7Y Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 14, 2024 at 12:46:59AM +0800, Hilton Chain wrote: > Hello everyone, >=20 > With a new forced push (and new rebuilds, sorry), wip-zig-bootstrap is mo= stly > ready (for me) now. Please take a look at the first few commits, as I'm > changing Zig's behavior there, here are some additional notes: >=20 > To Efraim: Can adding pkg-config to native-inputs avoid the ncdu snippe= t? Unfortunately no. The code reads: exe.root_module.linkSystemLibrary("ncursesw", .{}); exe.root_module.linkSystemLibrary("libzstd", .{}); and so it searches (something like the following, I lost the log): /usr/lib/liblibzstd.so /usr/lib/liblibzstd.a =2E.. /gnu/store/...-glibc.../lib/liblibzstd.so /gnu/store/...-glibc.../lib/liblibzstd.a =2E.. /gnu/store/...-zstd.../lib/liblibzstd.so /gnu/store/...-zstd.../lib/liblibzstd.a so it looks like it automatically adds the 'lib' at the front. When I've built out to ncdu again I'll check it again. > I'm building this branch on my personal Cuirass instance[1][2], for x86_6= 4-linux > and aarch64-linux (qemu-binfmt), in previous revisions I have indentified > reproduciblity issue, and aarch64 builds timed-out. I haven't investigat= ed them > yet. I've also been having berlin build zig on the wip-zig-bootstrap branch for x86_64. Unfortunately there's quite a bit to go on aarch64 for it to get there, but I can confirm from my machine that it's working. > Then for what's the RUNPATH issue I have mentioned in commits: > + For current zig@HIDDEN on Guix master: glibc is missing from RUNPATH, whi= ch > fails the validate-runpath check. > + For zig@HIDDEN, some other inputs are missing, making the binary failing = to run on Guix[3]. > + dan also mentioned privately to me that they needed to add paths from > LIBRARY_PATH to RUNPATH for their own projects, so programs built by Zig = is also > affected. I didn't test it. ncdu@HIDDEN builds with zig-0.11, so that's an option for testing it out. https://dev.yorhel.nl/ncdu/changes2 > 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. > I'm not going to implement ld-wrapper within Zig. :) So my proposed worka= round > in wip-zig-bootstrap is to patch the handling logic added for Guix: >=20 > (In lib/std/zig/system/NativePaths.zig) > --8<---------------cut here---------------start------------->8--- > // Distros like guix don't use FHS, so they rely on environment > // variables to search for headers and libraries. > // We use os.getenv here since this part won't be executed on > // windows, to get rid of unnecessary error handling. > - if (std.posix.getenv("C_INCLUDE_PATH")) |c_include_path| { > + if (std.posix.getenv("CROSS_C_INCLUDE_PATH") orelse std.posix.ge= tenv("C_INCLUDE_PATH")) |c_include_path| { > var it =3D mem.tokenizeScalar(u8, c_include_path, ':'); > while (it.next()) |dir| { > try self.addIncludeDir(dir); > } > } >=20 > - if (std.posix.getenv("CPLUS_INCLUDE_PATH")) |cplus_include_path|= { > + if (std.posix.getenv("CROSS_CPLUS_INCLUDE_PATH") orelse std.posi= x.getenv("CPLUS_INCLUDE_PATH")) |cplus_include_path| { > var it =3D mem.tokenizeScalar(u8, cplus_include_path, ':'); > while (it.next()) |dir| { > try self.addIncludeDir(dir); > } > } >=20 > - if (std.posix.getenv("LIBRARY_PATH")) |library_path| { > + if (std.posix.getenv("CROSS_LIBRARY_PATH") orelse std.posix.gete= nv("LIBRARY_PATH")) |library_path| { > var it =3D mem.tokenizeScalar(u8, library_path, ':'); > while (it.next()) |dir| { > try self.addLibDir(dir); > + try self.addRPath(dir); > } > } > } > --8<---------------cut here---------------end--------------->8--- >=20 > Adding directories from CROSS_LIBRARY_PATH or LIBRARY_PATH to RUNPATH, "C= ROSS_" > part is for our cross toolchain, I haven't tested it yet. I like this, and it seems like it should make it work for cross compiling zig programs. That's part of why I added the updated ncdu commit, to use it for testing. > I think this behavior change is reasonable since the search path > (CROSS_)?LIBRARY_PATH is only automatically set by our compilers. >=20 > I added this change to 0.9 as well to make all Zigs behave consistently. = I also > used shrink-runpath phase from meson-build-system in Zig and zig-build-sy= stem. >=20 > I want to move shrink-runpath to (guix build utils) and export it too, so= that > it can be used easier. But I'm not sure if this change will trigger rebu= ilds of > other packages, so I didn't do it. I found that there was still the full LIBRARY_PATH embedded in the ncdu binary as a string. So with that I'm not sure about using RPath instead of LibDir for the LIBRARY_PATH. > Thanks to Guile, for builds not managed by guix-daemon, something like the > following script can be used, we can ship a program-file if we agree on t= his > workaround. > --8<---------------cut here---------------start------------->8--- > (use-modules (guix build meson-build-system)) >=20 > (define shrink-runpath > (assoc-ref %standard-phases 'shrink-runpath)) >=20 > (define (main directories) > (for-each (lambda (dir) > (false-if-exception > (shrink-runpath > #:elf-directories '(".") > #:outputs `(("out" . ,dir))))) > directories)) >=20 > (main (cdr (command-line))) > --8<---------------cut here---------------end--------------->8--- > Usage: guile <file-with-above-content> DIRECTORY... >=20 >=20 > Thanks > --- > [1]: https://ci.boiledscript.com/jobset/guix-zig > [2]: https://substitute.boiledscript.com, if you want to challenge it. > [3]: https://github.com/ziglang/zig/issues/18434 I spent a bunch of time trying to get zig-0.10 or 0.10.0-610 to build on riscv64 and ppc64le but haven't been able to crack it yet. --=20 Efraim Flashner <efraim@HIDDEN> =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 --klKYw7Fd5mtswz7Y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmc066AACgkQQarn3Mo9 g1EnFQ/7BUV3KU9BDhqjdcN/3UHzaNFP0+zfL1eMsFykYB55ebJ+KXuSyB5pQSpI QtXHeIKR0uk+WUfnSVZNvAz3LvwOFK84X5g7mpKiQJT2AacvkYzvU9ZzDEu9uRqW D5LfqZNkbVirAWm3ObafPAbRUE1W7TQpgXyzQpFTuBrPEPzFEXYcnKMR29JW73GI nvD4xlE25xNSQLp66U4QN9CciAehh2YDE/2VGkFIW6xObdmPPAl708gi2WTuW78V 4cqmikiq3ZuJSp9gC1JIKDrlOPVGQluNy8sAI58uyHkLqWF0xh3z6qS/6hGWwtgW /AjlNmcAhC/0GkknG/AdEsxs2tYqH9Bbsc4TLHOpGl7wXjrGKV5UgjgarviMBcPA DLr7VjKOOlHPy5tOUMsy0xDL2y1WGt1yhO/Hkumwui8Hd5Cka83rXPy1BkNIWlA0 B8A0g68GVYV9Uu7BfUk5+tmW7dXML8c/1M7tMJIkdCaV7z8WeP1b0QKcMUkO61Sz 1H9VZldUTOQjx8RfXv3Gwl/SDl6uOQibp0qMgGXIVKjgJwuEqwE7LMVOTvgWsQ3T Ax14pycXy5qaGLOe1lYATr4PCbMsp6eN59bmtiuiKg4YaqFrOaUfmNvQgoX/8jHL A+1JXT2cPLMXLmkZ+s9RkmARY3qMkJ2JwAwSxp3s6Hr0MRn1kQA= =+4fE -----END PGP SIGNATURE----- --klKYw7Fd5mtswz7Y--
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 13 Nov 2024 16:47:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 13 11:47:39 2024 Received: from localhost ([127.0.0.1]:43328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tBGWp-0008IU-ET for submit <at> debbugs.gnu.org; Wed, 13 Nov 2024 11:47:39 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:33384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tBGWm-0008IC-OF for 74217 <at> debbugs.gnu.org; Wed, 13 Nov 2024 11:47:37 -0500 Date: Thu, 14 Nov 2024 00:46:59 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731516448; 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=QAiN9SnDAOiuDa1MuVO5xtN6eLJUIz7NrdVK6sAWJBw=; b=AB2PODjQTHjCwGk/2pQri0BLZpfoE71ymCOI3vVU8MUIwY6RDhWIoMJmUzLJ1rlotI0l40 fHSZVERiiWymTy8OueWEJ8UZijAoiog7ky9FS/JPO5qGuM9qOnI+DxgDEYEjs87+ZRPPei lexNEseWjxiYnk/C0Ixwdm+Tuz813YaVckLySTUENjW7fUKJ0p/Za2rdvn1RXuLbIqbrTs /t8cypaIWT5Hd7wIM3UhmtbEfpvvgeykFn7jtksRnJUy9dK391zKbpLOA2Hc9ydgfDsBjg QNs8s9PXHQpriwF4KYK3ROXfZMlrFwKdCve5Bb6sN0aPZLQY8BB5eHzGfitv6Q== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87ldxngjy4.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Motiejus =?ISO-8859-2?Q?Jak=B9tys?= <motiejus@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN>, dan <i@HIDDEN>, Efraim Flashner <efraim@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hello everyone, With a new forced push (and new rebuilds, sorry), wip-zig-bootstrap is mostly ready (for me) now. Please take a look at the first few commits, as I'm changing Zig's behavior there, here are some additional notes: To Efraim: Can adding pkg-config to native-inputs avoid the ncdu snippet? I'm building this branch on my personal Cuirass instance[1][2], for x86_64-linux and aarch64-linux (qemu-binfmt), in previous revisions I have indentified reproduciblity issue, and aarch64 builds timed-out. I haven't investigated them yet. Then for what's the RUNPATH issue I have mentioned in commits: + For current zig@HIDDEN on Guix master: glibc is missing from RUNPATH, which fails the validate-runpath check. + For zig@HIDDEN, some other inputs are missing, making the binary failing to run on Guix[3]. + dan also mentioned privately to me that they needed to add paths from LIBRARY_PATH to RUNPATH for their own projects, so programs built by Zig is also affected. I think this is due to Zig's implemention of its own linking logic, which bypasses our ld-wrapper. I'm not going to implement ld-wrapper within Zig. :) So my proposed workaround in wip-zig-bootstrap is to patch the handling logic added for Guix: (In lib/std/zig/system/NativePaths.zig) --8<---------------cut here---------------start------------->8--- // Distros like guix don't use FHS, so they rely on environment // variables to search for headers and libraries. // We use os.getenv here since this part won't be executed on // windows, to get rid of unnecessary error handling. - if (std.posix.getenv("C_INCLUDE_PATH")) |c_include_path| { + if (std.posix.getenv("CROSS_C_INCLUDE_PATH") orelse std.posix.getenv("C_INCLUDE_PATH")) |c_include_path| { var it = mem.tokenizeScalar(u8, c_include_path, ':'); while (it.next()) |dir| { try self.addIncludeDir(dir); } } - if (std.posix.getenv("CPLUS_INCLUDE_PATH")) |cplus_include_path| { + if (std.posix.getenv("CROSS_CPLUS_INCLUDE_PATH") orelse std.posix.getenv("CPLUS_INCLUDE_PATH")) |cplus_include_path| { var it = mem.tokenizeScalar(u8, cplus_include_path, ':'); while (it.next()) |dir| { try self.addIncludeDir(dir); } } - if (std.posix.getenv("LIBRARY_PATH")) |library_path| { + if (std.posix.getenv("CROSS_LIBRARY_PATH") orelse std.posix.getenv("LIBRARY_PATH")) |library_path| { var it = mem.tokenizeScalar(u8, library_path, ':'); while (it.next()) |dir| { try self.addLibDir(dir); + try self.addRPath(dir); } } } --8<---------------cut here---------------end--------------->8--- Adding directories from CROSS_LIBRARY_PATH or LIBRARY_PATH to RUNPATH, "CROSS_" part is for our cross toolchain, I haven't tested it yet. I think this behavior change is reasonable since the search path (CROSS_)?LIBRARY_PATH is only automatically set by our compilers. I added this change to 0.9 as well to make all Zigs behave consistently. I also used shrink-runpath phase from meson-build-system in Zig and zig-build-system. I want to move shrink-runpath to (guix build utils) and export it too, so that it can be used easier. But I'm not sure if this change will trigger rebuilds of other packages, so I didn't do it. Thanks to Guile, for builds not managed by guix-daemon, something like the following script can be used, we can ship a program-file if we agree on this workaround. --8<---------------cut here---------------start------------->8--- (use-modules (guix build meson-build-system)) (define shrink-runpath (assoc-ref %standard-phases 'shrink-runpath)) (define (main directories) (for-each (lambda (dir) (false-if-exception (shrink-runpath #:elf-directories '(".") #:outputs `(("out" . ,dir))))) directories)) (main (cdr (command-line))) --8<---------------cut here---------------end--------------->8--- Usage: guile <file-with-above-content> DIRECTORY... Thanks --- [1]: https://ci.boiledscript.com/jobset/guix-zig [2]: https://substitute.boiledscript.com, if you want to challenge it. [3]: https://github.com/ziglang/zig/issues/18434
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 11 Nov 2024 12:03:19 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 11 07:03:19 2024 Received: from localhost ([127.0.0.1]:58528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tAT8Y-0004eR-UE for submit <at> debbugs.gnu.org; Mon, 11 Nov 2024 07:03:19 -0500 Received: from mail-wm1-f43.google.com ([209.85.128.43]:58612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <efraim.flashner@HIDDEN>) id 1tAT8X-0004eD-G4 for 74217 <at> debbugs.gnu.org; Mon, 11 Nov 2024 07:03:18 -0500 Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-431688d5127so34212425e9.0 for <74217 <at> debbugs.gnu.org>; Mon, 11 Nov 2024 04:03:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731326531; x=1731931331; 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=hNqUewQio+ejC9ZbVByxzbqFo4FfqDn6m5EWKp3H9g8=; b=XUA8YEEsDlcZn74Ifn5VR+jSySs3Od9tqncSfim7PLeLLTBjYtjJmlkVXbDNF8N9fX ipLUwjJlVrclVhalrzRpJFRI54XgVb4jF4GQ/4lYcA0k1LTnuuv0+ig8aDmg8vFm0o7C lP6z+0SRjQu8Mte89tqcU4ClAq659n/q1ulWEOC0npXoohGbD3Iul+pMSqXdj/mPDhe1 fNBcyQ8WrmAwPrFw67EvG1Har+yVGasXinfmVOgbge6aZaLOJMj8hcEN9heaaATqDpD9 cup9n3HxOrmeNaeskBG5BNsRIoJC9zWeWX+9HUthK56yWsBgqIqrHntgcu1GBMo++Ryz VQPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731326531; x=1731931331; 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=hNqUewQio+ejC9ZbVByxzbqFo4FfqDn6m5EWKp3H9g8=; b=nDJtm4d78QaroyFqcGCyCx79mS/81cihOsB8W35CfGDPo2w5ONzjFlI1HC1wjxfBgV lnqC8lcrmijGgp4V2vS2Yr4CrCCHswb+moIq1kp80u5Sa12QzR+/LoUj7uKeAK4282/v WmJswg4W5DBfyGjNjmvE3139RIyYnd3Z3l2qfme/JEVhL5F29ReZCSwF0jUK4dIB+uBZ iTUArQiXJXDin7nSiqRty2/3sN7PyVo8PA4OWZ8mLyf4yO/RMUySGnSlipbzG3UKwcqZ WK/Q8ACbgX1yXeJL+IQbb1QmspfTOmm+zY9/vqtltkS2j2HfBAab5gWoslx8M3goBeHg kgEQ== X-Forwarded-Encrypted: i=1; AJvYcCX7WIHh/7iBPsTLSTQ3K/gsfHeSnb7+MLxaqOk6VioUJBddcRlW3zrZokzFeWG86gEJKiJjuQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwYwk6qFoRdKzoXMiGS3SQQWb7uUzI0ZdouwuLI8RwXCt3WUdlB EYRGeb0Wt4KVzdkxSWqNVrjspegU/XbREaZc4e8fmMa2ly/Kfy0WEu1x+fyF X-Google-Smtp-Source: AGHT+IHbBu7atK86D8SBToAdfWtxcIB2zPUkz0sPrE7vUtgqNYp/+NpFWI4ERi6Q0pvnuenmuYh51A== X-Received: by 2002:a05:600c:3ca4:b0:42c:a6da:a149 with SMTP id 5b1f17b1804b1-432b751839dmr108812315e9.25.1731326531173; Mon, 11 Nov 2024 04:02:11 -0800 (PST) Received: from localhost ([141.226.162.35]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432aa5b5b2dsm206119535e9.1.2024.11.11.04.02.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 04:02:10 -0800 (PST) Date: Mon, 11 Nov 2024 14:02:08 +0200 From: Efraim Flashner <efraim@HIDDEN> To: Hilton Chain <hako@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs Message-ID: <ZzHyQOFBBiT2Rd3W@3900XT> Mail-Followup-To: Efraim Flashner <efraim@HIDDEN>, Hilton Chain <hako@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN>, 74217 <at> debbugs.gnu.org References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87cyj7g7s4.wl-hako@HIDDEN> <ZzHtoV-P_QaxhSH5@3900XT> <87v7wu7zm9.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ojUwLV3Z2O5VNh/v" Content-Disposition: inline In-Reply-To: <87v7wu7zm9.wl-hako@HIDDEN> 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-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 74217 Cc: 74217 <at> debbugs.gnu.org, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) --ojUwLV3Z2O5VNh/v Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 11, 2024 at 07:56:30PM +0800, Hilton Chain wrote: > Hi Efraim, >=20 > On Mon, 11 Nov 2024 19:42:25 +0800, > Efraim Flashner wrote: > > > > Ok, you've convinced me. I guess I finally need to get zig@HIDDEN > > building correctly on riscv64. > > > > Expect plenty of FIXUP and SQUASH commits in the future. >=20 > I have something to fix with a force-push on wip-zig-bootstrap, I'll repl= y here > when the branch is ready to be worked on :) No worries. I'm still getting a look around the branch. And if you force-push then my regular push will be rejected and I can rebase whatever I have. --=20 Efraim Flashner <efraim@HIDDEN> =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 --ojUwLV3Z2O5VNh/v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmcx8jsACgkQQarn3Mo9 g1GS3g/+JNYMc3E6h7EzJLixWVCpmJasMW2b+EFhs1LdlaNIK8c4ds/XpPle3Z4T yYIoVQAClnabQqrTWgdNGsq2PQjfp/esB4bg4zFaV0ODG9o7gQMJ9K5Um5SQUoSL z+hUOR8yrdW6dB3cSUXraTx1w0ToIoBl6H2QUpA+Lz8BSBb7PaiXv/AC27KP3t+g j5CNvCbQvDacYNCvYUm+k9s0GHffYsFMuftpLg0VzRo84FAw92hs9MvC9wYJJ/Pl YkoOTOiXnLXdJyPMX5acAGE61aFU6re/91uImWXSKWGOR4hZJ6DlY7+yMw9uA53K WBWDfnrAe7XHeb4PPQRze2MIDsnVYEtbsi//vSYdFZHpqi2MOc9mAfm8vFZWeNjJ kp0m6/413sFMc5i0Mjdd8X7foScKnvCKmtheO60ZB1fu/cL3Svfkhx9jq6ofE2Q1 zrkPhgP3+AdULqVctTw1M/BYngmaKuVObUWCdM8u095tMu50GEsPQ1ETTUZa0ikj 1NoOmMV5m2chQHj/qazuYhEib4sFwibdbOaBPLzcyB+wt/Kq0E6ymUb9jsgjmxbE oi6DQRaIUk2I7P03XvtXqmTy8HqPvZvSyrCRkGJK6YIFLwXJFn9nkFjnxdAwkH7B ZJaalCo93jdO2LrOjZH8j94ISTvrWNZpgGaXHWbJVgp7K+QB/MM= =t5x9 -----END PGP SIGNATURE----- --ojUwLV3Z2O5VNh/v--
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 11 Nov 2024 11:56:45 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 11 06:56:45 2024 Received: from localhost ([127.0.0.1]:58516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tAT2D-0004Mn-3g for submit <at> debbugs.gnu.org; Mon, 11 Nov 2024 06:56:45 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:42696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1tAT2B-0004MW-9O for 74217 <at> debbugs.gnu.org; Mon, 11 Nov 2024 06:56:44 -0500 Date: Mon, 11 Nov 2024 19:56:30 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731326195; 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=TIpv4Qf3b9fy3fSH4x/fs3YoOOcjLeFPcMe4NeP3GUs=; b=O3RcPnbrHCggEZ4V0a/FvXOkcIhJZYSwY+y2PfKLpQTObdwP9EtFCSv4OFU3oqn0PitBKR 2MVTZtfc4tw41PnML0JfCR/qYjyrtBFDg+AW5HbRzIXeDQ7nvNr3IBS8hKE6srknkmR5Cm HEtznI2EutgdhK1ejtW2FSSgskDoRuIrU7qkYgA7oNqtTGOqQL/HyPgnyjaQ8D4eN1QV3u 2Ii5ZrPg45kVUXlExtIHqTHtTbowHg330fNjlYs9adGHkIrCVUxN5LQLKD5HTGggk9dz8J Cr8yAsKEvbBngA0DPDBsWeTzhqiSlAZQginfqATsY17b2w0vqR0J3kHARQKU4A== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87v7wu7zm9.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: Efraim Flashner <efraim@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <ZzHtoV-P_QaxhSH5@3900XT> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87cyj7g7s4.wl-hako@HIDDEN> <ZzHtoV-P_QaxhSH5@3900XT> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Hilton Chain <hako@HIDDEN>, 74217 <at> debbugs.gnu.org, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Efraim, On Mon, 11 Nov 2024 19:42:25 +0800, Efraim Flashner wrote: > > Ok, you've convinced me. I guess I finally need to get zig@HIDDEN > building correctly on riscv64. > > Expect plenty of FIXUP and SQUASH commits in the future. I have something to fix with a force-push on wip-zig-bootstrap, I'll reply here when the branch is ready to be worked on :)
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 11 Nov 2024 11:43:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 11 06:43:37 2024 Received: from localhost ([127.0.0.1]:58489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tASpU-0003ky-VL for submit <at> debbugs.gnu.org; Mon, 11 Nov 2024 06:43:37 -0500 Received: from mail-wm1-f51.google.com ([209.85.128.51]:52462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <efraim.flashner@HIDDEN>) id 1tASpS-0003kh-2H for 74217 <at> debbugs.gnu.org; Mon, 11 Nov 2024 06:43:35 -0500 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-43162cf1eaaso56158375e9.0 for <74217 <at> debbugs.gnu.org>; Mon, 11 Nov 2024 03:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731325348; x=1731930148; 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=Gp+0IJXgDO4gYbqF2wRMqfAQp0h8kUMuXmGtuhpA0UE=; b=TqYCzLoJw3nHt+6txrXkNBWpLW0yXNWjAvi6NTuCmiUZuXMOoldyc3BMjWUXhkJPoN cxwjvnOo9p/WNmYN8AULHM6bZz1YDvwisueTvgnSyKFMtxmlvkX/vWdJvDMC3k75DNDu g0w6wllxbow4N1D4BXq3J5LOxH/eafETqdOqQ5wnEC0XDfk32UvogcffvggKFf5X2Tf2 q0KG1/m6S3wyTGs5zQMKyeOUPXXZNrk7boze6Zl4mZQfNTlqafk11ipNKifRUV8n5vXj AFVrWefRPXix00qcOmMLRfsSVXtV1IR8vJBf0vRwcp2RNaKT9ouLFnQ7pjAXcIJuVRw1 fKrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731325348; x=1731930148; 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=Gp+0IJXgDO4gYbqF2wRMqfAQp0h8kUMuXmGtuhpA0UE=; b=v9UfFWTyH+EzQlc8pNWuy9o5SrXzzR6EugVqeHAaWTVrlimzOsCGeJhP2M9h1LqGaW DWfKVqjZsfJhFac5akfW+OtRa/6qPa258Zpszf+xviuwOBjjLn8jdcDlSVU7wLzvTUsA YZrzQ0AZe/x97NZQkfaSBHXocDrD8EaMO7bIHzSK9YuYFZFkLmFkfv/ujKq17OttXlP5 2NTO8zfiOfvRXkkKFjufSeJWMn4g0dk7fwkIGfeT80Q/tnk2f8fpQTyuTUUbO4TBMpHw T06Ih8N4gQ3lAs6tRnl2T1goM+br9Nw2Ct6zOfg7mWSGZOFPTfWP6PLSEzAxqXix+dYg aRNA== X-Forwarded-Encrypted: i=1; AJvYcCVyVuHAybNLFdc/8nvHSrJg65uBqZF/YYV2a7iB7CsqewI/pO+6/0YD1D8nnvwO/9JQfWsIlg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzHL6jI8xwvt2coDf1vwLZ34ygnpVV5BTCDhdqYuVo0NEjiwEK1 LR6kIeApu8SJzyz2P20OWiDJDUuVvvNCnIz/imertDWqeaZrfDJc X-Google-Smtp-Source: AGHT+IHtZCcsS7CB+sb4q9BR36f8NWSJUIr5NLVRAu2H2FFdxKU9m9oma+PFjtFkFEpCiFm8pGpAUw== X-Received: by 2002:a05:600c:4f4a:b0:431:9a26:3cf6 with SMTP id 5b1f17b1804b1-432b74fed4amr137638775e9.4.1731325347983; Mon, 11 Nov 2024 03:42:27 -0800 (PST) Received: from localhost ([141.226.162.35]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432aa70a2ccsm215725055e9.31.2024.11.11.03.42.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 03:42:27 -0800 (PST) Date: Mon, 11 Nov 2024 13:42:25 +0200 From: Efraim Flashner <efraim@HIDDEN> To: Hilton Chain <hako@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs Message-ID: <ZzHtoV-P_QaxhSH5@3900XT> Mail-Followup-To: Efraim Flashner <efraim@HIDDEN>, Hilton Chain <hako@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN>, 74217 <at> debbugs.gnu.org References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87cyj7g7s4.wl-hako@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Or4jK+krd+YOk398" Content-Disposition: inline In-Reply-To: <87cyj7g7s4.wl-hako@HIDDEN> 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-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 74217 Cc: 74217 <at> debbugs.gnu.org, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) --Or4jK+krd+YOk398 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 07, 2024 at 09:19:23AM +0800, Hilton Chain wrote: > Hi Ekaitz, >=20 > On Wed, 06 Nov 2024 05:47:48 +0800, > Ekaitz Zarraga wrote: > > > > Hi, > > > > In order to include modern versions of Zig (Zig 0.12+) in Guix, we need= to > > remove the binary blobs. > > > > I open this issue to track this effort and store information about the = process. > > > > Some Guix user is trying to achieve the same goal: > > > > https://git.jakstys.lt/motiejus/zig-repro > > > > And discussing about it here: > > > > https://ziggit.dev/t/building-self-hosted-from-the-original-c-implement= ation/6607/11 >=20 >=20 > Great news, thanks for sharing! >=20 >=20 > > We could use that effort as a reference and package it to Guix. >=20 >=20 > Excited to know Zig developers are willing to help with bootstrapping! We > shouldn't miss this chance :) >=20 > I'll look into replicating the current progress this weekend. Anyone rea= ding > this mail wants to join in? Ok, you've convinced me. I guess I finally need to get zig@HIDDEN building correctly on riscv64. Expect plenty of FIXUP and SQUASH commits in the future. --=20 Efraim Flashner <efraim@HIDDEN> =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 --Or4jK+krd+YOk398 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmcx7Z4ACgkQQarn3Mo9 g1H3VhAAjSvSv881uk3LrTDMsa8YOOkwHPMnxydZwefpzCr9pL1UAUyw0ZRO+GTk tGmJt4yyA9vCJ/+bkQSnF8J8ttgTrTlgxNs7TGT/NlJM49WaqOIN+VYOEl51+Xaz cfoYYitDxmSmZY2i9PE+SEiJudfCiJVuZrNsk2Yll2JzTAxYDSllO58xIVXVkkr5 Gkt+t7DWyuBo/LUCAmJY7BrA7yj6rzn3IDiCFPR8K4X6VsQwZa/LeoqzgwGfx+Id jHBJV6zWmk1cm29aWBtwXSo5pmC0xenOtzOKlDpzbeFCF+Q3/QhhxpaJHErLQBOs Rw71VJe8yNYEhZVD0XvoNFQ2MtCOv0etIXvyUKQXrmBA1sTF8RVfoJHU6xbHlKfb t/Xpc/s1aDCNwDmEE3XpsqngtpgIL2xVZW299CdceWvi+AzvWiNrTDSBZ/hmTpCH /nesxa5Wkc57+ECr0crt/2tOJbckoP7xQYGl4T7Q8eycqR3FWl4vJd+ct1PdZNgt Y4MnByHkSrX1ilJH8vAUBHKAOm7tesFTabL8T6c+or8i4kY3jnL1PNI2FBi+t8Nr GCQevedgyRHWYzaY/6B0sRVWlijdus0pNVXlF4uFgNkmrImUt4MJV1CBxzQzyh9D 5E2DHYp07opDQxPc58eMOcNgg5bB7doQGX3H1iX8tH50/PV/Oyc= =Fjzq -----END PGP SIGNATURE----- --Or4jK+krd+YOk398--
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 9 Nov 2024 17:26:38 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 09 12:26:38 2024 Received: from localhost ([127.0.0.1]:54339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t9pEM-0006Ut-6e for submit <at> debbugs.gnu.org; Sat, 09 Nov 2024 12:26:38 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:34604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1t9pEK-0006Ub-4w for 74217 <at> debbugs.gnu.org; Sat, 09 Nov 2024 12:26:37 -0500 Date: Sun, 10 Nov 2024 01:26:21 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731173188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ePRGhsTXdaLjFMeHbcMsSubvkKFS32NpBij2OeAK5hE=; b=uTFW73PdFPsOchae4QwHa4GB/QzVo2tos1mkfqxBQ9wFQa0iKZ7JrhgttpiJ+/3O4Lw56w 8emW5dWgAtTqauOEHGVEMFwtLCWrhleZZQowhEIFo6zm6nE8HqspcYsIzhAyI882GUO3NK aQysZEon69a4Rte1RP+Pw8G1g+P2/7QQuCaRPTNGEmH7GyABGjUyseRcvBOYG2LTCwyKZg UbMYRm96PaXCAbBEhrxek0ZZ7uF4dCPw3BHvgjt2lEq7PA+qCsEfejIPbAXO7Pko+abaj0 cXpStzygqj9YAqd4q2UzothNu3mmBCsfzue8sYjKH9lX5l7ILgb0VVRdbBbw6w== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <871pzk1fpe.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: 74217 <at> debbugs.gnu.org X-Debbugs-Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, =?ISO-8859-1?Q?No=E9?= Lopez <noe@HIDDEN> Subject: Re: [PATCH 0/2] Initial step on bootstrapping Zig. In-Reply-To: <cover.1731084096.git.hako@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <cover.1731084096.git.hako@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) I have added a wip-zig-bootstrap[1] branch. Variables are not exported, you can build them locally with the following command: --8<---------------cut here---------------start------------->8--- ZIG=$( sed 's/^\(define(-public)? (zig-.*-.*)/\2/p' gnu/packages/zig.scm \ --quiet --regexp-extended | tail --lines=1 ) ./pre-inst-env guix build --expression="(@@ (gnu packages zig) $ZIG)" --8<---------------cut here---------------end--------------->8--- Thanks --- [1]: https://git.savannah.gnu.org/cgit/guix.git/log/?h=wip-zig-bootstrap
ekaitz@HIDDEN, noe@HIDDEN, bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 8 Nov 2024 17:44:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 08 12:44:37 2024 Received: from localhost ([127.0.0.1]:51951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t9T2D-0001Qa-50 for submit <at> debbugs.gnu.org; Fri, 08 Nov 2024 12:44:37 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:51268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1t9T2A-0001Q8-R7 for 74217 <at> debbugs.gnu.org; Fri, 08 Nov 2024 12:44:35 -0500 From: Hilton Chain <hako@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731087869; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qSnCG+f4aj/3XNO21aE89dw5huj2NoIw9HZC+sqsQ3w=; b=IWOrhJBDOImyFMEi2oGozv+IYIL82T/yL7rvAca6YFUG9JTNjUzrlSq3QfSZ9wXdLeaMR7 CnkvbHvBbFkeIgRE5vgVM4GWzmdysCeAkPeJbSkCxe2sd+uORxQ00su8mSvTAButnnhY5C FJeltff5c2QGoMW0YPm/AE+v8wnLuHlS0P82g/x4BJkOnLIvxNZJ9+/zblVxHcrfjKBTnN FXzZfAW3kXq722wYDRIFsiaYcYhIlfcVXX9c8mGlGi0KHjCslCOeKR5ccP94uPrm5kWos8 BAQrPhDftHsd2ZJEUdFx3HfU7rNd1LvMUda6Najq1nxNbLrBhtjECyQE1jEW4A== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN To: 74217 <at> debbugs.gnu.org Subject: [PATCH 2/2] gnu: Add zig-0.10.0-610. Date: Sat, 9 Nov 2024 01:44:07 +0800 Message-ID: <91e88fbf01f28428bdf46464efd4912e3fd29f5d.1731084096.git.hako@HIDDEN> In-Reply-To: <cover.1731084096.git.hako@HIDDEN> References: <cover.1731084096.git.hako@HIDDEN> MIME-Version: 1.0 X-Debbugs-Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, Hilton Chain <hako@HIDDEN>, Noé Lopez <noe@HIDDEN> Content-Transfer-Encoding: 8bit X-Spamd-Bar: ----- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Hilton Chain <hako@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) * gnu/packages/zig.scm (zig-0.10.0-610): New variable. Change-Id: I277a7f5e9781e89d7ad7cd108fec9afcf8cd23d9 --- gnu/packages/zig.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm index 68907fd04e..4174dba38b 100644 --- a/gnu/packages/zig.scm +++ b/gnu/packages/zig.scm @@ -299,4 +299,50 @@ (define zig-0.10.0-610-bootstrap (prepend binaryen))) (outputs '("out" "zig1"))))) +;; Bootstrap with our zig1.wasm. +(define zig-0.10.0-610 + (let ((commit "e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118") + (revision "610")) + (package + (inherit zig-0.10) + (name "zig") + (version (git-version "0.10.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ziglang/zig") + (commit commit))) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + (snippet '(delete-file "stage1/zig1.wasm.zst")) + (sha256 + (base32 + "08pm3f4hh6djl3szhqgm7fa3qisdl2xh9jrp18m0z7bk2vd0bzw7")))) + (arguments + (substitute-keyword-arguments (package-arguments zig-0.10) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'unpack 'unpack-zig1 + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (install-file (search-input-file + (or native-inputs inputs) "bin/zig1.wasm.zst") + "stage1"))) + (add-after 'install 'update-zig1 + (lambda _ + (invoke (string-append #$output "/bin/zig") + "build" "update-zig1" "--verbose"))) + (add-after 'update-zig1 'install-zig1 + (lambda _ + (install-file "stage1/zig1.wasm.zst" + (string-append #$output:zig1 "/bin")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke (string-append #$output "/bin/zig") + "test" "-I" "test" "test/behavior.zig")))))))) + (native-inputs + (modify-inputs (package-native-inputs zig-0.10) + (prepend binaryen `(,zig-0.10.0-610-bootstrap "zig1")))) + (outputs '("out" "zig1"))))) + (define-public zig zig-0.10) -- 2.46.0
ekaitz@HIDDEN, hako@HIDDEN, noe@HIDDEN, bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 8 Nov 2024 17:44:34 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 08 12:44:34 2024 Received: from localhost ([127.0.0.1]:51948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t9T29-0001QJ-Di for submit <at> debbugs.gnu.org; Fri, 08 Nov 2024 12:44:34 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:51258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1t9T27-0001Q2-Ez for 74217 <at> debbugs.gnu.org; Fri, 08 Nov 2024 12:44:32 -0500 From: Hilton Chain <hako@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731087865; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BR5zMJrzWGzum5ceUW2ib55K6AConScSaX29qBdVwx8=; b=g3ZiN6Yjbb9B8CVHfeWHbhZ6xAiQFovqllt1CJQOaB14pnnO431b8KHYTgZ7DX+/HbwOYU euDAMYgSVqmnAUb6eR5hvXo9/8vhXsKHZkjJxvZshi0tvlpR1UCLL3x5H1d+OVng2Lok6V EIMXuFyR6+2+FMaH4UdeuC3dlZ48sKaND/1sUWdGLztz745Cvlw1BSA5/IjPv7hWpzJDNX 5HCK1kHh607zrQfWQzKw0UXi+9T08Qo5GgFf9khHUcfF9unksHpfVezfI3ihAJVdzAT7ue 6Kmokiisp/T8O0ZgBWaHSMp+pfhU9GE4rWYBxr66pey+tlDIWS/Yjj3eJCOXmw== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN To: 74217 <at> debbugs.gnu.org Subject: [PATCH 1/2] gnu: Add zig-0.10.0-610-bootstrap. Date: Sat, 9 Nov 2024 01:44:06 +0800 Message-ID: <81bba1694a0f1ff48967727855b158487340deb9.1731084096.git.hako@HIDDEN> In-Reply-To: <cover.1731084096.git.hako@HIDDEN> References: <cover.1731084096.git.hako@HIDDEN> MIME-Version: 1.0 X-Debbugs-Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, Hilton Chain <hako@HIDDEN>, Noé Lopez <noe@HIDDEN> Content-Transfer-Encoding: 8bit X-Spamd-Bar: ----- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Hilton Chain <hako@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) * gnu/packages/patches/zig-0.10.0-610-bootstrap-resolve-conflicts.patch: New file. * gnu/local.mk (dist_patch_DATA): Regisiter it. * gnu/packages/zig.scm (zig-0.10.0-538-source,zig-0.10.0-539-patch) (zig-0.10.0-542-patch,zig-0.10.0-610-bootstrap): New variables. Change-Id: I132bbad34f40b919b4573e02d0f40eb4a007a26c --- gnu/local.mk | 1 + ...10.0-610-bootstrap-resolve-conflicts.patch | 87 +++++++++++++++ gnu/packages/zig.scm | 105 +++++++++++++++++- 3 files changed, 192 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/zig-0.10.0-610-bootstrap-resolve-conflicts.patch diff --git a/gnu/local.mk b/gnu/local.mk index ae902a5ab2..2cc2ea4c81 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2358,6 +2358,7 @@ dist_patch_DATA = \ %D%/packages/patches/xygrib-newer-proj.patch \ %D%/packages/patches/yggdrasil-extra-config.patch \ %D%/packages/patches/zig-0.9-riscv-support.patch \ + %D%/packages/patches/zig-0.10.0-610-bootstrap-resolve-conflicts.patch \ %D%/packages/patches/zig-use-baseline-cpu-by-default.patch \ %D%/packages/patches/zig-use-system-paths.patch \ %D%/packages/patches/zsh-egrep-failing-test.patch \ diff --git a/gnu/packages/patches/zig-0.10.0-610-bootstrap-resolve-conflicts.patch b/gnu/packages/patches/zig-0.10.0-610-bootstrap-resolve-conflicts.patch new file mode 100644 index 0000000000..5ad5ffc249 --- /dev/null +++ b/gnu/packages/patches/zig-0.10.0-610-bootstrap-resolve-conflicts.patch @@ -0,0 +1,87 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1c03faf1e9..89406eb1b2 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -846,16 +846,17 @@ else() + endif() + + set(ZIG_BUILD_ARGS +- --zig-lib-dir "${CMAKE_SOURCE_DIR}/lib" +- "-Dconfig_h=${ZIG_CONFIG_H_OUT}" +- "-Denable-llvm" +- ${ZIG_RELEASE_ARG} +- ${ZIG_STATIC_ARG} +- ${ZIG_NO_LIB_ARG} +- ${ZIG_SINGLE_THREADED_ARG} +- "-Dtarget=${ZIG_TARGET_TRIPLE}" +- "-Dcpu=${ZIG_TARGET_MCPU}" +- "-Dversion-string=${RESOLVED_ZIG_VERSION}" ++ --zig-lib-dir "${CMAKE_SOURCE_DIR}/lib" ++ "-Dconfig_h=${ZIG_CONFIG_H_OUT}" ++ "-Denable-llvm" ++ "-Denable-stage1" ++ ${ZIG_RELEASE_ARG} ++ ${ZIG_STATIC_ARG} ++ ${ZIG_NO_LIB_ARG} ++ ${ZIG_SINGLE_THREADED_ARG} ++ "-Dtarget=${ZIG_TARGET_TRIPLE}" ++ "-Dcpu=${ZIG_TARGET_MCPU}" ++ "-Dversion-string=${RESOLVED_ZIG_VERSION}" + ) + + add_custom_target(stage3 ALL +diff --git a/build.zig b/build.zig +index cf0e092326..7f80c3e1df 100644 +--- a/build.zig ++++ b/build.zig +@@ -142,7 +142,8 @@ pub fn build(b: *Builder) !void { + const force_gpa = b.option(bool, "force-gpa", "Force the compiler to use GeneralPurposeAllocator") orelse false; + const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse (enable_llvm or only_c); + const sanitize_thread = b.option(bool, "sanitize-thread", "Enable thread-sanitization") orelse false; +- const strip = b.option(bool, "strip", "Omit debug information"); ++ const strip = b.option(bool, "strip", "Omit debug information") orelse false; ++ const use_zig0 = b.option(bool, "zig0", "Bootstrap using zig0") orelse false; + const value_tracing = b.option(bool, "value-tracing", "Enable extra state tracking to help troubleshoot bugs in the compiler (using the std.debug.Trace API)") orelse false; + + const mem_leak_frames: u32 = b.option(u32, "mem-leak-frames", "How many stack frames to print when a memory leak occurs. Tests get 2x this amount.") orelse blk: { +@@ -151,7 +152,22 @@ pub fn build(b: *Builder) !void { + break :blk 4; + }; + +- const exe = addCompilerStep(b); ++ if (only_c) { ++ target.ofmt = .c; ++ } ++ ++ const main_file: ?[]const u8 = mf: { ++ if (!have_stage1) break :mf "src/main.zig"; ++ if (use_zig0) break :mf null; ++ break :mf "src/stage1.zig"; ++ }; ++ ++ const exe = b.addExecutable("zig", main_file); ++ ++ const compile_step = b.step("compile", "Build the self-hosted compiler"); ++ compile_step.dependOn(&exe.step); ++ ++ exe.stack_size = stack_size; + exe.strip = strip; + exe.sanitize_thread = sanitize_thread; + exe.build_id = b.option(bool, "build-id", "Include a build id note") orelse false; +diff --git a/src/translate_c/ast.zig b/src/translate_c/ast.zig +index 20e4259725..bc0f002c21 100644 +--- a/src/translate_c/ast.zig ++++ b/src/translate_c/ast.zig +@@ -1448,6 +1448,12 @@ fn renderNode(c: *Context, node: Node) Allocator.Error!NodeIndex { + .optional_type => return renderPrefixOp(c, node, .optional_type, .question_mark, "?"), + .address_of => { + const payload = node.castTag(.address_of).?.data; ++ if (c.zig_is_stage1 and payload.tag() == .fn_identifier) ++ return try c.addNode(.{ ++ .tag = .identifier, ++ .main_token = try c.addIdentifier(payload.castTag(.fn_identifier).?.data), ++ .data = undefined, ++ }); + + const ampersand = try c.addToken(.ampersand, "&"); + const base = if (payload.tag() == .fn_identifier) diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm index 6994d48818..68907fd04e 100644 --- a/gnu/packages/zig.scm +++ b/gnu/packages/zig.scm @@ -23,13 +23,15 @@ (define-module (gnu packages zig) #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix utils) + #:use-module (guix download) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system cmake) #:use-module (gnu packages) #:use-module (gnu packages compression) #:use-module (gnu packages llvm) - #:use-module (gnu packages llvm-meta)) + #:use-module (gnu packages llvm-meta) + #:use-module (gnu packages web)) (define-public zig-0.9 (package @@ -196,4 +198,105 @@ (define-public zig-0.10 (properties `((max-silent-time . 9600) ,@(clang-compiler-cpu-architectures "15"))))) +(define zig-0.10.0-538-source + ;; "std: added eql to DynamicBitSet and DynamicBitSetUnmanaged" + (let ((commit "bf316e550671cc71eb498b3cf799493627bb0fdc") + (revision "538")) + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ziglang/zig") + (commit commit))) + (file-name (git-file-name "zig" (git-version "0.10" revision commit))) + (sha256 + (base32 "1dchc2bp842jlw0byssqzindv8cigpqcj2hk3752667jrrww13vv"))))) + +(define zig-0.10.0-539-patch + ;; "remove `-fstage1` option" + (let ((commit "28514476ef8c824c3d189d98f23d0f8d23e496ea")) + (origin + (method url-fetch) + (uri (string-append + "https://github.com/ziglang/zig/commit/" commit ".patch")) + (sha256 + (base32 "0qxxiafg2sd5rr4xhw0c12rygd7zh1rmf3x8hfialyxmsbi5pfxp"))))) + +(define zig-0.10.0-542-patch + ;; "actually remove stage1" + (let ((commit "3ba916584db5485c38ebf2390e8d22bc6d81bf8e")) + (origin + (method url-fetch) + (uri (string-append + "https://github.com/ziglang/zig/commit/" commit ".patch")) + (sha256 + (base32 "1l09gmbr3vqzinb63kvaskgs1d0mvm1m7w3ai3ngwg5zlabyya35"))))) + +;; Build zig1.wasm from source. +(define zig-0.10.0-610-bootstrap + (let ((commit "e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118") + (revision "610")) + (package + (inherit zig-0.10) + (name "zig") + (version (git-version "0.10.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ziglang/zig") + (commit commit))) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + (snippet '(delete-file "stage1/zig1.wasm.zst")) + (sha256 + (base32 + "08pm3f4hh6djl3szhqgm7fa3qisdl2xh9jrp18m0z7bk2vd0bzw7")))) + (arguments + (substitute-keyword-arguments (package-arguments zig-0.10) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'unpack 'prepare-source + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (copy-recursively "." "../source-backup") + ;; Revert "actually remove stage1". + (invoke "patch" "--reverse" "--strip=1" + "--input" #+zig-0.10.0-542-patch) + ;; Revert "remove `-fstage1` option". + (false-if-exception + (invoke "patch" "--reverse" "--strip=1" + "--input" #+zig-0.10.0-539-patch)) + ;; Resolve conflicts in previous patching. + (invoke + "patch" "--forward" "--strip=1" "--input" + #+(local-file + (search-patch + "zig-0.10.0-610-bootstrap-resolve-conflicts.patch"))) + ;; Restore build system. + (rename-file "stage1/config.zig.in" "src/config.zig.in") + (substitute* "src/config.zig.in" + (("(have_stage1 = )false" _ prefix) + (string-append prefix "true"))) + (for-each + (lambda (file) + (copy-file (string-append #+zig-0.10.0-538-source "/" file) + file)) + '("build.zig" "CMakeLists.txt")))) + (add-after 'install 'build-zig1 + (lambda _ + (copy-recursively "../source-backup" ".") + (invoke (string-append #$output "/bin/zig") + "build" "update-zig1" "--verbose"))) + (add-after 'build-zig1 'install-zig1 + (lambda _ + (install-file "stage1/zig1.wasm.zst" + (string-append #$output:zig1 "/bin")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke (string-append #$output "/bin/zig") + "test" "-I" "test" "test/behavior.zig")))))))) + (native-inputs + (modify-inputs (package-native-inputs zig-0.10) + (prepend binaryen))) + (outputs '("out" "zig1"))))) + (define-public zig zig-0.10) -- 2.46.0
ekaitz@HIDDEN, hako@HIDDEN, noe@HIDDEN, bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 8 Nov 2024 17:44:07 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Nov 08 12:44:07 2024 Received: from localhost ([127.0.0.1]:51945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t9T1j-0001PX-3F for submit <at> debbugs.gnu.org; Fri, 08 Nov 2024 12:44:07 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:33106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1t9T1f-0001Ou-88 for 74217 <at> debbugs.gnu.org; Fri, 08 Nov 2024 12:44:06 -0500 From: Hilton Chain <hako@HIDDEN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1731087834; 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=39DvTgpH7NZCNTrrYj6A33Z12r1JgC0juiqisopuHA0=; b=TYoJkLMqRoYHYSWUvHUmBbdHTIPFsgu2e0jk/ntA6qy0VybHttiFLZ3VT6argvPYRNr2eD 4NHjvzKnfbT3u/4RAd8isM3BFSuDNGP+vVeZD1AHBn4NQWBoDLtt5rN+lI5OITll/Ej16x 5fBe2fYHUsBcfNaZKVJF+bNRHVaJS1BzPLyL+NdJDQuoY0VdF77hb6Am98Y9gCXZZl6FWv jpVPNGScJhAQgCkSldNmhxm7JTpfwvvt4lDEF4VJgaWvDkccN00qSiOknFse92s6axPKkM 6tu8FjxgBmERIhM74rpWJKoWsz4pFfOQeRITKYYYAhOLdLhtMZRGnY3kW4UMpg== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN To: 74217 <at> debbugs.gnu.org Subject: [PATCH 0/2] Initial step on bootstrapping Zig. Date: Sat, 9 Nov 2024 01:43:25 +0800 Message-ID: <cover.1731084096.git.hako@HIDDEN> In-Reply-To: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> MIME-Version: 1.0 X-Debbugs-Cc: Ekaitz Zarraga <ekaitz@HIDDEN>, Hilton Chain <hako@HIDDEN>, Noé Lopez <noe@HIDDEN> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Hilton Chain <hako@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Finished step 00 from Motiejus Jakštys's script[1], this should make later work on Guix side easier. [1]: https://git.jakstys.lt/motiejus/zig-repro/src/branch/main/run Hilton Chain (2): gnu: Add zig-0.10.0-610-bootstrap. gnu: Add zig-0.10.0-610. gnu/local.mk | 1 + ...10.0-610-bootstrap-resolve-conflicts.patch | 87 ++++++++++ gnu/packages/zig.scm | 151 +++++++++++++++++- 3 files changed, 238 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/zig-0.10.0-610-bootstrap-resolve-conflicts.patch base-commit: 2a6d96425eea57dc6dd48a2bec16743046e32e06 -- 2.46.0
ekaitz@HIDDEN, hako@HIDDEN, noe@HIDDEN, bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 7 Nov 2024 22:09:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 07 17:09:53 2024 Received: from localhost ([127.0.0.1]:49899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t9AhN-0006vq-58 for submit <at> debbugs.gnu.org; Thu, 07 Nov 2024 17:09:53 -0500 Received: from dane.soverin.net ([185.233.34.25]:45067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ekaitz@HIDDEN>) id 1t9AhK-0006vb-Pf for 74217 <at> debbugs.gnu.org; Thu, 07 Nov 2024 17:09:51 -0500 Received: from smtp.soverin.net (unknown [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4Xkx7r3RSSzyq9; Thu, 7 Nov 2024 22:09:44 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4Xkx7q65kSz4b; Thu, 7 Nov 2024 22:09:43 +0000 (UTC) Authentication-Results: smtp.soverin.net; dkim=pass (2048-bit key; unprotected) header.d=elenq.tech header.i=@elenq.tech header.a=rsa-sha256 header.s=soverin1 header.b=G2Cv0wch; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=soverin1; t=1731017384; 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:autocrypt:autocrypt; bh=ipKCxy1HQrWTXuhEhOFhYaHGwVxDofUNbqR3rhkrd2s=; b=G2Cv0wchZ+qY2SjHAqpnhQzVsL6CD+Xr8N+TkTYhkRVOXZo8kfl4+VtcuveGu3c0Vf61da ojHP1QGBEOikp+neYelBQ8ozp9OZeiN+eFUYSM/4eXGG6hgwB3GSWeNWsl0fJEx4hjSGnl 48PV1sJuTDLjfB8IqLzdAJEonOgIkmdHp/LS7aqEjpWZG7jM4sqmDd4vCvanjDTKHYV0pR uDkSfaqpx4moNKri3vkxOnCXJp/ykfgTbHZxZ9GqE3BAchHZ46+aHEEU+RYrRYTAzCdNJd sbKC2kIJN6vdmzqDdx48PXb7D8DDAKq7TiTU8EFzh1gFYx+eJz94p/AmSIFwfA== Message-ID: <844f9d54-ef96-47f6-950e-655a9ccc9d47@HIDDEN> Date: Thu, 7 Nov 2024 23:09:43 +0100 MIME-Version: 1.0 Subject: Re: bug#74217: Bootstrapping Zig with no Binary Blobs To: =?UTF-8?Q?No=C3=A9_Lopez?= <noe@HIDDEN>, 74217 <at> debbugs.gnu.org References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> <87ldxuk8bn.fsf@HIDDEN> Content-Language: en-US, es-ES, eu From: Ekaitz Zarraga <ekaitz@HIDDEN> Autocrypt: addr=ekaitz@HIDDEN; keydata= xsFNBGViSyIBEADY3g71uW/0CVaVm5/ObqTicQXXJRuh1uafIFiUUZoAp1V3V89b3LZ/m0cL 8YNHxTxsx8sKIMYTGlOvARAMiSpDvkmpf5pLn5T7+VvK90FOv/Pkp1tNNT+tvd0m/7C58+39 s7tN+XppbjVRtFuSXY0aFe8rpivZsKxv+tPUHUnQQszXvwgx0GQl8AX99IE+j75NJmBHFVg2 0geKa7QVymu669ix2+zU8vGoOKf5nIS0qG1m/vrtwR3ZuuyWX9/E/uP95ahX5ETWtjhTDbEm MEaRperwbczBewkdERJ34vRrverqKQA1xHXoPsx4NkLMocORFSSCJsveXcgWlU+pUIOYcKUA ARJjHhoWoUH4LZt5EOb7U17AaYMmATUXPCqq8G3jEXq6i0O1J1obCJGIRG02R9GiGp4zrVuv 2hmyoAmed4xYZAtf9WjcbwiunDkMGIxscdSlfEH/9dt7PGdEvkZ0dNSCTbp4ctMI4jAfobAL LReMSGx1CgPi01J61a/n/SgR66AiRJZCyC1u2V7AK1rBOAYzOU4UoePz+yF1I7crjZWAQVo6 DlmmXW+29l/lh2oK5jOuNEcvI6qi+tPCYxpDhUhZeYgqFU+/xgGlMj/XGvwuIFlpVg9ovFMg 6mxskOCVP9xNEp/qHiHqByYu5NRcITo/z/3BUimdXTT4KSq2cQARAQABzSJFa2FpdHogWmFy cmFnYSA8ZWthaXR6QGVsZW5xLnRlY2g+wsGOBBMBCAA4FiEEg/pnRVjAUpRlfkwZt5lM+Jly CyYFAmViSyICGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQt5lM+JlyCybjZxAAy+YW 3Q22xKoMWJYw03qGCy87WPK+xGWDpKD6TJ77+/IEbldObyQRrKYTTGjQSy6WgaJ0txJMIqeK JyuWuR3bq+Vkh86Byntl25jknOJ+jY1zwPs6HnWFr+hS48FcQh/0D26h57Cqc+6nbKhJcva8 JsInbHTbWPz7wye+xhqY1LfdgVTbCyADESXdmBY30/vP4LzqW81atwYF6X7dN7ko/JvyPPdv VlcspmbP6zNihoApBHdMfJwYscyAsu6tTyL4hMG3zpraeU+S857vZN39gFagRng+uyZG7rfB dHHAFzT1LKOZ4dahavOfA0gS1RZTgtAGsvhUEBn9vKxlB4efZuKhwMtgQEskRFD6JIF1DYCj pLgn5x/y3oI6rn35R46VDhLfohcUWpvzplu6LBft8ZNr+UgoVYc6qBezyDlxk0FmhGI7DEoh gfUxljTALXjSdUGEw2mvp/Mcrz+ffemWpG4+Zq0UXR8sZaHpv+PqmFLFFSQCOCRTYbMKzZBn y03wym3y0tGtunDGm5pR7NEPqUO9QbZdKyTy4ftRkSfTpiPCF8+KKYDT8HimSrusmtTfR4R1 nBJ4lNBYgTdOyJYFbHdF0Jxo9r0t+K2e+6hX6bK79o6aC+/LtzkoYgjCWvAEopO0ras/XQYM S7/bCzeDIhXX5RqmMIp5XN+oBP2roZDOwU0EZWJLIgEQAMIgPDpJY9aOhFiFICx58XMM28An yUPdN39t0A8VkUbsvKXH6eNqUZj/Q3yNcZrknAT1vinv9FN/4uCUnsaqEKp+mRAYgzmNfeJk SWuMzmA04fcISIBz3sJUR0w/59tWi8QxlNn7IR6McAA3lHDXC+KYh9ZfhaOARfan1M6Ppy6g YltUQGSSPXU807inmQZh8GFTi8iUza7vGuBEnaNRGhmhR+blMwHSqVWN4gD81e8dSAEi3zNR sLoBXneHUqTcJMHvsT5cOk7cGMoVAWIffA2EKWfrgda57Qw+w+0OPqWEfKoXwnyt35Tl+Lxl 7MAaAG9R5760yhgkf3LmnBNP3m6StZ8Fv09Gdn5cGSbVnoofHDkg4PQDTD6aGz9af3SnGVg9 nb1Zm1XbqtnYwG9JvQhcjgWAHwrPLkHAcvKtfYWNe4wiirMjXMXxADY08g33SEchPJR2r4pg wttJS4kHUJ2IQUmSH/43RO5PkftWsCucYGeaG1aPr+GAkeKIS1M3OZGuqhd800mltpiH73eL XrUPF8fgngC+SGMrHXLfzuhaRxPNYUbsdF+wRkvjRSO4tCmSVpgfPsHu5emoZgix1iiTO7GF do7L6n1Ay3oF4Witoxc0Gcbu7ltYlZHGmDnsVTVALartsJV2muSXpWcjQiXyC0gUkIkUD/3P jtgVxK8xABEBAAHCwXYEGAEIACAWIQSD+mdFWMBSlGV+TBm3mUz4mXILJgUCZWJLIgIbDAAK CRC3mUz4mXILJrIaD/9CXGckwRCojuRzP0r6+8/RvNDc03CSe2W17WrSaoYgiRb+h5asI/AL yqw+QRgwXZpt0i9hNiDCe/baD62mufIyjKFjHoAWSYJuZ5VK3vWnro6GaxWULYt1+c4c4Lz2 d1nSK6j8F3CxYo7BFk6afOusjYfh+0HywThcYY+x+K5Z+4SdJejDLiL5AzJn2W5Gt/ViK5nI wl7uRQpayMc9zmI8ytUT2NJxovq1/fT9nB8VPwlbJTE9zvIqfqHh9o9Apx5o8yTaSCyGUyu9 8h/klqxFy4HAPJJu/3JkiMaCI45ZdCqRR1LIwhtmW2lb73r0rP/0S1cKi+ehA4oQvwiUw7zh XXw7mqzSAJ0SWT92Vy2G8Z8qqgwxwfQcdFZAyJAL1rgEPQljNT91Vgbc6DCUka2XW5BqyhEB eS0n1gK0hYXbM9FKegRsZxlmRAXa4KGXCwr4BNK6k+zkKPitezjbtcLgcKSHa8/HyHNkW7xH R+MN16x2elQPmQ2d0Ien1HgsK98+3prlUGwZIVCqa1ddSoW0llU3JzGsKrMAiYbWg/rOXFil RJbuhjflaLBVmfI8VlRQRocP+WEH0lsUWrtjVaGcBj1/YnIoT+zT6fPSXwPsrBvAWEjfl8HH e1F4cYb+ugPDwUTd1s2Uj2tF0/fhCHPy9sXyx/EIL3gqyBw9M2Rz9A== In-Reply-To: <87ldxuk8bn.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spampanel-Class: ham X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 74217 Cc: Hilton Chain <hako@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Hi > I can try to make the first few steps as packages tomorrow, WDYT? Sure! Send the patches to this issue and I'll review when I have time. Thanks for the energy!
bug-guix@HIDDEN
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 7 Nov 2024 22:05:25 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 07 17:05:25 2024 Received: from localhost ([127.0.0.1]:49889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t9Ad3-0006pD-FN for submit <at> debbugs.gnu.org; Thu, 07 Nov 2024 17:05:25 -0500 Received: from smtp.domeneshop.no ([194.63.252.55]:46161) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <noe@HIDDEN>) id 1t9Ad0-0006ow-Po for 74217 <at> debbugs.gnu.org; Thu, 07 Nov 2024 17:05:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xn--no-cja.eu; s=ds202402; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:In-Reply-To:Subject:Cc:To:From:From:Sender: Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=9HLQHjMjNVGTYKzqbKoCc2gvMcEhW4QTgB7QusRd1oU=; b=W wqXgaaDQMNx2aLi2iNH4PYepk3qjxqwn49BBwGOv2mhPKE3zV8leMmWoZIxvBSaq/mrYzchN7nX9w IK9yG0HJXArrMbQB/HwfA5R5kkoNDJEZcag90t10pEWStKBVREYQIIGeUtYKQVvAmg2gsl0FdKR2U MlQj+TWXL8IHUWfeRxBD/GpbTluy3yMkreeospjp7/VJi5k4LIX84EhUYcLliq1Afz9dfGToruEua c9MIu/J1y8PFsjBRsI3//SOp7jU8zTRrrKBD4gxQ9QoFm1tcIsflnRTs5KrSlUTgLZ547w8ZVV0Jg 6e0wfZywb3pjs5yrn7wfd/qVrR8k9bgdQ==; Received: from smtp by smtp.domeneshop.no with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) id 1t9Act-007bbC-K4; Thu, 07 Nov 2024 23:05:15 +0100 From: =?utf-8?Q?No=C3=A9_Lopez?= <noe@HIDDEN> To: 74217 <at> debbugs.gnu.org Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <87cyj7g7s4.wl-hako@HIDDEN> Date: Thu, 07 Nov 2024 23:06:20 +0100 Message-ID: <87ldxuk8bn.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Hilton Chain <hako@HIDDEN>, Ekaitz Zarraga <ekaitz@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) >Excited to know Zig developers are willing to help with bootstrapping! We >shouldn't miss this chance :) > >I'll look into replicating the current progress this weekend. Anyone read= ing >this mail wants to join in? Hey Hilton and Ekaitz, I=E2=80=99m interested in this :) From what I can see the current effort in= the zig-repro repository is very well made and we should just need to replicate each step with the correct dependencies, hoping they exist =F0=9F= =A4=9E I can try to make the first few steps as packages tomorrow, WDYT? Good evening, No=C3=A9
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Received: (at 74217) by debbugs.gnu.org; 7 Nov 2024 01:25:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 06 20:25:35 2024 Received: from localhost ([127.0.0.1]:46604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t8rHC-0001dj-PJ for submit <at> debbugs.gnu.org; Wed, 06 Nov 2024 20:25:35 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:52600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <hako@HIDDEN>) id 1t8rH9-0001dT-Eg for 74217 <at> debbugs.gnu.org; Wed, 06 Nov 2024 20:25:33 -0500 Date: Thu, 07 Nov 2024 09:19:23 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1730942723; 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=tbmM0Ls0vyZIXyFjgs7maNsojncOyRaz3Bez+O16Jv0=; b=im8+md3Qt7TuixGRnybi60GQh3NaqUd5p7FGIj5ezXS4ZgCIJ0Zy5V5PDItY9sTzjKUeFT p3qfoR5jsVCkSDfm23MwOQ95GDaVr7vL1EbSp8rXVYKLBxfC+Dxx+C12ouL1Z7E87iH8qh p1NTodqeihR7+iuemXCi6S8gZbe9yLAs5t3SwElvk2GH+sxBGkxdL5Kmpa4C/dRXvGM/oK oISeLa3rlJfm0EqMGgG4o7vpGGj+pWzmH7rguLXvF1BLz9cRZdA8aaYdKROYa+Ffu1W+Mn h36fQ4ctVCsqM5VuTJNsFbxC9uQlxT7fRU/29ulY9nyh1fGISyABYzdA+TZIAg== Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@HIDDEN Message-ID: <87cyj7g7s4.wl-hako@HIDDEN> From: Hilton Chain <hako@HIDDEN> To: Ekaitz Zarraga <ekaitz@HIDDEN> Subject: Re: Bootstrapping Zig with no Binary Blobs In-Reply-To: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> References: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: -- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74217 Cc: Efraim Flashner <efraim@HIDDEN>, 74217 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Ekaitz, On Wed, 06 Nov 2024 05:47:48 +0800, Ekaitz Zarraga wrote: > > Hi, > > In order to include modern versions of Zig (Zig 0.12+) in Guix, we need to > remove the binary blobs. > > I open this issue to track this effort and store information about the process. > > Some Guix user is trying to achieve the same goal: > > https://git.jakstys.lt/motiejus/zig-repro > > And discussing about it here: > > https://ziggit.dev/t/building-self-hosted-from-the-original-c-implementation/6607/11 Great news, thanks for sharing! > We could use that effort as a reference and package it to Guix. Excited to know Zig developers are willing to help with bootstrapping! We shouldn't miss this chance :) I'll look into replicating the current progress this weekend. Anyone reading this mail wants to join in? Thanks
bug-guix@HIDDEN, Ekaitz Zarraga <ekaitz@HIDDEN>
:bug#74217
; Package guix
.
Full text available.Ekaitz Zarraga <ekaitz@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Ekaitz Zarraga <ekaitz@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at submit) by debbugs.gnu.org; 5 Nov 2024 21:48:11 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 05 16:48:11 2024 Received: from localhost ([127.0.0.1]:38213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t8RPG-0000OF-Rt for submit <at> debbugs.gnu.org; Tue, 05 Nov 2024 16:48:11 -0500 Received: from lists.gnu.org ([209.51.188.17]:45974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ekaitz@HIDDEN>) id 1t8RPE-0000O7-Ce for submit <at> debbugs.gnu.org; Tue, 05 Nov 2024 16:48:09 -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 <ekaitz@HIDDEN>) id 1t8RPC-0001Ro-Hg for bug-guix@HIDDEN; Tue, 05 Nov 2024 16:48:07 -0500 Received: from dane.soverin.net ([185.233.34.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <ekaitz@HIDDEN>) id 1t8RP9-0003Bj-Q9 for bug-guix@HIDDEN; Tue, 05 Nov 2024 16:48:06 -0500 Received: from smtp.soverin.net (unknown [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4XjhlT5HR6zydG; Tue, 5 Nov 2024 21:47:49 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4XjhlT1G31zFb; Tue, 5 Nov 2024 21:47:49 +0000 (UTC) Authentication-Results: smtp.soverin.net; dkim=pass (2048-bit key; unprotected) header.d=elenq.tech header.i=@elenq.tech header.a=rsa-sha256 header.s=soverin1 header.b=h2ARKC/2; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=soverin1; t=1730843269; 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:autocrypt:autocrypt; bh=JUTsDFLLYJoEzK81xT1QhnrruzQkonEsZeQ5XlLGA3A=; b=h2ARKC/2yt2eAG3A2C16LHDhegFyzOXBD5NR3Avkh4FNtbDwl+JdarS7fChJ2cXyapTVxd y4InzzMJoV0dV/wyCi3hZYXng8THFBgwnLcwBcPSAMezLBcGGLFnthBIlSJwUGHF1R1dZz 7DSnEq1e52BulkzMcdHS78hAXcWutMh/1tRKE4KCoIGdFmelD+s+m9y0VeRr80874pYCfG jNvbW/a05f4L3sA3gccItNbCNubYWv7u+r3wQYlDnlFiIp+y8p2GmJKjWHjRaLIaYmUtWL 9y36znHmmrP2rpODuCoH90NS55QbxCEKGy901Cn5OJgFtD0KeYwHzULnsQ3ONA== Message-ID: <af98e6c6-57fe-4db0-af71-f7635c939884@HIDDEN> Date: Tue, 5 Nov 2024 22:47:48 +0100 MIME-Version: 1.0 Content-Language: en-US, es-ES, eu To: "bug-guix@HIDDEN" <bug-guix@HIDDEN> From: Ekaitz Zarraga <ekaitz@HIDDEN> Subject: Bootstrapping Zig with no Binary Blobs Autocrypt: addr=ekaitz@HIDDEN; keydata= xsFNBGViSyIBEADY3g71uW/0CVaVm5/ObqTicQXXJRuh1uafIFiUUZoAp1V3V89b3LZ/m0cL 8YNHxTxsx8sKIMYTGlOvARAMiSpDvkmpf5pLn5T7+VvK90FOv/Pkp1tNNT+tvd0m/7C58+39 s7tN+XppbjVRtFuSXY0aFe8rpivZsKxv+tPUHUnQQszXvwgx0GQl8AX99IE+j75NJmBHFVg2 0geKa7QVymu669ix2+zU8vGoOKf5nIS0qG1m/vrtwR3ZuuyWX9/E/uP95ahX5ETWtjhTDbEm MEaRperwbczBewkdERJ34vRrverqKQA1xHXoPsx4NkLMocORFSSCJsveXcgWlU+pUIOYcKUA ARJjHhoWoUH4LZt5EOb7U17AaYMmATUXPCqq8G3jEXq6i0O1J1obCJGIRG02R9GiGp4zrVuv 2hmyoAmed4xYZAtf9WjcbwiunDkMGIxscdSlfEH/9dt7PGdEvkZ0dNSCTbp4ctMI4jAfobAL LReMSGx1CgPi01J61a/n/SgR66AiRJZCyC1u2V7AK1rBOAYzOU4UoePz+yF1I7crjZWAQVo6 DlmmXW+29l/lh2oK5jOuNEcvI6qi+tPCYxpDhUhZeYgqFU+/xgGlMj/XGvwuIFlpVg9ovFMg 6mxskOCVP9xNEp/qHiHqByYu5NRcITo/z/3BUimdXTT4KSq2cQARAQABzSJFa2FpdHogWmFy cmFnYSA8ZWthaXR6QGVsZW5xLnRlY2g+wsGOBBMBCAA4FiEEg/pnRVjAUpRlfkwZt5lM+Jly CyYFAmViSyICGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQt5lM+JlyCybjZxAAy+YW 3Q22xKoMWJYw03qGCy87WPK+xGWDpKD6TJ77+/IEbldObyQRrKYTTGjQSy6WgaJ0txJMIqeK JyuWuR3bq+Vkh86Byntl25jknOJ+jY1zwPs6HnWFr+hS48FcQh/0D26h57Cqc+6nbKhJcva8 JsInbHTbWPz7wye+xhqY1LfdgVTbCyADESXdmBY30/vP4LzqW81atwYF6X7dN7ko/JvyPPdv VlcspmbP6zNihoApBHdMfJwYscyAsu6tTyL4hMG3zpraeU+S857vZN39gFagRng+uyZG7rfB dHHAFzT1LKOZ4dahavOfA0gS1RZTgtAGsvhUEBn9vKxlB4efZuKhwMtgQEskRFD6JIF1DYCj pLgn5x/y3oI6rn35R46VDhLfohcUWpvzplu6LBft8ZNr+UgoVYc6qBezyDlxk0FmhGI7DEoh gfUxljTALXjSdUGEw2mvp/Mcrz+ffemWpG4+Zq0UXR8sZaHpv+PqmFLFFSQCOCRTYbMKzZBn y03wym3y0tGtunDGm5pR7NEPqUO9QbZdKyTy4ftRkSfTpiPCF8+KKYDT8HimSrusmtTfR4R1 nBJ4lNBYgTdOyJYFbHdF0Jxo9r0t+K2e+6hX6bK79o6aC+/LtzkoYgjCWvAEopO0ras/XQYM S7/bCzeDIhXX5RqmMIp5XN+oBP2roZDOwU0EZWJLIgEQAMIgPDpJY9aOhFiFICx58XMM28An yUPdN39t0A8VkUbsvKXH6eNqUZj/Q3yNcZrknAT1vinv9FN/4uCUnsaqEKp+mRAYgzmNfeJk SWuMzmA04fcISIBz3sJUR0w/59tWi8QxlNn7IR6McAA3lHDXC+KYh9ZfhaOARfan1M6Ppy6g YltUQGSSPXU807inmQZh8GFTi8iUza7vGuBEnaNRGhmhR+blMwHSqVWN4gD81e8dSAEi3zNR sLoBXneHUqTcJMHvsT5cOk7cGMoVAWIffA2EKWfrgda57Qw+w+0OPqWEfKoXwnyt35Tl+Lxl 7MAaAG9R5760yhgkf3LmnBNP3m6StZ8Fv09Gdn5cGSbVnoofHDkg4PQDTD6aGz9af3SnGVg9 nb1Zm1XbqtnYwG9JvQhcjgWAHwrPLkHAcvKtfYWNe4wiirMjXMXxADY08g33SEchPJR2r4pg wttJS4kHUJ2IQUmSH/43RO5PkftWsCucYGeaG1aPr+GAkeKIS1M3OZGuqhd800mltpiH73eL XrUPF8fgngC+SGMrHXLfzuhaRxPNYUbsdF+wRkvjRSO4tCmSVpgfPsHu5emoZgix1iiTO7GF do7L6n1Ay3oF4Witoxc0Gcbu7ltYlZHGmDnsVTVALartsJV2muSXpWcjQiXyC0gUkIkUD/3P jtgVxK8xABEBAAHCwXYEGAEIACAWIQSD+mdFWMBSlGV+TBm3mUz4mXILJgUCZWJLIgIbDAAK CRC3mUz4mXILJrIaD/9CXGckwRCojuRzP0r6+8/RvNDc03CSe2W17WrSaoYgiRb+h5asI/AL yqw+QRgwXZpt0i9hNiDCe/baD62mufIyjKFjHoAWSYJuZ5VK3vWnro6GaxWULYt1+c4c4Lz2 d1nSK6j8F3CxYo7BFk6afOusjYfh+0HywThcYY+x+K5Z+4SdJejDLiL5AzJn2W5Gt/ViK5nI wl7uRQpayMc9zmI8ytUT2NJxovq1/fT9nB8VPwlbJTE9zvIqfqHh9o9Apx5o8yTaSCyGUyu9 8h/klqxFy4HAPJJu/3JkiMaCI45ZdCqRR1LIwhtmW2lb73r0rP/0S1cKi+ehA4oQvwiUw7zh XXw7mqzSAJ0SWT92Vy2G8Z8qqgwxwfQcdFZAyJAL1rgEPQljNT91Vgbc6DCUka2XW5BqyhEB eS0n1gK0hYXbM9FKegRsZxlmRAXa4KGXCwr4BNK6k+zkKPitezjbtcLgcKSHa8/HyHNkW7xH R+MN16x2elQPmQ2d0Ien1HgsK98+3prlUGwZIVCqa1ddSoW0llU3JzGsKrMAiYbWg/rOXFil RJbuhjflaLBVmfI8VlRQRocP+WEH0lsUWrtjVaGcBj1/YnIoT+zT6fPSXwPsrBvAWEjfl8HH e1F4cYb+ugPDwUTd1s2Uj2tF0/fhCHPy9sXyx/EIL3gqyBw9M2Rz9A== Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spampanel-Class: ham Received-SPF: pass client-ip=185.233.34.25; envelope-from=ekaitz@HIDDEN; helo=dane.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Hilton Chain <hako@HIDDEN>, "efraim@HIDDEN" <efraim@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) Hi, In order to include modern versions of Zig (Zig 0.12+) in Guix, we need to remove the binary blobs. I open this issue to track this effort and store information about the process. Some Guix user is trying to achieve the same goal: https://git.jakstys.lt/motiejus/zig-repro And discussing about it here: https://ziggit.dev/t/building-self-hosted-from-the-original-c-implementation/6607/11 We could use that effort as a reference and package it to Guix.
Ekaitz Zarraga <ekaitz@HIDDEN>
:bug-guix@HIDDEN
.
Full text available.bug-guix@HIDDEN
:bug#74217
; Package guix
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.