From nobody Tue Dec 13 15:55:11 2022 X-Original-To: freebsd-ports@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 4NWjkq2KvKz4k7v5; Tue, 13 Dec 2022 15:55:31 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Received: from echo.brtsvcs.net (echo.brtsvcs.net [208.111.40.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NWjkp2V8vz3w44; Tue, 13 Dec 2022 15:55:29 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Authentication-Results: mx1.freebsd.org; none Received: from chombo.houseloki.net (65-100-43-2.dia.static.qwest.net [65.100.43.2]) by echo.brtsvcs.net (Postfix) with ESMTPS id 25AA738D0B; Tue, 13 Dec 2022 15:55:11 +0000 (UTC) Received: from [10.26.25.100] (ivy.pas.ds.pilgrimaccounting.com [10.26.25.100]) by chombo.houseloki.net (Postfix) with ESMTPSA id B3B5A269C6; Tue, 13 Dec 2022 07:55:10 -0800 (PST) Subject: Re: lang/rust is super slow to build To: Pat Maddox , User Questions , freebsd-ports@freebsd.org References: From: Mel Pilgrim Message-ID: Date: Tue, 13 Dec 2022 07:55:11 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4NWjkp2V8vz3w44 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36236, ipnet:208.111.40.0/24, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 2022-12-12 11:27, Pat Maddox wrote: > Using poudriere, lang/rust is at 2 hours and counting on my 10-core i9 > w/ 128 gigs of RAM. > > Does that sound right? It seems extremely slow to me, but this is my > first time building it. That sounds typical. You can use ccache and tmpfs to speed it up a little bit, but both rust and llvm are computationally massive. Even worse, poudriere doesn't need to build it. If you aren't changing its options there's no functional difference between building it locally and installing from the public pkg repo. Poudriere does have the ability to install from pkgs, but there is a 2-year-old bug that prevents that feature from working correctly. I recommend everyone comment on issue #822 on the freebsd/poudriere github[1] and explain how much of a pain it is that poudriere doesn't have sane behaviour wrt dependencies. Maybe if enough people comment it will spur a fix. 1: https://github.com/freebsd/poudriere/issues/822