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

 
 

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

Submitter:  None
Submitted:  Wed 04 Dec 2013 10:26:31 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Not A Bug Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.0 Operating System:  None
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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:


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

$(eval $(value def))

all:


won't fail.

Paul D. Smith <psmith>
Group 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 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)
  •  

    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
    2014-01-06 psmith StatusNone Not A Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code