bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #46443] $(warning message) line number incorrect if after TAB


From: Brian Vandenberg
Subject: [bug #46443] $(warning message) line number incorrect if after TAB
Date: Wed, 02 Dec 2015 00:41:55 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #3, bug #46443 (project make):

A minor correction to my last comment:

The change in job.c around line 2099 should be to add the line:

child->file->cmds->fileinfo.offset = child->command_line - 1;



With the changes I've outlined I see correct line numbers with this makefile:

.RECIPEPREFIX := >

TARGETS := 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
26 27 28 29

all: ${TARGETS}
> $(warning in $@, line 6)
> @true
> $(warning in $@, line 8)
> @true
> @true
> $(warning in $@, line 11)
> @true
> @true
> @true
> @-false

${TARGETS}:
> @-sleep $$(expr address@hidden % 3)
> @-false
> @-false
> @-false
> $(warning in $@, line 22)
> $(warning in $@, line 23)
> $(warning in $@, line 24)
> @-false
> @-false
> @-false


I executed this with various combinations of -j*N* and didn't see the wrong
line number reported:

~ gmake -f /tmp/makefile -j10 |& grep -P 'makefile:(d+):.*, line
(?!1)|makefile:(?!15|18|19|20|21|25|26|27).*failed'



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46443>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]