This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Large parallel glibc builds.



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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]