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 kLjQHUQWe1/hJgAA0tVLHw (envelope-from ) for ; Mon, 05 Oct 2020 12:49:08 +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 aGixGUQWe18oXgAAbx9fmQ (envelope-from ) for ; Mon, 05 Oct 2020 12:49:08 +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 E91C194042F for ; Mon, 5 Oct 2020 12:49:07 +0000 (UTC) Received: from localhost ([::1]:60568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kPPvO-0006J4-Qh for larch@yhetil.org; Mon, 05 Oct 2020 08:49:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPD4s-0007K2-Iu for bug-guix@gnu.org; Sun, 04 Oct 2020 19:06:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kPD4s-0006jP-9w for bug-guix@gnu.org; Sun, 04 Oct 2020 19:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kPD4s-0000dB-4K for bug-guix@gnu.org; Sun, 04 Oct 2020 19:06: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: Sun, 04 Oct 2020 23:06: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.16018527262379 (code B ref 43802); Sun, 04 Oct 2020 23:06:02 +0000 Received: (at 43802) by debbugs.gnu.org; 4 Oct 2020 23:05:26 +0000 Received: from localhost ([127.0.0.1]:46947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPD4H-0000cJ-Vs for submit@debbugs.gnu.org; Sun, 04 Oct 2020 19:05:26 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:56986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kPD4F-0000c3-Cf for 43802@debbugs.gnu.org; Sun, 04 Oct 2020 19:05:25 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 976EE20ACE for <43802@debbugs.gnu.org>; Sun, 4 Oct 2020 23:05:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo06-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rv6C7J8rRO35 for <43802@debbugs.gnu.org>; Sun, 4 Oct 2020 23:05:17 +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 5328020A92 for <43802@debbugs.gnu.org>; Sun, 4 Oct 2020 23:05:15 +0000 (UTC) From: Simon South Date: Sun, 04 Oct 2020 19:01:06 -0400 Message-ID: <87mu11egul.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: cKzAQXke7m6G So naturally, as soon as I submit the bug report something occurs to me that gets me unstuck. The delay and crash are occuring while libtool is using gcc to compile src/libzscanner/scanner.c, which appears to be generated at build time from the file scanner.c.t0 in the same directory. When I build Knot on my own, scanner.c has a size of 272 KB. When guix builds it, scanner.c somehow balloons out to 1.9 MB! So naturally gcc is going to need some time and space to make its way through all that code. In fact the build process actually points out NOTE: Compilation of scanner.c can take several minutes! So perhaps all this is completely expected. Still... 1.9 MB. Of C code. It's tempting to think something is going wrong here. (And anyway, why the huge discrepancy in file size?) I'm investigating. -- Simon South simon@simonsouth.net