bugmake - Bugs: bug #107, Make fails when it could re-exec,...


bug #107: Make fails when it could re-exec, and then succeed.

Submitted by:  Paul D. Smith <psmith>
Submitted on:  Sat 20 Apr 2002 08:49:09 PM UTC  
Severity: 1 - WishItem Group: Enhancement
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.79Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)

You are not logged in

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


Fri 18 Nov 2011 02:33:52 PM UTC, comment #1:

Just to point out this works fine if you tell make to ignore errors during builds using "-include":

Not saying this is a perfect solution but it does work.

Paul D. Smith <psmith>
Project Administrator
(Why is this post is considered to be spam? Users may have reported it to be spam or, if it has been recently posted, it may just be waiting for spamchecks to be run.)
Spam content:



-Deleted Account- <sevanath>
Sat 20 Apr 2002 08:49:09 PM UTC, original submission:

If a makefile "include"s another makefile that doesn't exist and which make doesn't know how to create, make fails. This is normally correct.

However, say there are two "include"d files, both of which are generated. Say make knows how to build the first one, and the contents of the first one will include instructions on how to build the second one.

In this case, make still fails although it could succeed, by building the first file, then re-execing itself, whereupon it would know how to build the second one.

Repeat by:

$ cat Makefile
there: hi ; @echo there
a.mk: ; echo 'b.mk: ; echo "hi: ; @echo hi" > $$@' > $@
include a.mk
include b.mk

$ make
Makefile:3: a.mk: No such file or directory
Makefile:4: b.mk: No such file or directory
make: *** No rule to make target `b.mk'. Stop.

Reported via GNATS by Dima Barsky <dima@debian.org>

Paul D. Smith <psmith>
Project Administrator


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

    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-cleanup1