From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: msys2 building issue Date: Thu, 29 Mar 2018 15:22:28 +0300 Message-ID: <83zi2rcbqz.fsf@gnu.org> References: <87a7utgqql.fsf@russet.org.uk> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1522326055 8442 195.159.176.226 (29 Mar 2018 12:20:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2018 12:20:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: phillip.lord@russet.org.uk (Phillip Lord) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 29 14:20:51 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1WXy-00027t-Jc for ged-emacs-devel@m.gmane.org; Thu, 29 Mar 2018 14:20:50 +0200 Original-Received: from localhost ([::1]:47526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1Wa2-0001Y0-37 for ged-emacs-devel@m.gmane.org; Thu, 29 Mar 2018 08:22:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1WZr-0001Wc-S8 for emacs-devel@gnu.org; Thu, 29 Mar 2018 08:22:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f1WZo-0006LM-LE for emacs-devel@gnu.org; Thu, 29 Mar 2018 08:22:47 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f1WZo-0006LF-Gj; Thu, 29 Mar 2018 08:22:44 -0400 Original-Received: from [176.228.60.248] (port=2398 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f1WZn-000217-Ud; Thu, 29 Mar 2018 08:22:44 -0400 In-reply-to: <87a7utgqql.fsf@russet.org.uk> (phillip.lord@russet.org.uk) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224151 Archived-At: > From: phillip.lord@russet.org.uk (Phillip Lord) > Date: Tue, 27 Mar 2018 22:20:34 +0100 > > x86_64 > no-deps zip 17min > Deps-zip 3min > installer 25min > > i686 > no deps zip 31min > deps zip 47min > installer 61min > > So, the installer is really slow to build (probably because of the > compression I guess). But the second i686 step is really slow, > especially the building the zips and installer. Does this happen only when building both the 64-bit and the 32-bit zips? What if you build only the 32-bit one -- do you get the same slow times? My next suspect is the way MSYS2 lets you build 32-bit binaries. I know nothing about that, all I see is that you set 2 environment variables, but could that cause Bash or Make or some other component to run out of memory due to a bug or a memory leak? > I don't think this is the Emacs build per se; it looks to me like a > memory leak; the build process just gets slower and slower. In fact, > I've had to reduce the parallalism of make or the whole process crashes > with a resource allocation error. Which program reports the error? > But Process Manager reports that the VM has memory left. What does Task Manager say about memory consumption of the various programs involved in the build, like Bash, Make, and Python? Do you see their memory growing to values that are unreasonably large? The slow-down could be caused by memory consumption, so it's possible the actual problem is with memory, not with slow builds.