bugmake - Bugs: bug #108, implicit prerequisite makes bad...

 
 

bug #108: implicit prerequisite makes bad assumptions

Submitter:  Paul D. Smith <psmith>
Submitted:  Sat 20 Apr 2002 08:52:11 PM UTC
   
 
Severity:  1 - Wish Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  3.79 Operating System:  Any
Fixed Release:  3.81 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 22 Mar 2004 03:12:24 PM UTC, comment #3: 

This has been fixed in CVS and will be in the next version of GNU make.

Paul D. Smith <psmith>
Group administrator
Tue 29 Jul 2003 09:38:33 PM UTC, comment #2: 

No, the example you're giving is (I think) legitimately incorrect.  If your rule creates a file it needs to list that file as a target.  If it doesn't, then make doesn't know about it.

Paul D. Smith <psmith>
Group administrator
Mon 28 Jul 2003 10:35:40 PM UTC, comment #1: 

Is this the same kind of deal?  The following makefile will fail unless you uncomment the rule for "ltest" that should be implicit.  Running make a second time works:

target: test.c link ltest

test.c:
echo "main(){;}" > test.c
link:
ln -sf test.c ltest.c

#ltest:
# ${CC} ltest.c -o ltest

clean:
rm test

Invalid User ID <#21351>
Sat 20 Apr 2002 08:52:11 PM UTC, original submission:  

The problem is a invalid assumption that if a implicit prerequisite's directory does not exist at the beginning then it must not be a candidate.  It fails to not notice that during the bulding of other rules the directory will in fact be created.

Reported via GNATS by -email is unavailable-

Paul D. Smith <psmith>
Group administrator

 

(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

 

CC list is empty

 

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 6 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-04-01 psmith Fixed Release4.0 3.81
2004-03-22 psmith Item GroupEnhancement Bug
    StatusNone Fixed
    Assigned toNone psmith
    Open/ClosedOpen Closed
    Fixed ReleaseNone 4.0

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code