bugmake - Bugs: bug #30829, vpath conflict with file mention...

 
 

bug #30829: vpath conflict with file mention in makefile vs file on disk

Submitted by:  None
Submitted on:  Fri 20 Aug 2010 04:09:43 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.81Operating System: None
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Fri 20 Aug 2010 04:09:43 PM UTC, original submission:

Using 3.81
Perhaps this is garbage in garbage out:

Files:

$ ls woo sue
sue:
boo.h

woo:
$

Makefile:

$ cat vp.mk
a.o: woo/boo.h
# a.o: sue/boo.h

# succeed
# vpath %h sue woo
# fail
vpath %h woo sue

%.enu: %.h
echo enu_BUILD_success $@ $<

all: boo.enu
echo ALL success $@
$

when you run:

./gnumake.exe -f vp.mk all

gnumake finds woo/boo.h in vpath.c with the function selective_vpath_search (lookup_file line ~488).
It then does not check for the file on disk.

With

vpath %h sue woo

The lookup_file fails and the file is found with dir_file_exists_p.

The problem is the incorrect info:
a.o: woo/boo.h

I found the behaviour at first surprising.

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

 

CC list is empty

 

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

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup