GNU bug report logs - #43802
Knot: Linker runs very slowly and crashes during build

Previous Next

Package: guix;

Reported by: Simon South <simon <at> simonsouth.net>

Date: Sun, 4 Oct 2020 21:01:02 UTC

Severity: normal

Tags: notabug

Done: Simon South <simon <at> simonsouth.net>

Bug is archived. No further changes may be made.

Full log


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

From: Simon South <simon <at> simonsouth.net>
To: 43802 <at> debbugs.gnu.org
Subject: Re: Knot: Linker runs very slowly and crashes during build
Date: Sun, 04 Oct 2020 20:09:30 -0400
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 <at> simonsouth.net




This bug report was last modified 4 years and 286 days ago.

Previous Next


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