fix(build): link draw trace test to Windows unwind runtime #6267
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6267"
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 Ondra97 on 2026-10-15T08:31:05Z.
What
I reproduced a linker failure on clean main
db81992c554f1b395b4c04987cfbdc316a03d69bwith the supported MinGW-w64 GCC 15.2.0. Theagc_driver_draw_program_trace_teststarget introduced by #5238 has unresolved__gxx_personality_v0references, which also stops the full Windows build.The library build selects DWARF exceptions globally through
-fno-asynchronous-unwind-tables. On MinGW, I link this standalone test to the existinglibcunwind runtime and add its directory to the CTest loader path, following the nearby AGC test targets. The executable now imports__gxx_personality_v0,__cxa_throwand__cxa_begin_catchfromlibc.prxand retains its configured.ehframsection. The existing formatter test runs successfully with a reduced PATH containing only MinGW and Windows system directories.I checked the current open PR inventory, full file lists for the large branches and exact CMake diffs of 87 shared branches. None has the new formatter target or changes its global DWARF setup. I manually compared the target with the unwind helper and nearby tests, #5431's independent capture-trace tests, #6044's registration changes, and #5238's current discussion. No open PR owns this build fix.
Tested
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1on NVIDIA GeForce RTX 4070 Ti SUPER, driver 617.14 (Windows 32.0.16.1714), Windows 11 Pro 10.0.26300.Limits: no Linux runtime, other GPU vendor or retail title run. Full hosted Windows/Linux builds require collaborator dispatch under
CONTRIBUTING.md; skipped jobs are not passes.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-15T08:38:05Z.
Independent post-merge Windows validation at main
c0be1f69bc04c2ec4ba2b79919d89cdc41509084: full application andlibsbuilds pass.agc_driver_draw_program_trace,agc_tessellation_factor_ring,agc_pass_hazardsandagc_dcc_key_sharingpass five times each, no failures/skips; maximum 0.02s, timeout20s. Tests run withPATHreduced to the supported MinGW toolchain and Windows directories; the CTest environment finds unpatchedlibcas intended. Conventions pass.Windows11 Enterprise26200, WinLibs GCC15.2.0 r7, Release/BUILD_TESTING=ON, bundled dependencies. The original unresolved
__gxx_personality_v0failure was independently reproduced on unchangeddb81992c5before this merged fix. Our concurrent local candidate is superseded by this PR; these passing results use your actual merged main. CPU-only: no GPU/title/full-suite or Linux claim. AI-assisted: Codex.