[Mingw-w64] meson step fails due to issues with sh and piping into gperf
git -C .\build\fontconfig-git\ describe --always --tags --dirty
2.14.1
log
CPPFLAGS: -D_FORTIFY_SOURCE=0 -D__USE_MINGW_ANSI_STDIO=1
CFLAGS: -mthreads -mtune=generic -O2 -pipe
CXXFLAGS: -mthreads -mtune=generic -O2 -pipe
LDFLAGS: -pipe -static-libgcc -static-libstdc++
meson .. --default-library=static --buildtype=release --prefix=/local32 --backend=ninja --bindir=bin-global -Ddoc=disabled -Dtests=disabled
The Meson build system
Version: 0.63.3
Source dir: D:/media-autobuild_suite/build/fontconfig-git
Build dir: D:/media-autobuild_suite/build/fontconfig-git/build-32bit
Build type: native build
Project name: fontconfig
Project version: 2.14.1
C compiler for the host machine: gcc.bat (gcc 12.2.0 "gcc.exe (Rev4, Built by MSYS2 project) 12.2.0")
C linker for the host machine: gcc.bat ld.bfd 2.39
Host machine cpu family: x86
Host machine cpu: x86
Found pkg-config: --keep-system-cflags (1.8.0)
Run-time dependency freetype2 found: YES 24.3.18
Run-time dependency expat found: YES 2.4.9
Program python3 found: YES (D:/media-autobuild_suite/msys64/mingw32/bin/python.exe)
Has header "dirent.h" : YES
Has header "fcntl.h" : YES
Has header "stdlib.h" : YES
Has header "string.h" : YES
Has header "unistd.h" : YES
Has header "sys/statvfs.h" : NO
Has header "sys/vfs.h" : NO
Has header "sys/statfs.h" : NO
Has header "sys/param.h" : YES
Has header "sys/mount.h" : NO
Checking for function "link" : NO
Checking for function "mkstemp" : YES
Checking for function "mkostemp" : NO
Checking for function "_mktemp_s" : YES
Checking for function "mkdtemp" : NO
Checking for function "getopt" : YES
Checking for function "getopt_long" : YES
Checking for function "getprogname" : NO
Checking for function "getexecname" : NO
Checking for function "rand" : YES
Checking for function "random" : NO
Checking for function "lrand48" : NO
Checking for function "random_r" : NO
Checking for function "rand_r" : NO
Checking for function "readlink" : NO
Checking for function "fstatvfs" : NO
Checking for function "fstatfs" : NO
Checking for function "lstat" : NO
Checking for function "mmap" : NO
Checking for function "vprintf" : YES
Checking for function "FT_Get_BDF_Property" with dependency freetype2: YES
Checking for function "FT_Get_PS_Font_Info" with dependency freetype2: YES
Checking for function "FT_Has_PS_Glyph_Names" with dependency freetype2: YES
Checking for function "FT_Get_X11_Font_Format" with dependency freetype2: YES
Checking for function "FT_Done_MM_Var" with dependency freetype2: YES
Header "fcntl.h" has symbol "posix_fadvise" : NO
Checking whether type "struct statvfs" has member "f_basetype" : NO
Checking whether type "struct statvfs" has member "f_fstypename" : NO
Checking whether type "struct statfs" has member "f_flags" : NO
Checking whether type "struct statfs" has member "f_fstypename" : NO
Checking whether type "struct dirent" has member "d_type" : NO
Checking for size of "void *" : 4
Checking for alignment of "void *" : 4
Checking for alignment of "double" : 8
Checking if "stdatomic.h atomics" : links: YES
Checking if "Intel atomics" : links: YES
Checking if "Solaris atomic ops" : links: NO
Program gperf found: YES (D:\media-autobuild_suite\msys64\mingw32\bin/gperf.EXE)
Program sh found: YES (D:\media-autobuild_suite\msys64\usr\bin/sh.EXE)
../meson.build:337:2: ERROR: Command "D:\media-autobuild_suite\msys64\usr\bin/sh.EXE -c echo foo,bar | D:\media-autobuild_suite\msys64\mingw32\bin/gperf.EXE -L ANSI-C" failed with status 127.
A full log can be found at D:/media-autobuild_suite/build/fontconfig-git/build-32bit/meson-logs/meson-log.txt
running without meson:
D:\media-autobuild_suite\msys64\usr\bin/sh.EXE -c "echo foo,bar | D:\media-autobuild_suite\msys64\mingw32\bin/gperf.EXE -L ANSI-C"
/trunk/msys64/usr/bin/sh: line 1: D:media-autobuild_suitemsys64mingw32bin/gperf.EXE: No such file or directory
$LASTEXITCODE
127
Perhaps instead of using sh to pipe into stdin, foo,bar
could be written out to a file and that could be used as the input?