Windows: spirv_validator_exit_tests does not link the DWARF unwind runtime #7732
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-19T04:15:14Z.
Observed failure
With the supported WinLibs MinGW-w64 GCC 15.2.0 r7 toolchain, Release,
BUILD_TESTING=ON,ANYPS5_ENABLE_SPIRV_TOOLS=ON, and bundled dependencies, the default Windows build stops while linkingspirv_validator_exit_tests:Observed at composed head
e145860389c0880a179c3feaf8bbf750561c520c, incorporating main3ddbc4accc08d317bc17ed18166cfe7c235e13b6. The test source, shader CMake registration, unwind helper and SPIRV-Tools patch are unchanged from that main. This is not presented as a clean standalone-main build. Removing the generated failing object and recompiling with compiler caching disabled reproduces the same target link failure, so reusing that object is not required.Windows 11 Enterprise 26200; bundled SPIRV-Tools
7f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458and SPIRV-Headers01e0577914a75a2569c846778c2f93aa8e6feddd. No shader semantics or vendored source was changed for this check.Build-rule gap and proposed correction
core/libs/CMakeLists.txtselects DWARF exceptions with-fno-asynchronous-unwind-tables. The new test incore/shader/recompiler/CMakeLists.txtusesconfigure_windows_unwind, but links onlySPIRV-Tools-static; its link command does not include the project'slibcunwind runtime.Merged #6267 fixes the same missing dependency for the draw-program trace test. The corresponding proposal here is to link this test to
libcon MinGW and prepend its runtime directory to this CTest's PATH, retaining its existing unwind configuration and 30-second timeout. MarcZX10 has implemented this correction in #7733. Independently tested local commitbb5a5333eeb60e91e838477d091ebc7f88dad855and PR headf7cef866290e86b0974eaebaea58664732402903have identical complete Git trees (c9b70428ea37086595b800a0d102ad909a0642d4). The default full Windows build and 21 targeted repeated tests pass with that tree. Exact unmodified main676d423968a1a8fcc79c6247020ce22090a8e0d4also reproduces the failing target link. Windows validation details; credited validation fork. No new game result is claimed.Reproduction
Use the supported MinGW compiler on PATH, initialized submodules, and the build guide's FFmpeg/certificate setup. The failing command uses
-std=c++20 -fno-asynchronous-unwind-tables, linkslibSPIRV-Tools.a, and cannot resolve the personality symbol before the configured.eh_framerename can run.The full relinker/system-library build and our unrelated HTILE fixture targets can build when selected explicitly; this failure concerns the default all-target build and this new test. It is separate from #7371 and does not establish a game runtime regression.
Searches for
spirv_validator_exit,SpirvValidatorExit, the unresolved symbol and open validator/unwind proposals found the merged analogous fix and unrelated reports, but no dedicated current report for this test. Introduced test: merged #6476. AI-assisted investigation/reporting: Codex; author responsible.