Re: lang/rust is super slow to build

2023-01-30 Thread Xin Li
On 2022-12-14 2:20 AM, Mel Pilgrim wrote: On 2022-12-13 14:18, Xin LI wrote: IMHO the ports collection should provide and use prebuilt packages of compilers (LLVM, GCC, Rust, etc.) built from the FreeBSD packages builder, and ports framework (possibly also the base system) should be changed to

Re: lang/rust is super slow to build

2022-12-18 Thread void
On Sun, Dec 18, 2022 at 07:05:54AM -0500, Gerard E. Seibert wrote: Question 1: Do I have to modify the existing /usr/local/etc/poudriere.d/make.conf file? I have this in the make.conf for the poudriere jail (also it's symlinked to /etc/make.conf): SCCACHE_DIR=/root/.sccache OVERLAYS+=

Re: lang/rust is super slow to build

2022-12-18 Thread Gerard E. Seibert
On Sat, 17 Dec 2022 15:26:59 +, void stated: >On Mon, Dec 12, 2022 at 11:27:45AM -0800, 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 buildin

Re: lang/rust is super slow to build

2022-12-17 Thread void
On Mon, Dec 12, 2022 at 11:27:45AM -0800, 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

Re: lang/rust is super slow to build

2022-12-14 Thread Mel Pilgrim
On 2022-12-13 14:18, Xin LI wrote: IMHO the ports collection should provide and use prebuilt packages of compilers (LLVM, GCC, Rust, etc.) built from the FreeBSD packages builder, and ports framework (possibly also the base system) should be changed to use prebuilt packages by default, unless a

Re: lang/rust is super slow to build

2022-12-13 Thread Pat Maddox
On Tue, Dec 13, 2022, at 2:18 PM, Xin LI wrote: > On Tue, Dec 13, 2022 at 7:55 AM Mel Pilgrim > wrote: > >> 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 extremel

Re: lang/rust is super slow to build

2022-12-13 Thread Xin LI
On Tue, Dec 13, 2022 at 3:32 PM Roger Marquis wrote: > > IMHO the ports collection should provide and use prebuilt packages of > > compilers (LLVM, GCC, Rust, etc.) built from the FreeBSD packages > builder, > > and ports framework (possibly also the base system) should be changed to > > use preb

Re: lang/rust is super slow to build

2022-12-13 Thread Roger Marquis
Using poudriere, lang/rust is at 2 hours and counting on my 10-core i9 w/ 128 gigs of RAM. Several interpreters and compilers take a long time to build today. This may change, of course, after another generation of hardware is released. Even worse, poudriere doesn't need to build it. If you a

Re: lang/rust is super slow to build

2022-12-13 Thread Xin LI
On Tue, Dec 13, 2022 at 7:55 AM Mel Pilgrim wrote: > 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. >

Re: lang/rust is super slow to build

2022-12-13 Thread Mel Pilgrim
On 2022-12-13 8:38, Christoph Brinkhaus wrote: Am Tue, Dec 13, 2022 at 07:55:11AM -0800 schrieb Mel Pilgrim: 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.

Re: lang/rust is super slow to build

2022-12-13 Thread Mel Pilgrim
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 li

Re: lang/rust is super slow to build

2022-12-12 Thread Tatsuki Makino
Actually, I recently created a spell to automate how to find packages that are taking a long time to create because of ALLOW_MAKE_JOBS* :) This is finding out what will be needed for more than 3 minutes. #!/bin/sh find -- /usr/local/poudriere/data/logs/bulk/latest-per-pkg/ -iname \*.log\  -exec g

Re: lang/rust is super slow to build

2022-12-12 Thread Pat Maddox
Okay! It took a few tries for me to recognize that it was ALLOW_MAKE_JOBS rather than PARALLEL_JOBS. Once I set it, it took 26 minutes to build Rust - that’s more like it :) Good to know that there can be some really long build times... for our lower specced build machine at work, I’ll confi

Re: lang/rust is super slow to build

2022-12-12 Thread Edward Sanford Sutton, III
On 12/12/22 12: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 usi

Re: lang/rust is super slow to build

2022-12-12 Thread Robert Clausecker
Hi Pat, Did you configure Poudriere to permit more than one job per package? The default is 1 job per package, with as many packages as you have cores being built in parallel. Yours, Robert Clausecker Am Mon, Dec 12, 2022 at 11:27:45AM -0800 schrieb Pat Maddox: > Using poudriere, lang/rust is at

lang/rust is super slow to build

2022-12-12 Thread Pat Maddox
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 t