From owner-freebsd-current@freebsd.org Sat Aug 5 20:16:53 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4199FDC7F53 for ; Sat, 5 Aug 2017 20:16:53 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 059B221DE; Sat, 5 Aug 2017 20:16:52 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 91D042D7C7; Sat, 5 Aug 2017 22:16:42 +0200 (CEST) From: Dimitry Andric Message-Id: <37395FD6-09E5-4C11-A189-7B3050E9A541@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_29E074AB-FD46-4FD2-8AE7-EFEB83E87909"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: buildworld fails while building static clang library Date: Sat, 5 Aug 2017 22:16:29 +0200 In-Reply-To: Cc: FreeBSD Current , Ed Maste To: Aijaz Baig References: <9C14A21D-1C17-44F9-882B-4A01C311E164@FreeBSD.org> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Aug 2017 20:16:53 -0000 --Apple-Mail=_29E074AB-FD46-4FD2-8AE7-EFEB83E87909 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 5 Aug 2017, at 21:55, Aijaz Baig wrote: >=20 > I was a bit sceptical of this as it was failing with that same port = (or is clang a port by the way?) all the time. So as you suggested, I = reduced my '-j' number and it still fails at the very same place with = the very same error. Is it because the clang port doesn't allow parallel = make jobs? >=20 > Nonetheless, as to my query regarding building the world, based on = what my goals are (as I stated earlier), does it require me to actually = build the whole world? >=20 > Regards, > Aijaz Baig >=20 > On Sat, Aug 5, 2017 at 2:34 PM, Dimitry Andric = wrote: > On 5 Aug 2017, at 06:00, Aijaz Baig wrote: > > > > I am trying to buildworld and it works well for quite some time = until it > > tries to build the static version of the clang library where it = fails. The > > error it spits is: > > > > Killed > > *** [all_subdir_lib/clang/libclang] Error code 137 > > > > make[5]: stopped in /usr/src/lib/clang >=20 > I'm just guessing, but the most likely cause is lack of memory. = Please > check dmesg for any messages like "pid foo (bar), uid baz, was killed: > out of swap space". To work around this, you can temporarily add more > swap space, or lower your -j level. Hm, now I read that your obj dir is on NFS, you might be hitting some 4GiB filesize limit for the final .a file. Are you building world with a very low optimization level, and debug information on? I remember there being an issue with ar and/or ranlib choking when the .a files become too big. Ed, does that ring any bells? -Dimitry --Apple-Mail=_29E074AB-FD46-4FD2-8AE7-EFEB83E87909 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.1 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWYYnnQAKCRCwXqMKLiCW oz9OAJ9B0wLn/iH2j8Q4YGNXxwFH0ax0KwCgk5fPqRy1qRpBY2kjDyMBMN9AUOE= =Hg+B -----END PGP SIGNATURE----- --Apple-Mail=_29E074AB-FD46-4FD2-8AE7-EFEB83E87909--