pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rust build requirements



I should've been tracking this. On my Atom system (2 cores, 1G memory)
rust has been building for three days now. I don't have any other i386
systems to build it on. Well, I do, but it's from the 90's, I think. I
would appreciate any improvements.

On Tue, 13 Aug 2019, Greg Troxel wrote:

nia <nia%netbsd.org@localhost> writes:

14h seems excessive and there might be other factors involved.

On a 4GB machine (~2010 era hardware, Core 2 Quad, DDR3), I can build
rust in 2 hours and LLVM in one hour.

I have not adjusted any options; I'm intentionally staying on defaults.

The machine I quoted in more like 2006, two cores, MAKE_JOBS=1, and a
laptop.  So your 2h with trimmming options and my 14h without seem about
what I'd expect.

For rust I have the rust-llvm option disabled in PKG_OPTIONS to avoid
building LLVM twice, and /dev/random symlinked to /dev/urandom to avoid
rustc sucking up all the entropy from reading from /dev/random whenever
it spawns a process.

Should disabling rust-llvm be the default?  (I really have no idea.)

Perhaps we should patch rustc to use /dev/urandom.

For LLVM I have the cross-compilation targets (except amdgpu) disabled
in PKG_OPTIONS. Even if you plan to cross-compile with LLVM, you probably
don't need all of them.

I wonder what should be default here.


--
Hisashi T Fujinaka - htodd%twofifty.com@localhost
BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee


Home | Main Index | Thread Index | Old Index