From owner-freebsd-current@freebsd.org Sat Aug 5 21:08:15 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 14D61DCA508 for ; Sat, 5 Aug 2017 21:08:15 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-89.reflexion.net [208.70.210.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A2D7A3A9C for ; Sat, 5 Aug 2017 21:08:13 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 6640 invoked from network); 5 Aug 2017 21:12:56 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 5 Aug 2017 21:12:56 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.2) with SMTP; Sat, 05 Aug 2017 17:08:06 -0400 (EDT) Received: (qmail 25692 invoked from network); 5 Aug 2017 21:08:06 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 5 Aug 2017 21:08:06 -0000 Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 0D282EC8EE9; Sat, 5 Aug 2017 14:08:06 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: buildworld fails while building static clang library Message-Id: Date: Sat, 5 Aug 2017 14:08:05 -0700 To: Dimitry Andric , FreeBSD Current 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 21:08:15 -0000 Dimitry Andric dim at FreeBSD.org wrote on Sat Aug 5 20:16:53 UTC 2017 : > 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? >=20 > 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? For an example of this for libWebCore.a and ar see bugzilla 206679 . Quoting part of comment 2: . . . I would have guessed that the file format has some 4GB limit that might = have been reached, explaining why the terminology reads like a file = truncation instead of out-of-memory. Looking around some I found one 2012 reference to code in ar that was = reported to then look like: /* Catch an attempt to grow an archive past its 4Gb limit. */ if (archive_member_file_ptr !=3D (file_ptr) offset) { bfd_set_error (bfd_error_file_truncated); return FALSE; } . . . =3D=3D=3D Mark Millard markmi at dsl-only.net