From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id rsR1DFIWe1/pKgAA0tVLHw (envelope-from ) for ; Mon, 05 Oct 2020 12:49:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0BjiB1IWe19yXQAAbx9fmQ (envelope-from ) for ; Mon, 05 Oct 2020 12:49:22 +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 B845F9402AC for ; Mon, 5 Oct 2020 12:49:21 +0000 (UTC) Received: from localhost ([::1]:33060 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPPvc-0006bF-Jt for larch@yhetil.org; Mon, 05 Oct 2020 08:49:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPE8h-00084u-Cb for bug-guix@gnu.org; Sun, 04 Oct 2020 20:14:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPE8g-0006N7-7w for bug-guix@gnu.org; Sun, 04 Oct 2020 20:14:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPE8g-0004WY-3D for bug-guix@gnu.org; Sun, 04 Oct 2020 20:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43802: Knot: Linker runs very slowly and crashes during build References: <87a6x1g17f.fsf@simonsouth.net> In-Reply-To: <87a6x1g17f.fsf@simonsouth.net> Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 05 Oct 2020 00:14: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: To: 43802@debbugs.gnu.org Received: via spool by 43802-submit@debbugs.gnu.org id=B43802.160185682717355 (code B ref 43802); Mon, 05 Oct 2020 00:14:02 +0000 Received: (at 43802) by debbugs.gnu.org; 5 Oct 2020 00:13:47 +0000 Received: from localhost ([127.0.0.1]:47049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPE8R-0004Vr-ER for submit@debbugs.gnu.org; Sun, 04 Oct 2020 20:13:47 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:35552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPE8Q-0004Vb-0H for 43802@debbugs.gnu.org; Sun, 04 Oct 2020 20:13:46 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 41234BFB19 for <43802@debbugs.gnu.org>; Mon, 5 Oct 2020 00:13:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo04-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo04-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4Eg7lrV12Dvm for <43802@debbugs.gnu.org>; Mon, 5 Oct 2020 00:13:40 +0000 (UTC) Received: from laptop (unknown [108.162.141.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 0109ABFB03 for <43802@debbugs.gnu.org>; Mon, 5 Oct 2020 00:13:39 +0000 (UTC) From: Simon South Date: Sun, 04 Oct 2020 20:09:30 -0400 Message-ID: <878scledol.fsf@simonsouth.net> MIME-Version: 1.0 Content-Type: text/plain 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-Mailman-Approved-At: Mon, 05 Oct 2020 08:48:13 -0400 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: -1.01 X-TUID: 24LGAGVpMpo9 Turns out this is not a bug. Knot ships with two parser implementations: A smaller, slower one (272 KB) and a larger, faster one (1.9 MB). The larger one is a bit too big to build reliably on systems with 4 GB or less of available memory. To test Knot on these machines, you can run "configure" with "--disable-fastparser" as an argument (or edit gnu/packages/dns.scm to do so) to force it to use the smaller parser. This also allows the build to complete more quickly on systems that can use either. So how was I getting the smaller implementation in my own builds without realizing it? The configure script has some magical behaviour: It will automatically select the faster-building implementation if it finds a ".git" folder in the current directory. This is presumably meant to help developers, but the confusion it caused me demonstrates why I think this sort of magical programming is bad practice. At any rate, this bug report can be closed. -- Simon South simon@simonsouth.net