From owner-freebsd-ports@FreeBSD.ORG Tue Oct 8 22:02:05 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8E6ED6E9 for ; Tue, 8 Oct 2013 22:02:05 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4EEF825A8 for ; Tue, 8 Oct 2013 22:02:04 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::b52c:a1a5:a4e6:beb6] (unknown [IPv6:2001:7b8:3a7:0:b52c:a1a5:a4e6:beb6]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 542555C5A; Wed, 9 Oct 2013 00:02:01 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_BF5A1F18-CC9C-4077-86AD-1E30CFDE6C5E"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: building seamonkey - possible clang bug From: Dimitry Andric In-Reply-To: <52543CD6.3000009@uffner.com> Date: Wed, 9 Oct 2013 00:01:52 +0200 Message-Id: <93EDF919-A3C6-4325-9DE9-F5121BF98035@FreeBSD.org> References: <52543CD6.3000009@uffner.com> To: Tom Uffner X-Mailer: Apple Mail (2.1510) Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Oct 2013 22:02:05 -0000 --Apple-Mail=_BF5A1F18-CC9C-4077-86AD-1E30CFDE6C5E Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On Oct 8, 2013, at 19:11, Tom Uffner wrote: > On Tue Oct 8 15:57:07 UTC 2013, Florian Smeets wrote: > > You were out of swap space, that's why the compiler was killed. > > >> real memory = 268435456 (256 MB) > >> avail memory = 248418304 (236 MB) > > > This is not nearly enough, I don't recall what how much a non debug > > build needs right now, but i think it was close to 2-3GB. > > You could add more swap, but that's not going to make it any faster :) > > Thanks. I realize this. in my message I mentioned that the failure mode > was running out of memory. and that I added swap. What I failed to include > was that (including swap) i had 3/4 G of VM the 1st time, and a bit over > 2 G on the 2nd try. > > Is 2GB still not enough to compile ns_core.c, or is something else wrong? No, this is a clang bug. With your .c file I can reproduce the problem: it looks like clang's optimizer gets into an endless loop, or something similar, and it eats up memory until it dies. Since it turns out recent trunk versions do not exhibit this behavior, I will attempt to figure out exactly where it was fixed. :-) Meanwhile, as a workaround, you can lower the optimization level from -O3 to -O2, that should allow the build to continue. -Dimitry --Apple-Mail=_BF5A1F18-CC9C-4077-86AD-1E30CFDE6C5E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iEYEARECAAYFAlJUgNgACgkQsF6jCi4glqPsfwCeNex8kqXcZgqSY+QrrCrMoBst QC0AoKO9eBcaBSxqBg5upj+R5lxGyd/P =DPIB -----END PGP SIGNATURE----- --Apple-Mail=_BF5A1F18-CC9C-4077-86AD-1E30CFDE6C5E--