Can the port command take advantage of multiple cores?

Yves de Champlain yves at macports.org
Tue Feb 5 21:44:51 PST 2008


Le 08-02-05 à 21:14, Ryan Schmidt a écrit :

>
> On Feb 5, 2008, at 16:41, Yves de Champlain wrote:
>
>> Le 08-02-03 à 19:48, Vincent Lefevre a écrit :
>>
>>> On 2008-02-02 17:45:35 -0600, Ryan Schmidt wrote:
>>>
>>>> Not exactly. Not all software supports parallel building. Each  
>>>> port must
>>>> be tested to ensure that it works. As ports are tested,
>>>> "use_parallel_build yes" is added to the portfile. Then MacPorts  
>>>> will
>>>> build those ports using -j$jobs (where $jobs is the number of CPU  
>>>> cores
>>>> in your computer). This was added for MacPorts 1.6.
>>>
>>> Is there any reason why this option isn't documented in the
>>> portfile(7) man page?
>>
>> BTW, gcc42 which is flagged as parrallel safe breaks for me at  
>> destroot.  So it might happen that stuff that works on 2 cores fail  
>> with more cores.
>
> Well, how many cores do you have, and what error are you getting?

It was a general warning rather than a bug report ... 8 cores and  
happens during destroot.  I did not keep the output but it had  
something to do with "waiting for unfinished jobs"

yves



More information about the macports-users mailing list