[asterisk-dev] BuildSystem: make --jobs without amount of thread hangs

Brian Wilson brian at wildsong.biz
Wed Jun 8 15:44:59 CDT 2016


This is an issue in make not in asterisk so there is no point in reporting
it in the asterisk bug tracker. I tried it on mine and it started spewing
fork errors. I have 8 cores so normally do "make -j 8" with great results.

>From the man page for make:  "If the -j option is given without an
argument, make will not limit the number of jobs that can run
simultaneously."

It should probably say "not specifying a number will almost certainly
overload your CPU".





On Wed, Jun 8, 2016 at 12:11 PM, Scott Griepentrog <sgriepentrog at digium.com>
wrote:

> I would suspect that to be a problem with make dealing successfully with
> the omitted number.  I use this all the time without incident:
>
> make -j$(nproc)
>
>
>
> On Wed, Jun 8, 2016 at 1:58 PM, Alexander Traud <pabstraud at compuserve.com>
> wrote:
>
>> On Ubuntu 16.04 LTS, when I build Asterisk 13.9.1 via
>>
>>
>> wget
>> downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
>> tar zxf asterisk-1*.tar.gz
>> sudo apt install libssl-dev libncurses-dev libnewt-dev libxml2-dev
>> libsqlite3-dev uuid-dev libjansson-dev libedit-dev libblocksruntime-dev
>> ./configure
>>
>> make --jobs
>>
>> the whole computer hangs. Normally, this indicates a dependency issue in
>> the Makefile. Furthermore, I faced dependency issues with make --jobs while
>> doing a partial compile. However, at that time, I did not debug this.
>> Therefore, even specifying not unlimited but a certain amount of threads
>> might not reliable in all cases.
>>
>> I would love to debug this, however, I have no idea where to start. Does
>> anyone know about a debugging strategy for this? Or should I just report
>> this issue on JIRA, so that someone else looks into this one day?
>>
>>
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-dev mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>>
>
>
>
> --
> [image: Digium logo]
> Scott Griepentrog
> Digium, Inc · Software Developer
> 445 Jan Davis Drive NW · Huntsville, AL 35806 · US
> direct/fax: +1 256 428 6239 · mobile: +1 256 580 6090
> Check us out at: http://digium.com · http://asterisk.org
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>



-- 
Brian Wilson, GISP
Wildsong 707-827-0001
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20160608/b9b12253/attachment.html>


More information about the asterisk-dev mailing list