Message ID | cover.1702550735.git.ludo@gnu.org |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B989B27BBEC; Thu, 14 Dec 2023 13:00:25 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1F32527BBE2 for <patchwork@mira.cbaines.net>; Thu, 14 Dec 2023 13:00:25 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1rDlK1-0004dp-Sn; Thu, 14 Dec 2023 08:00:13 -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 <Debian-debbugs@debbugs.gnu.org>) id 1rDlJv-0004c3-II for guix-patches@gnu.org; Thu, 14 Dec 2023 08:00:07 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rDlJs-0002L3-Rh; Thu, 14 Dec 2023 08:00:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rDlJq-000768-LK; Thu, 14 Dec 2023 08:00:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67824] [PATCH core-updates 0/6] Run builds in C.UTF-8 locale Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, me@tobias.gr, maxim.cournoyer@gmail.com, janneke@gnu.org, guix-patches@gnu.org Resent-Date: Thu, 14 Dec 2023 13:00:02 +0000 Resent-Message-ID: <handler.67824.B.170255878427157@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67824 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67824@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Christopher Baines <guix@cbaines.net>, Josselin Poiret <dev@jpoiret.xyz>, Tobias Geerinckx-Rice <me@tobias.gr>, Maxim Cournoyer <maxim.cournoyer@gmail.com>, Janneke Nieuwenhuizen <janneke@gnu.org> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Christopher Baines <guix@cbaines.net>, Josselin Poiret <dev@jpoiret.xyz>, Tobias Geerinckx-Rice <me@tobias.gr>, Maxim Cournoyer <maxim.cournoyer@gmail.com>, Janneke Nieuwenhuizen <janneke@gnu.org> Received: via spool by submit@debbugs.gnu.org id=B.170255878427157 (code B ref -1); Thu, 14 Dec 2023 13:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Dec 2023 12:59:44 +0000 Received: from localhost ([127.0.0.1]:48872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1rDlJX-00073o-Sb for submit@debbugs.gnu.org; Thu, 14 Dec 2023 07:59:44 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ludo@gnu.org>) id 1rDlJW-000737-2o for submit@debbugs.gnu.org; Thu, 14 Dec 2023 07:59:42 -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 <ludo@gnu.org>) id 1rDjJy-0002lH-Ch for guix-patches@gnu.org; Thu, 14 Dec 2023 05:52:02 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ludo@gnu.org>) id 1rDjJx-0001bd-Ec; Thu, 14 Dec 2023 05:52:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=KayY8RNd0k21v8hl3BbjH/xhFvcxJTEvLA0jSOXfTEY=; b=dCUjQvIC9udvy4 8ThsadFQ7Qm0cnlN3r+htOAIBvVQMh6A1g+70UMpcBIyRaPTK8LrFvD8omdBh8fku/xhT8I7EaJd3 H/RoYj+V+NMaGErqoKYCA/bokkKbKPsmqA+Rh8pq0MhVMyTMl9towMSGgy9DHhoO12CEsilotli3A O76gq5IcxdsjVMqY8vGadYetPr0r4OBYbyVHDQDyOcFRkl46QFzEwzXhTma1ftvjMgIlnzoc8iTs5 FVFQNfWd6bhFi6IOo/8FLqY2Pjnly34AqJi3hjshlUAW7hngXsSAtZ3W5rZofSTMK8zZykSOrKvbP 9Fpu1TR0pxeSXQn9OmVg==; From: Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org> Date: Thu, 14 Dec 2023 11:51:29 +0100 Message-ID: <cover.1702550735.git.ludo@gnu.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Run builds in C.UTF-8 locale
|
|
Message
Ludovic Courtès
Dec. 14, 2023, 10:51 a.m. UTC
Hello, This is the logical followup to <https://issues.guix.gnu.org/67686>: running builds in the C.UTF-8 locale (instead of en_US.UTF-8) and removing ‘glibc-utf8-locales’ from the set of implicit inputs. Tested on x86_64-linux with: guix build texinfo nss-certs make check TESTS=tests/profiles.scm I’d like to merge it soon so we can move forward. Let me know what you think! Ludo’. Ludovic Courtès (6): packages: Remove reference to ‘glibc-utf8-locales’ in ‘patch-and-repack’. build-system/gnu: Change default locale to C.UTF-8. gnu: commencement: Remove ‘glibc-utf8-locales’ from ‘%final-inputs’. profiles: Use C.UTF-8 instead of ‘glibc-utf8-locales’ where possible. packages: Output and error ports are line-buffered in ‘patch-and-repack’. gnu: glibc-utf8-locales: Add the C.UTF-8 locale. gnu/packages/base.scm | 23 ++++++++++++++++++----- gnu/packages/commencement.scm | 31 +++++++++++++++---------------- gnu/packages/gawk.scm | 6 +++++- gnu/packages/texinfo.scm | 7 +++++-- guix/build-system/gnu.scm | 4 ++-- guix/packages.scm | 34 +++++++++++++++++----------------- guix/profiles.scm | 33 +++++---------------------------- tests/profiles.scm | 7 +------ 8 files changed, 68 insertions(+), 77 deletions(-) base-commit: e4013b31266b40dc9cb250c44b2088d3931cb3b3
Comments
Ludovic Courtès writes: Hi, > This is the logical followup to <https://issues.guix.gnu.org/67686>: > running builds in the C.UTF-8 locale (instead of en_US.UTF-8) and > removing ‘glibc-utf8-locales’ from the set of implicit inputs. > > Tested on x86_64-linux with: > > guix build texinfo nss-certs > make check TESTS=tests/profiles.scm > > I’d like to merge it soon so we can move forward. > > Let me know what you think! I like the idea but I cannot build it, i.e., building gcc-mesboot1 hangs for me in the gmp configure: --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix build '(@@ (gnu packages commencement) gcc-mesboot1)' [..] (Configuring in host-i686-unknown-linux-gnu/gmp) checking whether sscanf needs writable input... no checking for struct pst_processor.psp_iticksperclktick... no <hang> --8<---------------cut here---------------end--------------->8--- I've tried at least 6 times. Gash running configure just hangs. On a related note, I found that running --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix shell --bootstrap --no-grafts -e '(@@ (gnu packages commencement) gcc-mesboot1)' --8<---------------cut here---------------end--------------->8--- wants to build gcc-mesboot1 when attempting to easily create a shell in which to run and debug the hanging configure command. I guess someone needs to patch gcc-mesboot1 and dive into it. Greetings, Janneke
Hi! Janneke Nieuwenhuizen <janneke@gnu.org> skribis: > I like the idea but I cannot build it, i.e., building gcc-mesboot1 hangs > for me in the gmp configure: > > ./pre-inst-env guix build '(@@ (gnu packages commencement) gcc-mesboot1)' > [..] > (Configuring in host-i686-unknown-linux-gnu/gmp) > checking whether sscanf needs writable input... no > checking for struct pst_processor.psp_iticksperclktick... no > <hang> Hmm it works for me, weird. Now I realize I forgot to change the default value of #:locale in ‘gnu-build-system.scm’ plus a couple of other things, so I’m starting another round of rebuilds to test it. It’s all about patience. :-) Ludo’.
Janneke Nieuwenhuizen <janneke@gnu.org> skribis: > I like the idea but I cannot build it, i.e., building gcc-mesboot1 hangs > for me in the gmp configure: > > ./pre-inst-env guix build '(@@ (gnu packages commencement) gcc-mesboot1)' > [..] > (Configuring in host-i686-unknown-linux-gnu/gmp) > checking whether sscanf needs writable input... no > checking for struct pst_processor.psp_iticksperclktick... no > <hang> > > > I've tried at least 6 times. Gash running configure just hangs. I experienced a similar thing just now (I had removed #:parallel-build? #f from ‘binutils-mesboot0’): --8<---------------cut here---------------start------------->8--- $ pstree -p 29600 .guile-real(29600)─┬─conftest(45270) ├─make(34404)───.guile-real(34406)───make(34421)───.guile-real(6216)───.guile-real(6247)───make(629+ └─{.guile-real}(29610) ludo@guix-hpc5 ~$ sudo cat /proc/29600/cmdline |xargs -0 /gnu/store/lgi9x15a0w35mcpd7g1kb9274r6wy4pv-guile-bootstrap-2.0/bin/guile --no-auto-compile -L /gnu/store/4zibvq0ffm75xrmmkm0997rnwl3i835p-module-import -C /gnu/store/idi8frs4vz0ympplpm1kddp8932kgkr1-module-import-compiled /gnu/store/kj2wyb3w6c6zqdjfmizv826rgfb383rf-binutils-mesboot0-2.20.1a-builder $ sudo guix processes |guix shell recutils -- recsel -e 'LockHeld ~ "binutils"' SessionPID: 17495 ClientPID: 17477 ClientCommand: /gnu/store/n2amn1hpl41r403n0rq7cjbawvzfx51m-guix-1.4.0-16.aeb4943/libexec/guix/guile \ /run/current-system/profile/bin/guix build -c32 -M3 /gnu/store/icfjxv22fysqpip9zxfqv7xjdahziv94-hello-2.12.1.drv LockHeld: /gnu/store/pkaxhawivjhhff55ncglr30c6d9dzlaz-binutils-mesboot0-2.20.1a.lock ChildPID: 17496 ChildCommand: : /gnu/store/n2amn1hpl41r403n0rq7cjbawvzfx51m-guix-1.4.0-16.aeb4943/libexec/guix/guile \ /gnu/store/n2amn1hpl41r403n0rq7cjbawvzfx51m-guix-1.4.0-16.aeb4943/bin/guix substitute --query ChildPID: 17522 ChildCommand: : /gnu/store/n2amn1hpl41r403n0rq7cjbawvzfx51m-guix-1.4.0-16.aeb4943/libexec/guix/guile \ /gnu/store/n2amn1hpl41r403n0rq7cjbawvzfx51m-guix-1.4.0-16.aeb4943/bin/guix offload x86_64-linux 0 1 0 ChildPID: 29600 ChildCommand: : /gnu/store/lgi9x15a0w35mcpd7g1kb9274r6wy4pv-guile-bootstrap-2.0/bin/guile --no-auto-compile -L /gnu/store/4zibvq0ffm75xrmmkm0997rnwl3i835p-module-import -C /gnu/store/idi8frs4vz0ympplpm1kddp8932kgkr1-module-import-compiled /gnu/store/kj2wyb3w6c6zqdjfmizv826rgfb383rf-binutils-mesboot0-2.20.1a-builder --8<---------------cut here---------------end--------------->8--- Here ‘conftest’ is a zombie, which means that the shell running ./configure (gash-boot-0.3.0) did not call ‘waitpid’ (bug #1). There’s another bunch of .guile-real zombie processes (child processes of ‘make DESTDIR= RPATH_ENVVAR=LD_LIBRARY_PATH TARGET_SUBDIR=i686-unknown-linux-gnu bindir=/gnu/store/pkaxhawivjhhff55ncglr30c6d9dzlaz-binutils-mesboot0-2.20.1a/bin […]’). Thus the ‘conftest’ process got reparented to the Guile process that runs the build script (PID 1), and then we run into (bug #2): https://issues.guix.gnu.org/30948 Ludo’.