From nobody Mon Dec 12 20:05:03 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NWCKF06s2z4Y1ZZ for ; Mon, 12 Dec 2022 20:05:05 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from gromit.dlib.vt.edu (gromit.dlib.vt.edu [128.173.126.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NWCKD6pgCz45N8 for ; Mon, 12 Dec 2022 20:05:04 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2001:470:e15b:23::23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gromit.dlib.vt.edu (Postfix) with ESMTPSA id 46D984D1D3; Mon, 12 Dec 2022 15:05:04 -0500 (EST) Content-Type: text/plain; charset=us-ascii List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: lang/rust is super slow to build From: Paul Mather In-Reply-To: Date: Mon, 12 Dec 2022 15:05:03 -0500 Cc: User Questions Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Pat Maddox X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4NWCKD6pgCz45N8 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:1312, ipnet:128.173.0.0/16, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Dec 12, 2022, at 2:27 PM, Pat Maddox wrote: > Using poudriere, lang/rust is at 2 hours and counting on my 10-core i9 = w/ 128 gigs of RAM. >=20 > Does that sound right? It seems extremely slow to me, but this is my = first time building it. >=20 > How long does it take others to build? What options are you using, or = any other suggestions for shortening the time? It used to take much longer than that on my 6-core AMD system with 16 GB = RAM---about 9 hours, from memory. It's what led me to install and set = up ports-mgmt/sccache-overlay to speed up subsequent builds, which it = did (but which brought its own problems). Because I use them just as ports build dependencies, latterly, I've been = experimenting with using poudriere-devel to download dependencies like = rust, gcc*, and llvm* from the FreeBSD.org package repositories rather = than build them locally. It's been hit and miss, with options conflicts = sometimes causing a refusal to download the FreeBSD.org version of the = package. Finally, I agree this seems extremely slow---not just lang/rust but = other compilers like gcc* and llvm*. It's a mystery to me that I can = rebuild the entire FreeBSD source tree (which includes some flavour of = llvm) in at least half the time (or less) it takes to build just a = single llvm* port. =3D:-O I guess the OS build includes various build-time optimisations, so I, = too, would be interested in knowing if there is some way of speeding up = ports builds of rust, gcc*, and llvm*. Cheers, Paul.