From owner-freebsd-toolchain@freebsd.org Thu Nov 28 19:29:31 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8EC861B4B31 for ; Thu, 28 Nov 2019 19:29:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47P74W3HbGz3ykg for ; Thu, 28 Nov 2019 19:29:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 70D3D1B4B30; Thu, 28 Nov 2019 19:29:31 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7094D1B4B2F for ; Thu, 28 Nov 2019 19:29:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47P74W2L6tz3ykf for ; Thu, 28 Nov 2019 19:29:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 19CD5272D for ; Thu, 28 Nov 2019 19:29:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xASJTULl089766 for ; Thu, 28 Nov 2019 19:29:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xASJTU8Y089765 for toolchain@FreeBSD.org; Thu, 28 Nov 2019 19:29:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 242266] CLang 6.0.1 (Part of the System 12.0) can not Build CLang 8.0.1 from the Port Collection Date: Thu, 28 Nov 2019 19:29:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 19:29:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242266 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #3 from Dimitry Andric --- It looks like you are tickling some old bug in 6.0.1 which makes it use way= too much memory for this particular compile command. I tried on 12.0-RELEASE a= md64 with a lot of RAM, and I got the following time(1) output: 84.83 real 31.36 user 53.31 sys 6560428 maximum resident set size 40472 average shared memory size 2587 average unshared data size 255 average unshared stack size 3201539 page reclaims 1370 page faults 0 swaps 1379 block input operations 5 block output operations 0 messages sent 0 messages received 0 signals received 1383 voluntary context switches 1152 involuntary context switches E.g, it needs 6.3 GiB of memory and more than a minute to compile. This is obviously never going to work on i386, which can use up to 4 GiB of memory = for user processes. Compare this to clang 8.0.1 on recent stable/12: 23.17 real 18.12 user 3.36 sys 314944 maximum resident set size 42981 average shared memory size 358 average unshared data size 253 average unshared stack size 69152 page reclaims 1090 page faults 0 swaps 1100 block input operations 5 block output operations 3 messages sent 0 messages received 0 signals received 1105 voluntary context switches 346 involuntary context switches That needs only ~308 MiB of memory, and a little more than 20 seconds. I'm unsure what will help here. You could try leaving out the -march=3Dnati= ve stuff, or lowering the optimization level. The former should be easy enoug= h, but for the latter, I don't know how to achieve that with the port. Another alternative is to do a binary upgrade to 12.1-R, and work from ther= e. --=20 You are receiving this mail because: You are the assignee for the bug.=