From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gA+jNlE7e19nCQAA0tVLHw (envelope-from ) for ; Mon, 05 Oct 2020 15:27:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kNViMlE7e180SwAAB5/wlQ (envelope-from ) for ; Mon, 05 Oct 2020 15:27:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0858494062F for ; Mon, 5 Oct 2020 15:27:12 +0000 (UTC) Received: from localhost ([::1]:35656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPSOM-0002v2-K7 for larch@yhetil.org; Mon, 05 Oct 2020 11:27:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPSOE-0002uQ-Id for bug-guix@gnu.org; Mon, 05 Oct 2020 11:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPSOE-0005D9-9d for bug-guix@gnu.org; Mon, 05 Oct 2020 11:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPSOE-0003DY-6h for bug-guix@gnu.org; Mon, 05 Oct 2020 11:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43802: Knot: Linker runs very slowly and crashes during build Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 05 Oct 2020 15:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43802 X-GNU-PR-Package: guix X-GNU-PR-Keywords: notabug To: Simon South , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 43802@debbugs.gnu.org Received: via spool by 43802-submit@debbugs.gnu.org id=B43802.160191157512307 (code B ref 43802); Mon, 05 Oct 2020 15:27:02 +0000 Received: (at 43802) by debbugs.gnu.org; 5 Oct 2020 15:26:15 +0000 Received: from localhost ([127.0.0.1]:50179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPSNT-0003CR-AT for submit@debbugs.gnu.org; Mon, 05 Oct 2020 11:26:15 -0400 Received: from tobias.gr ([80.241.217.52]:34242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPSNO-0003CF-IO for 43802@debbugs.gnu.org; Mon, 05 Oct 2020 11:26:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=fxRtsKutTXSCj90nFKKAFN/hXcIerIzp5vnBBXAVPrI=; h=date:in-reply-to: references:subject:cc:to:from; b=GKH74AQ3VqhCwhEFGl/YK8hyi+j5a6/eMij6i WuvH4Sn1dbJ8Qt72G4bbiIeQ8H5HyUsULHhu3enGPK/Oc6DS8o9pWSdSVfKJhtpZU1VWp0 pdI3Za7e71ouk6D3DfW0sg5CPuBMnOQZVTeEhOg2YbLZbnVEUBFVgkINzjA0zSFXD+CWmb nAsMkdd+TsC7OcMbt3zqxUxqeVsfE1lE5oPBi4/4J8QtMCKYjy+0PPsuc3RT3NVUeWqjlD htUsGGvMgfLDY6g3bDfjCYlBfI9QRGDAdDfzz4tgVTVpMExVNcDoEEaH5nFaaKxr6KZUyw 4iQy25vdHA6xZu+4Aw4qjBxRQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 61966ce3 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Mon, 5 Oct 2020 15:26:17 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; References: <87a6x1g17f.fsf@simonsouth.net> <878scledol.fsf@simonsouth.net> In-reply-to: <878scledol.fsf@simonsouth.net> Date: Mon, 05 Oct 2020 17:26:08 +0200 Message-ID: <875z7oae3z.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Tobias Geerinckx-Rice From: Tobias Geerinckx-Rice via Bug reports for GNU Guix X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=tobias.gr header.s=2018 header.b=GKH74AQ3; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: +RNqzPAGBbRM --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Simon, Would it make sense to provide a faster-building slower-starting=20 Knot variant alongside the main package? Ludovic Court=C3=A8s =E5=86=99=E9=81=93=EF=BC=9A > I this an LTO build (with =E2=80=98-flto=E2=80=99 in the compile and link= =20 > flags)? That > could explain the memory requirements. No, but good guess. Simon South =E5=86=99=E9=81=93=EF=BC=9A > Turns out this is not a bug. The fast parser is written in Ragel[0], which compiles down to=20 almost 2 MiB of =E2=80=98C=E2=80=99, which is then thrown at GCC to sort ou= t. I=20 know to put the kettle on before hacking on Knot locally. What I didn't know was that these generated C files were included=20 in the release tarball. We have the Ragel, we can rebuild them,=20 and we now do so in commit=20 2b73e50c31a61b5dcef35a1e4b9484d9dbcb0fbc. Thanks for bringing it=20 to my attention. Kind regards, T G-R [0]: http://www.colm.net/open-source/ragel/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX3s7EA0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW152oIA/2zGSRD4p40y3uklz/gKMRrHDRb2MQt46wU+XCTJ s1dxAP0ZCaevCB9eldjoWHL/cISxBOyZAExsFryqkyxW/0PlCg== =y1uw -----END PGP SIGNATURE----- --=-=-=--