bugmake - Bugs: bug #40801, $(info), $(warning), $(error) are...

 
 

bug #40801: $(info), $(warning), $(error) are evaluated in a comment in a define

Submitted by:  None
Submitted on:  Wed 04 Dec 2013 10:26:31 AM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 4.0Operating System: None
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.

 

Mon 06 Jan 2014 08:17:50 PM UTC, comment #1:

This isn't a bug, IMO. The call function is not evaluating its argument as if it were makefile syntax. It's simply expanding the contents of the variable just as referencing it with $(def) would, and variable values are not parsed for comments (or other special characters, besides "$").

If you want to interpret the contents of the variable as if it were a makefile snippet you should use the eval function instead; this:

won't fail.

Paul D. Smith <psmith>
Project Administrator
Wed 04 Dec 2013 10:26:31 AM UTC, original submission:

The following makefile always results in error:

define def
# $(error not an error anymore)
endef

$(call def)

all:

Discovered on Linux (Ubuntu), but should be platform-independent.

Anonymous

 

(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)
  •  

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

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 06 Jan 2014 08:17:50 PM UTCpsmithStatusNone=>Not A Bug
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1