Re: Parallel build in ports - make -j4

2009-03-26 Thread Dave Wilson
Christian Weisgerber wrote: > > I'm not happy with this approach of delaying all parallel building > until things are perfect. In practice, a lot could be gained by > simply marking all ports that are parallel-safe right now (or > conversely, marking all those that aren't), without attempting to

Re: Parallel build in ports - make -j4

2009-03-26 Thread Theo de Raadt
> Marc Espie wrote: > > > > > export PARALLEL_BUILD=Yes > > > > export MAKE_JOBS=4 > > > > > > N.B. this does not work with all ports. > > > > Yep, does not work with all ports. And I still have stuff I need to fix > > in make itself before we even think of fixing the ports that don't work > >

Re: Parallel build in ports - make -j4

2009-03-26 Thread Marc Espie
On Thu, Mar 26, 2009 at 03:18:40PM +, Christian Weisgerber wrote: > Marc Espie wrote: > > > > > export PARALLEL_BUILD=Yes > > > > export MAKE_JOBS=4 > > > > > > N.B. this does not work with all ports. > > > > Yep, does not work with all ports. And I still have stuff I need to fix > > in mak

Re: Parallel build in ports - make -j4

2009-03-26 Thread Christian Weisgerber
Marc Espie wrote: > > > export PARALLEL_BUILD=Yes > > > export MAKE_JOBS=4 > > > > N.B. this does not work with all ports. > > Yep, does not work with all ports. And I still have stuff I need to fix > in make itself before we even think of fixing the ports that don't work I'm not happy with th

Re: Parallel build in ports - make -j4

2009-03-24 Thread Marc Espie
On Tue, Mar 24, 2009 at 09:40:33AM -, Pedro de Oliveira wrote: > Yes, both the kernel and userland compile with make -j. Works 99% of the time. There are still races in make build, some times it can fail...

Re: Parallel build in ports - make -j4

2009-03-24 Thread Pedro de Oliveira
Yes, both the kernel and userland compile with make -j. On Tue, Mar 24, 2009 at 09:51:10AM +0100, Marc Espie wrote: >Yep, does not work with all ports. And I still have stuff I need to fix >in make itself before we even think of fixing the ports that don't work >with make -j: some of them don't w

Re: Parallel build in ports - make -j4

2009-03-24 Thread Maurice Janssen
On Tue, Mar 24, 2009 at 09:51:10AM +0100, Marc Espie wrote: >Yep, does not work with all ports. And I still have stuff I need to fix >in make itself before we even think of fixing the ports that don't work >with make -j: some of them don't work because the makefiles are wrong, and >some of them don

Re: Parallel build in ports - make -j4

2009-03-24 Thread Marc Espie
On Mon, Mar 23, 2009 at 10:44:43AM +, Stuart Henderson wrote: > On 2009-03-23, Pedro de Oliveira wrote: > > Thanks for that, it worked! > > > > I added the following to my root .profile: > > export PARALLEL_BUILD=Yes > > export MAKE_JOBS=4 > > N.B. this does not work with all ports. > > If y

Re: Parallel build in ports - make -j4

2009-03-23 Thread Stuart Henderson
On 2009-03-23, Pedro de Oliveira wrote: > Thanks for that, it worked! > > I added the following to my root .profile: > export PARALLEL_BUILD=Yes > export MAKE_JOBS=4 N.B. this does not work with all ports. If you're building a number of ports at the same time and want to do these in parallel, lo

Re: Parallel build in ports - make -j4

2009-03-23 Thread Pedro de Oliveira
Thanks for that, it worked! I added the following to my root .profile: export PARALLEL_BUILD=Yes export MAKE_JOBS=4 Someone should add this to bsd.port.mk(5). Regards, Pedro de Oliveira On Sun, Mar 22, 2009 at 2:34 PM, Pedro de Oliveira wrote: > Hello, > > I was wondering if there's any way to

Re: Parallel build in ports - make -j4

2009-03-22 Thread Jason Crawford
On Sun, Mar 22, 2009 at 2:34 PM, Pedro de Oliveira wrote: > Hello, > > I was wondering if there's any way to use make -j4 when building ports from > source? Any obscure option on mk.conf? > > Currently if I run on a port, for example: make -j4 install it just uses one > thread on the makefile of t

Parallel build in ports - make -j4

2009-03-22 Thread Pedro de Oliveira
Hello, I was wondering if there's any way to use make -j4 when building ports from source? Any obscure option on mk.conf? Currently if I run on a port, for example: make -j4 install it just uses one thread on the makefile of the port. Is there any way to pass the "-j4" option to make command ins