bugmake - Bugs: bug #15340, make shows incorrect line number...

 
 

bug #15340: make shows incorrect line number in error report

Submitter:  Manoj Srivastava <srivasta>
Submitted:  Sat 31 Dec 2005 03:43:00 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  None Operating System:  None
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 10 Feb 2006 02:34:37 AM UTC, comment #2: 

Closed as a duplicate of bug #106

Paul D. Smith <psmith>
Group administrator
Sat 31 Dec 2005 03:50:55 PM UTC, comment #1: 

Hi,

This could be a duplicate of #106 (I can't seem to be able to close my report)

manoj

Manoj Srivastava <srivasta>
Sat 31 Dec 2005 03:43:00 PM UTC, original submission:  

Please look at the following Makefile:

nikita@zigzag:~> cat -n bug.mak
     1  VAR = value;
     2  all:
     3          echo 1
     4          echo 2
     5          echo $(VAR}

It contains a typo ('}' instead of ')' in line 5) Now running make on it:

nikita@zigzag:~> LANG=C make -f bug.mak
bug.mak:3: * unterminated variable reference.  Stop.

You see, the line number reported in the first line of command block, not line number where the error is.

I faced this when a typo was somewhere in a 100-line command block, that was full of variable references. It was not easy to find where the problem was.

Manoj Srivastava <srivasta>

 

(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

 

CC list is empty

 

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
2006-02-10 psmith StatusNone Duplicate
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code