bugmake - Bugs: bug #52267, No rule to make target, when...

 
 

bug #52267: No rule to make target, when re-including file after being generated

Submitter:  Koen Van Hoof <kvho>
Submitted:  Mon 23 Oct 2017 09:24:53 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.3 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 03 Aug 2022 03:49:03 AM UTC, comment #1: 

This is a duplicate of bug #41273

Paul D. Smith <psmith>
Group administrator
Mon 23 Oct 2017 09:24:53 AM UTC, original submission:  

In buildroot makefile https://git.busybox.net/buildroot/tree/Makefile following lines

-include SOMEFILE
$(shell create SOMEFILE)
include SOMEFILE

results in
make: * No rule to make target 'SOMEFILE'.  Stop.

Easy to fix:
--- a/read.c
+++ b/read.c
@@ -412,6 +412,8 @@ eval_makefile (const char *filename, int
       deps->file->last_mtime = NONEXISTENT_MTIME;
       return deps;
     }
+  else if (deps->file->last_mtime == NONEXISTENT_MTIME)
+    deps->file->last_mtime = UNKNOWN_MTIME;
 
   /* Success; clear errno.  */
   deps->error = 0;

Koen Van Hoof <kvho>

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by kvho (Submitted the item)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2022-08-03 psmith StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code