[Top][All Lists]

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

Re: Makefile line number bug?

From: Jonny Grant
Subject: Re: Makefile line number bug?
Date: Fri, 13 Nov 2015 11:45:17 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 12/11/15 13:56, address@hidden wrote:
Jonny Grant writes:
  > Hello
  > Is this a bug? line numbers are output as (2), but actually they are
  > different. Note that also the "Hello" is output in the wrong order.. I
  > presume this may be the OS rather than GNU Make.
  > Please keep my email address in replies as I am not a member of this list.
  > Regards, Jonny
  > $ make -f makefile.mak
  > makefile.mak:2: One
  > makefile.mak:2: Two
  > makefile.mak:2: Three
  > Hello
  > $ make --version
  > GNU Make 4.1
  > Built for i686-pc-cygwin
  > Copyright (C) 1988-2014 Free Software Foundation, Inc.
  > License GPLv3+: GNU GPL version 3 or later 
  > This is free software: you are free to change and redistribute it.
  > There is NO WARRANTY, to the extent permitted by law.
  > makefile.mak (not sure if the TABs have been lost)
  > all:
  > @echo Hello
  > $(warning One)
  > $(warning Two)
  > $(warning Three)

  Tabs have been lost.

  If the 'warning' lines are at the beginning of the line, make behaves
  with the proper line numbers.

  If there are tabs before each 'warning', then you get the result you

  A curious result, to be sure.


My expectation is that regardless of where on the line the 'warning' was, it would still output.

Would you like me to file this on the GNU Make bugtracker?

I can pay a bugbounty :)

Please keep my email address in any replies.

Regards, Jonny

reply via email to

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