Windows: spirv_validator_exit_tests does not link the DWARF unwind runtime #7732

Closed
opened 2026-10-19 04:15:14 +00:00 by Amoenus · 0 comments
Amoenus commented 2026-10-19 04:15:14 +00:00 (Migrated from github.com)
Contributor

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 linking spirv_validator_exit_tests:

SpirvValidatorExit.cpp:(.data+0x0): undefined reference to `__gxx_personality_v0'
collect2.exe: error: ld returned 1 exit status

Observed at composed head e145860389c0880a179c3feaf8bbf750561c520c, incorporating main 3ddbc4accc08d317bc17ed18166cfe7c235e13b6. 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 7f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458 and SPIRV-Headers 01e0577914a75a2569c846778c2f93aa8e6feddd. No shader semantics or vendored source was changed for this check.

Build-rule gap and proposed correction

core/libs/CMakeLists.txt selects DWARF exceptions with -fno-asynchronous-unwind-tables. The new test in core/shader/recompiler/CMakeLists.txt uses configure_windows_unwind, but links only SPIRV-Tools-static; its link command does not include the project's libc unwind runtime.

Merged #6267 fixes the same missing dependency for the draw-program trace test. The corresponding proposal here is to link this test to libc on 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 commit bb5a5333eeb60e91e838477d091ebc7f88dad855 and PR head f7cef866290e86b0974eaebaea58664732402903 have identical complete Git trees (c9b70428ea37086595b800a0d102ad909a0642d4). The default full Windows build and 21 targeted repeated tests pass with that tree. Exact unmodified main 676d423968a1a8fcc79c6247020ce22090a8e0d4 also reproduces the failing target link. Windows validation details; credited validation fork. No new game result is claimed.

Reproduction

cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build --target spirv_validator_exit_tests

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, links libSPIRV-Tools.a, and cannot resolve the personality symbol before the configured .eh_frame rename 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5917666256 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7732). Originally posted by [Amoenus](https://github.com/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 linking `spirv_validator_exit_tests`: ```text SpirvValidatorExit.cpp:(.data+0x0): undefined reference to `__gxx_personality_v0' collect2.exe: error: ld returned 1 exit status ``` Observed at composed head `e145860389c0880a179c3feaf8bbf750561c520c`, incorporating main `3ddbc4accc08d317bc17ed18166cfe7c235e13b6`. 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 `7f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458` and SPIRV-Headers `01e0577914a75a2569c846778c2f93aa8e6feddd`. No shader semantics or vendored source was changed for this check. ### Build-rule gap and proposed correction `core/libs/CMakeLists.txt` selects DWARF exceptions with `-fno-asynchronous-unwind-tables`. The new test in `core/shader/recompiler/CMakeLists.txt` uses `configure_windows_unwind`, but links only `SPIRV-Tools-static`; its link command does not include the project's `libc` unwind runtime. Merged #6267 fixes the same missing dependency for the draw-program trace test. The corresponding proposal here is to link this test to `libc` on 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 commit `bb5a5333eeb60e91e838477d091ebc7f88dad855` and PR head `f7cef866290e86b0974eaebaea58664732402903` have identical complete Git trees (`c9b70428ea37086595b800a0d102ad909a0642d4`). The default full Windows build and 21 targeted repeated tests pass with that tree. Exact unmodified main `676d423968a1a8fcc79c6247020ce22090a8e0d4` also reproduces the failing target link. [Windows validation details](https://github.com/boykopovar/AnyPS5/pull/7733#issuecomment-6259893539); [credited validation fork](https://github.com/Amoenus/AnyPS5/tree/codex/validate-pr7733-windows). No new game result is claimed. ### Reproduction ```text cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON cmake --build build --target spirv_validator_exit_tests ``` 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`, links `libSPIRV-Tools.a`, and cannot resolve the personality symbol before the configured `.eh_frame` rename 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#7732
No description provided.