This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Large parallel glibc builds.
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Tue, 22 Dec 2015 18:30:57 -0200
- Subject: Re: Large parallel glibc builds.
- Authentication-results: sourceware.org; auth=none
- References: <5679A3BE dot 2060303 at redhat dot com> <1450813206 dot 4194 dot 48 dot camel at ubuntu-sellcey> <5679ADC7 dot 1020508 at redhat dot com> <5679AFDC dot 2060804 at redhat dot com> <5679B0BB dot 8010606 at redhat dot com> <5679B0F6 dot 10601 at redhat dot com>
On 22-12-2015 18:22, Florian Weimer wrote:
> On 12/22/2015 09:21 PM, Carlos O'Donell wrote:
>> On 12/22/2015 03:17 PM, Florian Weimer wrote:
>>> On 12/22/2015 09:08 PM, Carlos O'Donell wrote:
>>>> I believe PARALLELMFLAGS is still required, I use it in my scripts.
>>>> I haven't seen anyone fix this or make it more "just works."
>>>
>>> It's supposed to be obsolete since 2001, when it was removed from the
>>> glibc manual.
>>
>> That's certainly wrong. It's still used in the top-level Makefile to
>> parallelize the $(all-subdir-targets) and others.
>
> I assume it was left in, to support older GNU make versions without the
> fancy new job server.
>
> Florian
>
I do not usually set PARALLELMFLAGS, but I decided to give a try. It bail
out when using with '-j' option:
$ PARALLELMFLAGS="-j8" make -j8
[...]
make[2]: Entering directory `/home/azanella/Projects/glibc/glibc-git/csu'
make[2]: warning: -jN forced in submake: disabling jobserver mode.
make[2]: Nothing to be done for `others'.
make[2]: Leaving directory `/home/azanella/Projects/glibc/glibc-git/csu'
[...]
make[2]: *** No rule to make target `/home/azanella/Projects/glibc/glibc-git-build-m64/iconv/charmap.o', needed by `others'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/azanella/Projects/glibc/glibc-git/iconv'
make[1]: *** [iconv/others] Error 2
make[1]: Leaving directory `/home/azanella/Projects/glibc/glibc-git'
make: *** [all] Error 2
Also, "PARALLELMFLAGS='-j8' make" vs "make -j8" is essentially the same regarding
total time spent in my environment (make 3.81).