fix(cmake): link MinGW spirv validator exit test runtime #7733

Merged
MarcZX10 merged 1 commit from upstream-pr/7733 into main 2026-10-19 05:52:02 +00:00
MarcZX10 commented 2026-10-19 04:32:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-19T04:32:39Z.


What

Link the MinGW DWARF unwind runtime into spirv_validator_exit_tests and add its directory to the test PATH. This fixes the Windows linker error for __gxx_personality_v0 and makes the runtime available when CTest launches the test.

Tested

Linux x86_64: configured with BUILD_TESTING=ON and ANYPS5_ENABLE_SPIRV_TOOLS=ON; target build is still running. The available Linux environment cannot validate the MinGW-specific link or Windows execution.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: Fixes #7732
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4915864833 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7733). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-19T04:32:39Z. --- ### What Link the MinGW DWARF unwind runtime into `spirv_validator_exit_tests` and add its directory to the test PATH. This fixes the Windows linker error for `__gxx_personality_v0` and makes the runtime available when CTest launches the test. ### Tested Linux x86_64: configured with `BUILD_TESTING=ON` and `ANYPS5_ENABLE_SPIRV_TOOLS=ON`; target build is still running. The available Linux environment cannot validate the MinGW-specific link or Windows execution. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: Fixes #7732 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
Amoenus commented 2026-10-19 04:48:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-19T04:48:18Z.


Windows validation for this fix:

  • Exact unmodified main 676d423968a1a8fcc79c6247020ce22090a8e0d4 reproduces the __gxx_personality_v0 link failure in spirv_validator_exit_tests.
  • Your published head f7cef866290e86b0974eaebaea58664732402903 and my independently tested local commit bb5a5333eeb60e91e838477d091ebc7f88dad855 have the same complete Git tree, c9b70428ea37086595b800a0d102ad909a0642d4 (git diff is empty). The evidence below was collected at bb5a5333, not by rebuilding your differently identified commit.
  • With that tree: the focused target and default full Windows build pass, including the relinker and system libraries. Release, BUILD_TESTING=ON, ANYPS5_ENABLE_SPIRV_TOOLS=ON, bundled dependencies, supported WinLibs GCC 15.2.0 r7, Windows 11 Enterprise 26200.
  • After the full build: spirv_validator_exit, windows_exceptions, unwind_record_bounds and patched_libraries, each repeated three times: 12 passes. The validator reports function=1 phi=1 invalidRejected=1 both normally and at process exit on every run.
  • Another 3 validator passes with the launching PATH restricted to compiler/Windows directories confirm that CTest supplies the runtime directory.
  • agc_driver_f16_to_f32_unpack, three runs on each physical GPU: 6 passes, with device selection and Khronos validation confirmed in the logs. NVIDIA RTX 5080 / 610.62 and AMD Radeon(TM) Graphics / 32.0.21036.18, same Windows installation. No Vulkan validation messages or skips.

21 targeted passes total, each under 2 seconds. Commands use ctest --test-dir build -V -j1 --repeat until-fail:3 --timeout 30 -R '^TEST_NAME$'. This is targeted validation, not a complete CTest suite, Linux validation or a new game result.

Thanks for taking #7732. Your commit is also preserved, with its authorship, on our validation fork branch. This supplies the Windows coverage missing from the description. AI-assisted investigation and validation: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6259893539 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7733#issuecomment-6259893539). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-19T04:48:18Z. --- Windows validation for this fix: - Exact unmodified main `676d423968a1a8fcc79c6247020ce22090a8e0d4` reproduces the `__gxx_personality_v0` link failure in `spirv_validator_exit_tests`. - Your published head `f7cef866290e86b0974eaebaea58664732402903` and my independently tested local commit `bb5a5333eeb60e91e838477d091ebc7f88dad855` have the **same complete Git tree**, `c9b70428ea37086595b800a0d102ad909a0642d4` (`git diff` is empty). The evidence below was collected at `bb5a5333`, not by rebuilding your differently identified commit. - With that tree: the focused target and **default full Windows build** pass, including the relinker and system libraries. Release, `BUILD_TESTING=ON`, `ANYPS5_ENABLE_SPIRV_TOOLS=ON`, bundled dependencies, supported WinLibs GCC 15.2.0 r7, Windows 11 Enterprise 26200. - After the full build: `spirv_validator_exit`, `windows_exceptions`, `unwind_record_bounds` and `patched_libraries`, each repeated three times: **12 passes**. The validator reports `function=1 phi=1 invalidRejected=1` both normally and at process exit on every run. - Another **3 validator passes** with the launching PATH restricted to compiler/Windows directories confirm that CTest supplies the runtime directory. - `agc_driver_f16_to_f32_unpack`, three runs on each physical GPU: **6 passes**, with device selection and Khronos validation confirmed in the logs. NVIDIA RTX 5080 / 610.62 and AMD Radeon(TM) Graphics / 32.0.21036.18, same Windows installation. No Vulkan validation messages or skips. **21 targeted passes total**, each under 2 seconds. Commands use `ctest --test-dir build -V -j1 --repeat until-fail:3 --timeout 30 -R '^TEST_NAME$'`. This is targeted validation, not a complete CTest suite, Linux validation or a new game result. Thanks for taking #7732. Your commit is also preserved, with its authorship, on [our validation fork branch](https://github.com/Amoenus/AnyPS5/tree/codex/validate-pr7733-windows). This supplies the Windows coverage missing from the description. AI-assisted investigation and validation: Codex.
github-actions[bot] commented 2026-10-19 05:00:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T05:00:19Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1341 core/shader/recompiler/CMakeLists.txt
PR 5925 core/shader/recompiler/CMakeLists.txt
PR 6612 core/shader/recompiler/CMakeLists.txt
PR 6879 core/shader/recompiler/CMakeLists.txt
PR 6941 core/shader/recompiler/CMakeLists.txt
PR 6946 core/shader/recompiler/CMakeLists.txt
PR 6947 core/shader/recompiler/CMakeLists.txt
PR 6977 core/shader/recompiler/CMakeLists.txt
PR 7201 core/shader/recompiler/CMakeLists.txt
PR 7332 core/shader/recompiler/CMakeLists.txt
PR 7642 core/shader/recompiler/CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6260030569 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7733#issuecomment-6260030569). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-19T05:00:19Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1341](https://www.github.com/boykopovar/AnyPS5/pull/1341) | `core/shader/recompiler/CMakeLists.txt` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/shader/recompiler/CMakeLists.txt` | | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `core/shader/recompiler/CMakeLists.txt` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/shader/recompiler/CMakeLists.txt` | | [PR 6941](https://www.github.com/boykopovar/AnyPS5/pull/6941) | `core/shader/recompiler/CMakeLists.txt` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/shader/recompiler/CMakeLists.txt` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/shader/recompiler/CMakeLists.txt` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/shader/recompiler/CMakeLists.txt` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/shader/recompiler/CMakeLists.txt` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/shader/recompiler/CMakeLists.txt` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/shader/recompiler/CMakeLists.txt` |
Sign in to join this conversation.
No reviewers
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!7733
No description provided.