Repository navigation
fix(cmake): keep the SEH personalities out of nghttp2's export set - #12731
Conversation
With GCC whose exceptions are SEH, as MSYS2 UCRT64 ships it, link_libraries adds windows_seh_personalities to every later target, nghttp2_static included. nghttp2's install(EXPORT) then fails at generation because the object library is in no export set, so the Windows MSYS2 workflow stops at configure. nghttp2 is C and needs no personality routine; the libraries that link it still get it from link_libraries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
THEMANnt
left a comment
There was a problem hiding this comment.
Reviewed 3ec77ef7178090305bc0c714289180fcd840dcfb against 2960e9a6e7e1fc99c4ed180c71495b5eb83464c7. Removing the inherited object target from nghttp2_static's direct/interface link properties addresses the export-set dependency without changing inheritance for the surrounding host libraries. No actionable finding in this scoped CMake fix.
Windows/GCC 15.3 (DWARF exceptions): the full pinned head and baseline configurations both succeed, so that alone does not reproduce the SEH-specific failure. I built a separate CMake control using the actual matching nghttp2 source, the submitted backend configuration/fix block, and an explicitly inherited windows_seh_personalities object target. Baseline generation fails with the exact missing-export-set dependency; the fixed configuration generates successfully and nghttp2_static builds. This independently verifies the CMake dependency mechanism, not a GCC 16.1/MSYS2 SEH build or the author's full CTest results.
|
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.
|
|
Checked the diff against the description: |
What
With GCC whose exceptions are SEH, as MSYS2 UCRT64 ships it,
core/libs/CMakeLists.txtcallslink_libraries(windows_seh_personalities), and every later target gets the object library,nghttp2_staticincluded. nghttp2'sinstall(EXPORT "nghttp2Targets")then fails at generation:The Windows MSYS2 workflow stops at this configure step since nghttp2 came in with #10167: the runs of 2026-10-27 and 2026-10-28 on
main. Thewindowsjob inbuild.yml(WinLibs GCC 15.2) configures with install rules too and passes onmain, so it does not define the target.This removes
windows_seh_personalitiesfromnghttp2_static'sLINK_LIBRARIESandINTERFACE_LINK_LIBRARIESafter the subdirectory is added, aslibSceSsldoes for mbedtls'severest. nghttp2 is C and needs no personality routine; the libraries that link it still get the object library throughlink_libraries.Tested
Windows 11 Pro 10.0.22631, MSYS2 UCRT64 GCC 16.1.0, CMake 4.3.3, Ninja 1.13.2, configured as
windows-msys2.ymldoes (install rules on,-DANYPS5_AGC_EXECUTION_TESTS=F16ToF32Unpack;F64FmaSubnormals;RegistrationPrepareShutdown).main52c09d5: configure fails with the error above.cmake --build,cmake --build --target libsandpython tools/check_test_registration.py buildpass.ctest --output-on-failure --timeout 120 --parallel 4: 5 failures, each also failing serially onmain52c09d5 on this machine (that tree configured with-DCMAKE_SKIP_INSTALL_RULES=ON, since it cannot configure otherwise):guest_future_category,guest_job_manager_worker_count,guest_json_copy_failure,guest_libressl_object_allocation,guest_freebsd_clocks. The last run of the workflow that reached ctest (2026-10-25) failed onlyguest_json_copy_failure.core/libs/CMakeLists.txt,core/libs/prx/libSceHttp2/CMakeLists.txtnor3rdparty/nghttp2changed in between.python3 tools/check_conventions.py --base origin/mainpasses.python3 tools/pr_overlap.py --branch fix/msys2-nghttp2-sehreports no shared lines; #11470, #11611 and #12456 change other lines of the same file.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)🤖 Generated with Claude Code