Bootstrap build fails at configuring ninja on Windows x64
Hi,
Win 10 x64
python install: python 3.8.1, meson 0.54, setuptools 46.1.3
mingw install: whatever its installer considers to be up-to-date
I always cerbero with `visualstudio`, `nvcodec` and `intelmsdk` variants enabled (tried with `-c /config/win64.cbc` and without).
Failed to build the current master on Windows. First I tried to just update my previous build but that didn't work (complained about not finding nasm.exe among other things) so gradually I went back to scratch (deleted the build folder, even wiped the .cache). Now bootstrap exits with:
[(4/18) ninja -> configure]
Running command ['C:/Program Files/Python38/python.exe', 'configure.py', '--bootstrap']
In file included from C:\Lib\cerbero\build\sources\build-tools\ninja-1.10.0\src\build.h:18,
from C:\Lib\cerbero\build\sources\build-tools\ninja-1.10.0\src\build.cc:15:
c:\lib\cerbero\build\mingw\multilib\include\c++\8.2.0\cstdio:42:10: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^~~~~~~~~
compilation terminated.
bootstrapping ninja...
warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/*.in.cc will not affect your build.
when running: x86_64-w64-mingw32-g++ -MMD -MT build\build.o -MF build\build.o.d -g -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -pipe -DNINJA_PYTHON="python.exe" -O2 -DNDEBUG -D_WIN32_WINNT=0x0601 -D__USE_MINGW_ANSI_STDIO=1 -I. -Wall -g -O2 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -Wall -g -O2 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -c C:\Lib\cerbero\build\sources\build-tools\ninja-1.10.0\src\build.cc -o build\build.o
Traceback (most recent call last):
File "configure.py", line 523, in <module>
objs += cxx(name, variables=cxxvariables)
File "configure.py", line 291, in cxx
return n.build(built(name + objext), 'cxx', src(name + '.cc'), **kwargs)
File "configure.py", line 173, in build
self._run_command(self._expand(cmd, local_vars))
File "configure.py", line 198, in _run_command
subprocess.check_call(cmdline, shell=True)
File "C:\Program Files\Python38\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'x86_64-w64-mingw32-g++ -MMD -MT build\build.o -MF build\build.o.d -g -Wall -Wextra -Wno-deprecated -Wno-missing-field-initializers -Wno-unused-parameter -fno-rtti -fno-exceptions -pipe -DNINJA_PYTHON="python.exe" -O2 -DNDEBUG -D_WIN32_WINNT=0x0601 -D__USE_MINGW_ANSI_STDIO=1 -I. -Wall -g -O2 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -Wall -g -O2 -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -c C:\Lib\cerbero\build\sources\build-tools\ninja-1.10.0\src\build.cc -o build\build.o' returned non-zero exit status 1.
Recipe 'ninja' failed at the build step 'configure'