bug-make
[Top][All Lists]
Advanced

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

[bug #38827] Make tool does not work for pre-build steps with parallel b


From: Sluvy
Subject: [bug #38827] Make tool does not work for pre-build steps with parallel build option
Date: Thu, 25 Apr 2013 14:23:25 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31

URL:
  <http://savannah.gnu.org/bugs/?38827>

                 Summary: Make tool does not work for pre-build steps with
parallel build option
                 Project: make
            Submitted by: python12
            Submitted on: Thu 25 Apr 2013 02:23:24 PM GMT
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.82
        Operating System: Any
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

Here is a simple makefile to reproduce the bug:


#       invoke this makefile with parallel jobs:
#       make -j8 all
#       1. the my-main-rule rule has a dependency on the dummyfolder
#       2. the dummyfolder is created during pre-build step
#       3. pre-build rule is a prerequisite for the my-main-rule which means
#               my-main-rule executes only if pre-build step finished
#       
#       It fails to execute make -j8 all:
#       mingw32-make: *** No rule to make target `dummyfolder', needed by
`my-main-rule'.  Stop.
#       mingw32-make: *** Waiting for unfinished jobs....
#       '     Before executing PRE BUILD step '
#       mkdir dummyfolder
#       '     After executing PRE BUILD step '

all: main-build

main-build: pre-build my-main-rule 

# Tool invocations
my-main-rule: dummyfolder | pre-build
        @echo 'Building target'

pre-build:
        address@hidden '     Before executing PRE BUILD step '
        -mkdir dummyfolder
        address@hidden '     After executing PRE BUILD step '





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 25 Apr 2013 02:23:24 PM GMT  Name: makefile  Size: 880B   By:
python12

<http://savannah.gnu.org/bugs/download.php?file_id=27938>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38827>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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