CMake generate failed
envgap__google__filament-7053
01 / FAILURE SIGNATURE
As reported upstream
Compiler exited with error code 2: "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\bin\Hostx64\x64\cl.exe" @C:\Users\wumo\AppData\Local\Temp\response-file7725533563280834861 C:\Users\wumo\AppData\Local\Temp\compiler-file14242125242686930554
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
3ab7780c381724ab1dfa8a2bc8d87bd0c39381a7- Manifest
libs/gltfio/CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
google/filament #7053 · read the original issue
**Logs**
```
CMake output:
-- DFG LUT size set to 128x128
-- Configuring done (0.6s)
-- Generating done (0.6s)
-- Build files have been written to: E:/Hack/CLionProjects/filament/cmake-build-debug
Cannot get compiler information:
Compiler exited with error code 2: "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\bin\Hostx64\x64\cl.exe" @C:\Users\wumo\AppData\Local\Temp\response-file7725533563280834861 C:\Users\wumo\AppData\Local\Temp\compiler-file14242125242686930554 | @response-file7725533563280834861=/TP /DFILAMENT_DRIVER_SUPPORTS_VULKAN /DFILAMENT_IBL_LITE=1 /DFILAMENT_SUPPORTS_OPENGL /DGLTFIO_DRACO_SUPPORTED=1 /DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS /DWIN32 /D_WINDOWS /GR /EHsc /std:c++latest /W0 /Zc:__cplusplus -D_USE_MATH_DEFINES=1 -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DTNT_DEV /Zi /Ob0 /Od /RTC1 /Z7 -MDd /MTd -Wno-deprecated-register /Be /Bd /EP /w /wd4067
Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32537 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
/std:c++latest is provided as a preview of language features from the latest C++
working draft, and we're eager to hear about bugs and suggestions for improvements.
However, note that these features are provided as-is without support, and subject
to changes or removal as the working draft evolves. See
https://go.microsoft.com/fwlink/?linkid=2045807 for details.
all:
@cd E:\Hack\CLionProjects\filament\cmake-build-debug\libs\gltfio
@set INCLUDE=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\include;C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\ATLMFC\include;C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt;C:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um
@set LIB=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\ATLMFC\lib\x64;C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\lib\x64;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.22000.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22000.0\\um\x64
@set LIBPATH=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\ATLMFC\lib\x64;C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\lib\x64;C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22000.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.22000.0;C:\Windows\Microsoft.NET\Framework64\v4.0.30319
@set CL=
@set _CL_=
@set LINK=
C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\bin\Hostx64\x64\cl.exe @<< C:\Users\wumo\AppData\Local\Temp\compiler-file14242125242686930554
/TP /DFILAMENT_DRIVER_SUPPORTS_VULKAN /DFILAMENT_IBL_LITE=1 /DFILAMENT_SUPPORTS_OPENGL /DGLTFIO_DRACO_SUPPORTED=1 /DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS /DWIN32 /D_WINDOWS /GR /EHsc /std:c++latest /W0 /Zc:__cplusplus -D_USE_MATH_DEFINES=1 -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DTNT_DEV /Zi /Ob0 /Od /RTC1 /Z7 -MDd /MTd -Wno-deprecated-register /Be /Bd /EP /w /wd4067<<
cl /TP /DFILAMENT_DRIVER_SUPPORTS_VULKAN /DFILAMENT_IBL_LITE=1 /DFILAMENT_SUPPORTS_OPENGL /DGLTFIO_DRACO_SUPPORTED=1 /DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS /DWIN32 /D_WINDOWS /GR /EHsc /std:c++latest /W0 /Zc:__cplusplus -D_USE_MATH_DEFINES=1 -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DTNT_DEV /Zi /Ob0 /Od /RTC1 /Z7 -MDd /MTd -Wno-deprecated-register /Be /Bd /EP /w /wd4067
cl : Command line warning D9025 : overriding '/Zi' with '/Z7'
cl : Command line warning D9025 : overriding '/MDd' with '/MTd'
cl : Command line error D8021 : invalid numeric argument '/Wno-deprecated-register'
[Failed to reload]
```
**Desktop (please complete the following information):**
- OS: Windows 10
- GPU: NVIDIA GTX 3080
- Backend: Vulkan
**Possible fix**
Comment out `target_compile_options(${TEST_TARGET} PRIVATE -Wno-deprecated-register)`
`libs/gltfio/CMakeLists.txt`:
```
# The following tests rely on private APIs that are stripped
# away in Release builds
if (TNT_DEV AND NOT WEBGL AND NOT ANDROID AND NOT IOS)
set(TEST_TARGET test_gltfio)
add_executable(${TEST_TARGET} test/gltfio_test.cpp)
add_dependencies(${TEST_TARGET} test_gltfio_files)
target_link_libraries(${TEST_TARGET} PRIVATE ${TARGET} filament filabridge gtest uberarchive)
# target_compile_options(${TEST_TARGET} PRIVATE -Wno-deprecated-register)
set_target_properties(${TEST_TARGET} PROPERTIES FOLDER Tests)
endif()
```
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]