bugmake - Bugs: bug #43901, Stop on error when build -include

 
 

bug #43901: Stop on error when build -include

Submitter:  Andrii <andigor>
Submitted:  Mon 29 Dec 2014 12:44:32 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.1 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 06 Jun 2017 11:18:29 PM UTC, comment #1: 

Starting with GNU make 4.2, bug #102 has been fixed which means that you no longer need to use the -include variant to avoid getting warning messages about include files that will be remade later.

Thus you can use "include" and have your makefiles fail if the rule to rebuild the included file fails.

I'm closing this issue.

Paul D. Smith <psmith>
Group administrator
Mon 29 Dec 2014 12:44:32 PM UTC, original submission:  

Hi guys

Currently I stucked on such problem:

We have a build system based on GNU make. It has a lot of generated headers, files, xml's etc. Also it generates makefile includes:

-include a.mk

a.mk:
    touch a.mk

It is a cool thing that gnu make ignores missed prerequisites for for files which were included using -include directive:

-include a.mk

a.mk: b.txt
    touch a.mk

because b.txt does not exist yet but will be generated later.

But on the other hand in next example we need to stop because the error in build was encountered

-include a.mk

a.mk: b.txt
    some-inappropriate-operation
    touch a.mk

To deal with it we temporaly removed #13216 bugfix

Maybe it is a good reason to add something like +include feature or something similar to fix the problem ?

Andrii <andigor>

 

(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 andigor (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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-06-06 psmith Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code