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

 
 

bug #43901: Stop on error when build -include

Submitted by:  Andrii <andigor>
Submitted on:  Mon 29 Dec 2014 12:44:32 PM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 4.1Operating 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.

 

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>
Project 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 File(s):
   
   
Comment:
   

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 andigor (Submitted the item)
  •  

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

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 06 Jun 2017 11:18:29 PM UTCpsmithOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1