Build fails on Windows when using mingw
configure:
Version: 0.50.1
Source dir: C:\workspace\dav1d\dav1d
Build dir: C:\workspace\dav1d\dav1d\build
Build type: native build
Project name: dav1d
Project version: 0.3.1
Native C compiler: gcc (gcc 6.3.0 "gcc (MinGW.org GCC-6.3.0-1) 6.3.0")
Build machine cpu family: x86
Build machine cpu: x86
Checking for function "fseeko" : YES
Check usable header "stdatomic.h" : YES
Check usable header "unistd.h" : YES
Check usable header "io.h" : YES
Checking for function "getopt_long" : YES
Checking for function "posix_memalign" : NO
Checking for function "_aligned_malloc" : YES
Compiler for C supports arguments -fvisibility=hidden: YES
Compiler for C supports arguments -Wundef: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C supports arguments -Wno-maybe-uninitialized -Wmaybe-uninitialized: YES
Compiler for C supports arguments -Wno-missing-field-initializers -Wmissing-field-initializers: YES
Compiler for C supports arguments -Wno-unused-parameter -Wunused-parameter: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Wshorten-64-to-32: NO
Compiler for C supports arguments -fomit-frame-pointer: YES
Compiler for C supports arguments -ffast-math: YES
Compiler for C supports arguments -mpreferred-stack-boundary=4: YES
Configuring config.h using configuration
Configuring config.asm using configuration
Program nasm found: YES (C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\nasm.EXE)
Configuring version.h using configuration
Program doxygen found: NO
Configuring dav1d.rc using configuration
Windows resource compiler: GNU windres (GNU Binutils) 2.30
Library m found: YES
Program objcopy found: YES (C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\objcopy.EXE)
Build targets in project: 12
Found ninja-1.8.2 at 'C:\Program Files\Meson\ninja.EXE'
build:
ninja: Entering directory `build'
[29/94] Compiling C object src/25a6634@@dav1d_entrypoint@sta/lib.c.obj.
FAILED: src/25a6634@@dav1d_entrypoint@sta/lib.c.obj
gcc @src/25a6634@@dav1d_entrypoint@sta/lib.c.obj.rsp
[01m[Kcc1.exe:[m[K [01;31m[Kerror: [m[K-mincoming-stack-boundary=2 is not between 3 and 12
[31/94] Compiling C object src/25a6634@@dav1d_entrypoint@sta/thread_task.c.obj.
FAILED: src/25a6634@@dav1d_entrypoint@sta/thread_task.c.obj
gcc @src/25a6634@@dav1d_entrypoint@sta/thread_task.c.obj.rsp
[01m[Kcc1.exe:[m[K [01;31m[Kerror: [m[K-mincoming-stack-boundary=2 is not between 3 and 12
[38/94] Compiling C object src/25a6634@@dav1d_bitdepth_16@sta/recon_tmpl.c.obj.
ninja: build stopped: subcommand failed.