head 1.8; access; symbols netbsd-11-0-RELEASE:1.8 netbsd-11-0-RC7:1.8 netbsd-11-0-RC6:1.8 netbsd-11-0-RC5:1.8 netbsd-11-0-RC4:1.8 netbsd-11-0-RC3:1.8 netbsd-11-0-RC2:1.8 netbsd-11-0-RC1:1.8 perseant-exfatfs-base-20250801:1.8 netbsd-11:1.8.0.2 netbsd-11-base:1.8 netbsd-10-1-RELEASE:1.2 perseant-exfatfs-base-20240630:1.3 perseant-exfatfs:1.3.0.2 perseant-exfatfs-base:1.3 netbsd-10-0-RELEASE:1.2 netbsd-10-0-RC6:1.2 netbsd-10-0-RC5:1.2 netbsd-10-0-RC4:1.2 netbsd-10-0-RC3:1.2 netbsd-10-0-RC2:1.2 netbsd-10-0-RC1:1.2 netbsd-10:1.2.0.2 netbsd-10-base:1.2 cjep_sun2x-base1:1.1 cjep_sun2x:1.1.0.4 cjep_sun2x-base:1.1 cjep_staticlib_x-base1:1.1 cjep_staticlib_x:1.1.0.2 cjep_staticlib_x-base:1.1; locks; strict; comment @# @; 1.8 date 2025.06.12.20.07.59; author rillig; state Exp; branches; next 1.7; commitid TvXDsjyvKE04KDYF; 1.7 date 2025.06.12.19.02.32; author rillig; state Exp; branches; next 1.6; commitid KVFL0xqz3NxBnDYF; 1.6 date 2025.03.30.09.51.50; author rillig; state Exp; branches; next 1.5; commitid veGmSzVhPiW2G4PF; 1.5 date 2024.07.04.20.18.40; author rillig; state Exp; branches; next 1.4; commitid 75IS4XOhTa8VOygF; 1.4 date 2024.07.04.17.47.54; author rillig; state Exp; branches; next 1.3; commitid mjDGVMgldk7QYxgF; 1.3 date 2024.04.01.12.26.02; author rillig; state Exp; branches 1.3.2.1; next 1.2; commitid 6yJlbUI3gsuler4F; 1.2 date 2021.12.09.20.13.10; author rillig; state Exp; branches; next 1.1; commitid O1mxwHYOSFzmW0kD; 1.1 date 2020.12.19.16.00.17; author rillig; state Exp; branches; next ; commitid DxaHgAJ9grivXmAC; 1.3.2.1 date 2025.08.02.05.58.34; author perseant; state Exp; branches; next ; commitid 23j6GFaDws3O875G; desc @@ 1.8 log @make: add program name to stack traces from sub-makes @ text @make: (stdin):2: Zero byte read from file in make[1] in directory "" *** Error code 2 (continuing) Stop. make: stopped making "all" in unit-tests exit status 1 @ 1.7 log @make: add quotes to "in directory" line in stack traces The other lines in stack traces use quotes as well. @ text @d2 1 a2 1 in directory "" @ 1.6 log @make: use '"filename" line 123' for locations instead of 'filename:123' The format 'filename:123' is commonly used for identifying a location in a file. Text editors recognize it and allow quick navigation through it. The previous format was specific to make and would have required custom support in editors. The new format was already used in stack traces, except for the first line. Now all lines use the same format. @ text @d2 1 a2 1 in directory @ 1.5 log @make: on error, print the targets to be made This helps to understand situations with several nested sub-makes in varying directories. @ text @d1 1 a1 1 make: "(stdin)" line 2: Zero byte read from file @ 1.4 log @make: add more context information to error messages In case of a parse error or evaluation error, print the variable value in addition to the variable name, to see the effects of previous expression modifiers. In nested make calls, print the current directory at the bottom of a stack trace, as that information is otherwise hard to get in a parallel build spanning multiple directories. @ text @d6 1 a6 1 make: stopped in unit-tests @ 1.3 log @make: exit immediately after reading a null byte from a makefile The chance of other garbage bytes in such a file is just too high. @ text @d2 1 @ 1.3.2.1 log @Sync with HEAD @ text @d1 1 a1 2 make: (stdin):2: Zero byte read from file in make[1] in directory "" d5 1 a5 1 make: stopped making "all" in unit-tests @ 1.2 log @make: remove period from end of error messages and warnings The majority of the existing error messages and warnings does not include a period at the end. Follow this style consistently. @ text @d2 1 a2 5 make: "(stdin)" line 2: Unexpected end of file in .for loop make: "(stdin)" line 3: Zero byte read from file make: Fatal errors encountered -- cannot continue make: stopped in unit-tests *** Error code 1 (continuing) @ 1.1 log @make(1): add test for null byte in .for loop body @ text @d2 1 a2 1 make: "(stdin)" line 2: Unexpected end of file in for loop. @