Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Dec 2009 13:00:04 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Simon Griffiths <simon.griffiths@tenenbaum.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Issues with make -j option on ports
Message-ID:  <alpine.BSF.2.00.0912271251230.35623@wonkity.com>
In-Reply-To: <00c901ca871b$bc41b510$34c51f30$@griffiths@tenenbaum.co.uk>
References:  <00c101ca8715$75426930$5fc73b90$@griffiths@tenenbaum.co.uk> <alpine.BSF.2.00.0912271024100.35018@wonkity.com> <00c901ca871b$bc41b510$34c51f30$@griffiths@tenenbaum.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 27 Dec 2009, Simon Griffiths wrote:
>> On Sun, 27 Dec 2009, Simon Griffiths wrote:
>>
>>> I seem to get errors with quite a few ports if I use the make -j
>> option.
>>
>> Building with multiple jobs is part of the ports system for several
>> months now.  See the MAKE_JOBS variables in /usr/ports/Mk/bsd.port.mk.
>> Overriding that with -j is going to try to force ports that aren't
>> multiple-job-safe, probably causing the problems you're seeing.
>>
>> The preferred number of jobs defaults to the number of CPUs.  That
>> can be overridden with MAKE_JOBS_NUMBER.
>
> Ahh, that'll be where I'm going wrong then. Thank you very much :)
>
> Is this number only be overridden on the command line e.g. make
> -DMAKE_JOBS_NUMBER=8 install clean...

-D defines a variable (sets it to 1), or you can use variable=value, but 
doing both will create a variable called "MAKE_JOBS_NUMBER=8" and set it 
to 1.  So that should be

make MAKE_JOBS_NUMBER=8 install clean

> or is there a file I could put this in, I'm thinking make.conf in /etc?

Yes, you should be able to set it in /etc/make.conf.  (AFAIK, anyway.)

-Warren Block * Rapid City, South Dakota USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0912271251230.35623>