src\util\meson.build:294:4: ERROR: Program or command 'winepath' not found or not executable
Spin-off from #2690 (closed), so it has same root cause and it regressed from same commit. Fix from !4304 (merged) was incomplete as it didn't consider mingw-w64 GCC native toolchains where winepath doesn't exist. Just like with #2690 (closed), it only happens when building tests.
Log from build with TDM-GCC MinGW-W64:
Microsoft Windows [Version 10.0.18363]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\Software\Development\projects\mesa>echo %buildconf%
meson build/x64 --default-library=static --buildtype=release -Dllvm=false -Dbuild-tests=true
C:\Software\Development\projects\mesa>%buildconf%
The Meson build system
Version: 0.54.0
Source dir: C:\Software\Development\projects\mesa
Build dir: C:\Software\Development\projects\mesa\build\x64
Build type: native build
Program python found: YES (C:\Software\Python38\python.EXE)
Project name: mesa
Project version: 20.1.0-devel
C compiler for the host machine: gcc (gcc 9.2.0 "gcc (tdm64-1) 9.2.0")
C linker for the host machine: gcc ld.bfd 2.33.1
C++ compiler for the host machine: c++ (gcc 9.2.0 "c++ (tdm64-1) 9.2.0")
C++ linker for the host machine: c++ ld.bfd 2.33.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program pkg-config found: YES (C:\Software\DEVELO~1\projects\pkgconf\build\pkg-config.EXE)
Program C:\Software\Python38\python found: YES (C:\Software\Python38\python.exe)
Fetching value of define "ETIME" : 137
Checking for function "bswap32" : YES
Checking for function "bswap64" : YES
Checking for function "clz" : YES
Checking for function "clzll" : YES
Checking for function "ctz" : YES
Checking for function "expect" : YES
Checking for function "ffs" : YES
Checking for function "ffsll" : YES
Checking for function "popcount" : YES
Checking for function "popcountll" : YES
Checking for function "unreachable" : YES
Checking if "__attribute__((const))" compiles: YES
Checking if "__attribute__((flatten))" compiles: YES
Checking if "__attribute__((malloc))" compiles: YES
Checking if "__attribute__((pure))" compiles: YES
Checking if "__attribute__((unused))" compiles: YES
Checking if "__attribute__((warn_unused_result))" compiles: YES
Checking if "__attribute__((weak))" compiles: YES
Checking if "__attribute__((format(...)))" compiles: YES
Checking if "__attribute__((packed))" compiles: YES
Checking if "__attribute__((returns_nonnull))" compiles: YES
Checking if "__attribute__((visibility(...)))" compiles: YES
Checking if "__attribute__((alias(...)))" compiles: YES
Checking if "__attribute__((__noreturn__))" compiles: YES
Checking if "__uint128_t" compiles: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Werror=return-type: YES
Compiler for C supports arguments -Werror=empty-body: YES
Compiler for C supports arguments -Werror=incompatible-pointer-types: YES
Compiler for C supports arguments -Werror=int-conversion: YES
Compiler for C supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES
Compiler for C supports arguments -Wno-format-truncation -Wformat-truncation: YES
Compiler for C supports arguments -fno-math-errno: YES
Compiler for C supports arguments -fno-trapping-math: YES
Compiler for C supports arguments -Qunused-arguments: NO
Compiler for C supports arguments -fno-common: YES
Compiler for C++ supports arguments -Werror=return-type: YES
Compiler for C++ supports arguments -Werror=empty-body: YES
Compiler for C++ supports arguments -Wno-non-virtual-dtor -Wnon-virtual-dtor: YES
Compiler for C++ supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES
Compiler for C++ supports arguments -Wno-format-truncation -Wformat-truncation: YES
Compiler for C++ supports arguments -fno-math-errno: YES
Compiler for C++ supports arguments -fno-trapping-math: YES
Compiler for C++ supports arguments -Qunused-arguments: NO
Compiler for C supports arguments -Wno-override-init -Woverride-init: YES
Compiler for C supports arguments -Wno-initializer-overrides -Winitializer-overrides: NO
Compiler for C supports arguments -fvisibility=hidden: YES
Compiler for C supports arguments -Werror=pointer-arith: YES
Compiler for C++ supports arguments -Werror=pointer-arith: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C++ supports arguments -Werror=vla: YES
Compiler for C supports arguments -Werror=gnu-empty-initializer: NO
Compiler for C++ supports arguments -Werror=gnu-empty-initializer: NO
Compiler for C++ supports arguments -fvisibility=hidden: YES
Checking if "GCC atomic builtins" compiles: YES
Checking if "GCC atomic builtins required -latomic" links: YES
Checking if "GCC 64bit atomics" with dependency not-found links: YES
Library ws2_32 found: YES
Header <sys/sysmacros.h> has symbol "major" : NO
Header <sys/mkdev.h> has symbol "major" : NO
Checking if "xlocale.h" compiles: NO
Checking if "sys/sysctl.h" compiles: NO
Checking if "linux/futex.h" compiles: NO
Checking if "endian.h" compiles: NO
Checking if "dlfcn.h" compiles: NO
Checking if "execinfo.h" compiles: NO
Checking if "sys/shm.h" compiles: NO
Checking if "cet.h" compiles: YES
Checking for function "strtof" : YES
Checking for function "mkostemp" : NO
Checking for function "timespec_get" : NO
Checking for function "memfd_create" : NO
Checking for function "random_r" : NO
Checking for function "flock" : NO
Checking for function "strtok_r" : YES
Header <errno.h> has symbol "program_invocation_name" : NO
Checking whether type "struct dirent" has member "d_type" : NO
Checking if "strtod has locale support" links: NO
Checking if "Bsymbolic" links: YES
Checking if "gc-sections" links: YES
Checking if "version-script" links: YES
Checking if "dynamic-list" links: YES
Compiler for C supports link arguments -Wl,--build-id=sha1: YES
Checking for function "dlopen" : NO
Library dl found: NO
Checking for function "dladdr" with dependency -ldl: NO
Checking for function "dl_iterate_phdr" : NO
Found pkg-config: C:\Software\DEVELO~1\projects\pkgconf\build\pkg-config.EXE (1.6.3)
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency zlib found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency zlib
Using zlib source from cache.
Using zlib patch from cache.
|Executing subproject zlib method meson
|
|Project name: zlib
|Project version: 1.2.11
|C compiler for the host machine: gcc (gcc 9.2.0 "gcc (tdm64-1) 9.2.0")
|C linker for the host machine: gcc ld.bfd 2.33.1
|Windows resource compiler: GNU windres (GNU Binutils) 2.33.1
|Build targets in project: 2
|Subproject zlib finished.
Dependency zlib from subproject subprojects\zlib found: YES 1.2.11
Run-time dependency libzstd found: NO (tried pkgconfig and cmake)
Run-time dependency threads found: YES
Library m found: YES
Run-time dependency libdrm found: NO (tried pkgconfig and cmake)
Run-time dependency valgrind found: NO (tried pkgconfig)
Program win_flex found: YES (C:\Software\DEVELO~1\projects\flexbison\win_flex.EXE)
Program win_bison found: YES (C:\Software\DEVELO~1\projects\flexbison\win_bison.EXE)
Run-time dependency libunwind found: NO (tried pkgconfig and cmake)
Library sensors found: NO
Program dumpbin found: NO
Program symbols-check.py found: YES (python C:\Software\Development\projects\mesa\bin\symbols-check.py)
Program install_megadrivers.py found: YES (c:\software\python38\python.exe C:\Software\Development\projects\mesa\bin\install_megadrivers.py)
DEPRECATION: build_always is deprecated. Combine build_by_default and build_always_stale instead.
Program xmllint found: NO
src\util\meson.build:294:4: ERROR: Program or command 'winepath' not found or not executable
A full log can be found at C:\Software\Development\projects\mesa\build\x64\meson-logs\meson-log.txt
C:\Software\Development\projects\mesa>