I'm getting the following error (several of them, all look similar) when trying to build
./build.cmd -os browser -subset mono+libs
on a clean build of the repo.
FAILED: mono/sgen/CMakeFiles/sgen_objects.dir/sgen-marksweep.c.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1433~1.316\bin\Hostx86\x64\cl.exe /nologo -DHAVE_CONFIG_H -DHAVE_SGEN_GC -DLLVM_API_VERSION=1600 -DNO_GLOBALIZATION_SHIM -IC:\Workspaces\runtime\artifacts\obj -IC:\Workspac
es\runtime\src\native -IC:\Workspaces\runtime\artifacts\obj\mono\browser.wasm.Debug\cross\mono\sgen\..\.. -IC:\Workspaces\runtime\src\mono\mono\sgen\..\.. -IC:\Workspaces\runtime\src\mono\mono\sgen\.. -IC:\Workspaces\runti
me\src\native\public\. -IC:\Workspaces\runtime\artifacts\obj\mono\browser.wasm.Debug\cross\mono\eglib -IC:\Workspaces\runtime\src\mono\mono\eglib -DHOST_WIN32 -D__WIN32__ -DWIN32 -DWIN32_LEAN_AND_MEAN -DNDEBUG -D_CRT_SECUR
E_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DWIN32_THREADS -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DFD_SETSIZE=1024 -DNVALGRIND -IC:\Workspaces\runtime\artifacts\obj\mono\browser.wasm.
Debug\llvm\\x64/include -D__STDC_CONSTANT_MACROS -D__STD_FORMAT_MACROS -D__STDC_LIMIT_MACROS /O2 /Ob2 /DNDEBUG -MT /source-charset:utf-8 /wd4100 /wd4702 /wd4706 /wd4245 /wd4389 /W4 /WX /wd4324 /EHsc /FC /Oi /GF /Zi /GL -Os
-std:c11 /showIncludes /Fomono\sgen\CMakeFiles\sgen_objects.dir\sgen-marksweep.c.obj /Fdmono\sgen\CMakeFiles\sgen_objects.dir\sgen_objects.pdb /FS -c C:\Workspaces\runtime\src\mono\mono\sgen\sgen-marksweep.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(9531): error C2220: the following warning is treated as an error
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(9531): warning C5105: macro expansion producing 'defined' has undefined behavior
Is there any help I get to fix this?
I'm getting the following error (several of them, all look similar) when trying to build
on a clean build of the repo.
Is there any help I get to fix this?