helpmake - Support: sr #106077, Make decides that it built an...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

sr #106077: Make decides that it built an object file, but didn't actually do it.

Submitted by:  Clay Harris <cosmos>
Submitted on:  Wed 07 Nov 2007 08:18:01 PM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: POSIX-Based

Wed 07 Nov 2007 08:18:01 PM UTC, original submission:

The attached makefile demonstrates the problem.

I think the following discussion may be related.

Make manual section 10.5.4 (How patterns match)
is ambiguous on which "directory names" are reattached
to a prerequisite after a rule is selected.

Given:

%.o %.d: %.c
<tab> $(COMPILE.c) ... generate .o and .d

../c1.o ../c1.d: src/c1.c

c1 should match the pattern rule above.
The question is which directory name is reattached, I.e.
the one from the target or the one specified with the prereq.

../c1.o ../c1.d: ../c1.c
OR
../c1.o ../c1.d: src/c1.c

If a prereq has a directory specified, we would always
want to use it in preference to the directory of the target.
Is this what make does?

Clay Harris <cosmos>

 

Attached Files
file #14335:  makefile added by cosmos (1kB - application/octet-stream - Make 3.81 test (using gcc))

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cosmos (Submitted the item)
  •  

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

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 07 Nov 2007 08:18:02 PM UTCcosmosAttached File-=>Added makefile, #14335

    Back to the top


    Powered by Savane 3.1-cleanup