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 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  3.81 Operating System:  None
Fixed Release:  None Triage Status:  None

Add a New Comment(Rich 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:


$ ls woo sue



$ 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.


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.



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

Attach Files:

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 add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




No changes have been made to this item

Back to the top

Powered by Savane 3.3