bugmake - Bugs: bug #42930, Order-only prerequisite being...

 
 

bug #42930: Order-only prerequisite being parsed as normal prerequisite when using pattern matching rule

Submitted by:  None
Submitted on:  Wed 06 Aug 2014 06:47:08 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Works for mePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.80Operating System: None
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 12 Aug 2014 01:53:49 AM UTC, comment #1:

This bug was fixed in GNU make 3.81, released in 2006. I verified the makefile above works as expected in both 3.81 and the current release version GNU make 4.0.

Paul D. Smith <psmith>
Project Administrator
Wed 06 Aug 2014 06:47:08 PM UTC, original submission:

When using a % wildcard to match file targets, the order-only rules do not seem to be parsed properly. The following snippet can demonstrate the issue:
<code>
OBJECT_DIR=Output

${OBJECT_DIR}/RADSTONE/:
mkdir -p ${OBJECT_DIR}/RADSTONE

${OBJECT_DIR}/RADSTONE/%.d: test | ${OBJECT_DIR}/ ${OBJECT_DIR}/RADSTONE/
$(warning Test 1: $^ | $|)touch $@

${OBJECT_DIR}/RADSTONE/test_2.d: test | ${OBJECT_DIR}/ ${OBJECT_DIR}/RADSTONE/
$(warning Test 2: $^ | $|)touch $@
</code>
Issueing:
make -d Output/RADSTONE/test_1.d

results in following output:
Makefile:219: Test 1: Output/ Output/RADSTONE/ |

Issueing:
make -d Output/RADSTONE/test_2.d

results in following output:
Makefile:222: Test 2: | Output/ Output/RADSTONE/

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 12 Aug 2014 01:53:49 AM UTCpsmithStatusNone=>Works for me
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1