bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60919] Communicating -j to sub-make not working properly after mak


From: Bahaa Hamza
Subject: [bug #60919] Communicating -j to sub-make not working properly after make 4.1
Date: Thu, 15 Jul 2021 03:56:39 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?60919>

                 Summary: Communicating -j to sub-make not working properly
after make 4.1
                 Project: make
            Submitted by: bahaahamza
            Submitted on: Thu 15 Jul 2021 07:56:37 AM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.1
        Operating System: None
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:


Referring to make manual, in "Communicating Options to a Sub-make". The
following was mentioned:
"The ‘-j’ option is a special case (see Parallel Execution). If you set it
to some numeric value ‘N’ and your operating system supports it (most any
UNIX system will; others typically won’t), the parent make and all the
sub-makes will communicate to ensure that there are only ‘N’ jobs running
at the same time between them all."

Prior to make version 4.1 (4.0 and earlier), this was working fine. If parent
make was run with -jN, eventually make and sub-make will be running only N
jobs.

But since make 4.1 (till 4.3), it's not working as before.
sub-make will spawn several jobs and the total count is more than N.

I tried to check in Changelog if this was an intended change in behavior, but
i didn't find this change. 

** Testcase:
I've attached a testcase to this bug. 
For example, you can run "make -j 2" using make 3.8 and make 4.2. 
For v3.8, you will notice that only 2 jobs will be running at a time
(subtests).
While for v4.2, all chile subtests will be spawned (2 * 8).





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60919>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]