Repository navigation
fix(libc): link the thread-name test against libc for its personality routine - #8635
Merged
oneandonlydean merged 1 commit intoOct 21, 2026
Conversation
|
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.
|
12 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes the Windows Debug build of
thread_name_tests. The test came in with #5862 and is registered only underif(WIN32). A WinLibs GCC 15.2.0 build with-DCMAKE_BUILD_TYPE=Debugfails to link it onmain:core/libscompiles with-fno-asynchronous-unwind-tableson MinGW, so the cleanup of thestd::wstringtemporary inThreadName.cppuses DWARF unwinding and needs__gxx_personality_v0. The SEH libstdc++ of WinLibs exports only__gxx_personality_seh0. On Windows,__gxx_personality_v0comes fromlibc.prx(prx/libc/src/exception/Personality.cpp), andthread_name_testsdoes not link libc. In Release, -O3 removes the landing pad, so the Release object references neither__gxx_personality_v0nor_Unwind_Resume(checked withnm). That is why Windows CI, which builds Release only, links the test fine.The fix gives the test the same three lines as
log_macros_testsnext to it, which is also what #1873 (7add840f1), #6267 and #7733 did for other tests: linklibc,configure_windows_unwind, and prepend libc's directory to the test'sPATH. The test source and Linux are unchanged.Tested
Windows 11 Pro, Intel Core i9-14900K, 128 GB RAM, NVIDIA GeForce RTX 5080 (driver 32.0.16.1742), WinLibs GCC 15.2.0, Ninja,
BUILD_TESTING=ON, every AGC execution test built.main:thread_name_testsfails to link with the error above, andctest -R "^thread_name$"reportsNot Run. Reproduced twice: in a full-k 0build of083a3be61, and by rebuilding only that target after stashing the change. With this change it links, andctest -R "^thread_name$"passes 3 of 3 in Debug and 3 of 3 in Release.ctest --parallel 2 --timeout 300on083a3be61withANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1: 1761 of 1763 pass. The only failures arethread_nameandagc_driver_image_array_window_past_layer_limit. The second does not build with MinGW and is fixed by test(agc): align the array window test's texels at run time #8310.434e965d4: the full Release build and thelibstarget build with no warnings in the touched file. The only build error is test(agc): align the array window test's texels at run time #8310's object, and with test(agc): align the array window test's texels at run time #8310 applied on a local branch the full build succeeds.ctest -R "^thread_name$|patched_libraries|^log_macros"passes 4/4, with 354 patched libraries loaded and 0 failed.tools/check_test_registration.pypasses for the Release and Debug builds, and so dotools/check_conventions.py --base origin/mainandtools/pr_overlap.py --branch agent/winsweep2. The overlap tool could not compare 9 conflicting PRs that touchcore/libs/prx/libc/CMakeLists.txt; none of their diffs touchesthread_name.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)