Follow-up Comment #1, bug #65908 (group make):

I see line 3857 is the end of Makefile... and that the likely reason the
testcase is so large is because it's hard to work out where the if/endif
matching has gone astray.  For me, running on Linux, the error initially
reported is different:


mad@shuttle:~/tmp/make-65908/extracted-endif-testcase.zip/git$
~/Downloads/make/make --version
GNU Make 4.4.90
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
mad@shuttle:~/tmp/make-65908/extracted-endif-testcase.zip/git$
~/Downloads/make/make
config.mak.uname:866: *** missing 'endif'.  Stop.
mad@shuttle:~/tmp/make-65908/extracted-endif-testcase.zip/git$ 


Some extra printf debugging revealed that things went astray with the
tab-indented endif at config.mak.uname line 70 not being treated as a Make
control directive, so not closing the tab-indented ifneq two lines earlier. 
It's in the middle of a bunch of assignments, rather than a recipe, so my
initial thought is that Make's gone wrong here.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65908>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to