Re: lang/rust is super slow to build

From: paul beard <paulbeard_at_gmail.com>
Date: Tue, 13 Dec 2022 03:42:47 UTC
On Mon, Dec 12, 2022 at 7:38 PM Mark Tinka <mark@tinka.africa> wrote:

>
>
> On 12/12/22 21: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.
> >
> > How long does it take others to build? What options are you using, or
> > any other suggestions for shortening the time?
>
> I've found the only way to shorten the time is to install the binary
> package.
>
> It normally takes a couple of hours to build on my systems when I use
> the Ports, which I don't mind. I do have some systems that were not well
> configured for space when they were installed, and building Rust on
> these consumes all the disk space during the build phase. For these, I
> just upgrade from binary and I'm done with it. Takes all of 2 minutes.
>
> Mark.
>
>
I swapped to binary upgrades for this port…it would fill up swap and die
before completing, after hours of work. Never understood why WORKDIR
pointed to my small /tmp partition vs my generous /usr filesystem.

-- 
Paul Beard / www.paulbeard.org/