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

 
 

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

Submitter:  None
Submitted:  Wed 06 Aug 2014 06:47:08 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Works for me Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.80 Operating System:  None
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-08-12 psmith StatusNone Works for me
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code