GNU bug report logs - #74217
Bootstrapping Zig with no Binary Blobs

Previous Next

Package: guix;

Reported by: Ekaitz Zarraga <ekaitz <at> elenq.tech>

Date: Tue, 5 Nov 2024 21:49:02 UTC

Owned by: Ekaitz Zarraga <ekaitz <at> elenq.tech>

Severity: normal

Done: Hilton Chain <hako <at> ultrarare.space>

Bug is archived. No further changes may be made.

Full log


Message #129 received at 74217 <at> debbugs.gnu.org (full text, mbox):

From: Motiejus Jakštys <motiejus <at> jakstys.lt>
To: Hilton Chain <hako <at> ultrarare.space>
Cc: Ekaitz Zarraga <ekaitz <at> elenq.tech>,
 Noé Lopez <noe <at> xn--no-cja.eu>, dan <i <at> dan.games>,
 Efraim Flashner <efraim <at> flashner.co.il>, 74217 <at> debbugs.gnu.org
Subject: Re: Bootstrapping Zig with no Binary Blobs
Date: Sun, 1 Dec 2024 21:32:01 +0200
On Fri, Nov 29, 2024 at 2:25 PM Hilton Chain <hako <at> ultrarare.space> wrote:
>
> On Fri, 29 Nov 2024 04:53:57 +0800,
> Motiejus Jakštys wrote:
> >
> > [1  <text/plain; UTF-8 (quoted-printable)>]
> > On Thu, Nov 28, 2024 at 5:20 PM Hilton Chain <hako <at> ultrarare.space> 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: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= <motiejus <at> jakstys.lt>
> > 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 <at> GLIBC_2.2.5".
5. run `hello` on non-guix and observe expected output.

Regards,
Motiejus




This bug report was last modified 197 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.