build(libkernel): keep the ELF-only module fixture options off Apple #10660
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10660"
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 imellag on 2026-10-24T15:41:36Z.
What
guest_module_fixturegets-Wl,--no-as-neededon every host but Windows. Apple's ld64 doesn't know that option, so on currentmainthe fixture fails to link on macOS:The option keeps the
DT_NEEDEDentries thatnid_patcher_dynamic_stringschecks, andtest_dynamic_strings.pyreads the ELF section headers and dynamic section, so neither applies to the Mach-O fixture. The block that adds both now readsif(NOT WIN32 AND NOT APPLE), the same way it already leaves out Windows' PE fixture. Linux is unchanged. #7201 has the same condition as part of the whole macOS port, on an older form of this block (if(Python3_Interpreter_FOUND AND NOT WIN32 AND NOT APPLE), before the block was nested). Its head (6687cbac29, 2026-10-16) conflicts withmainand needs a rebase anyway, so the order proposed here is this PR first, with #7201 keepingmain's block at its rebase; both forms leave the option and the test off Apple, so either one alone is enough. If #7201 lands first, this PR is not needed and I will close it.Tested
Apple M4 Pro, macOS 27.0.1, Apple clang, x86-64 Release (
-DCMAKE_OSX_ARCHITECTURES=x86_64, Ninja), onmainfee6a14709, whoselibkernel/CMakeLists.txtmatches this branch's basec9b75825f3:cmake --build build --target guest_module_fixturefails with the error above without this change; with it,libguest_module_fixture.dyliblinks and thenid_patcherpost-build step runs without error, andctest -Nno longer listsnid_patcher_dynamic_strings.guest_dynamic_loader_tests, which loads the fixture, needslibkernel, which does not build onmainon macOS yet, so it was not run. Not built on Linux or Windows; the condition is unchanged there.check_conventions.py --base upstream/mainpasses.pr_overlap.pylists no pull request with conflicting lines, only 18 it could not compare onlibkernel/CMakeLists.txtbecause they conflict withmain; of those, only #7201 changes this block.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 MarcZX10 on 2026-10-24T15:42:58Z.
Review: APPROVED
The Apple guard is correct for this fixture:
-Wl,--no-as-neededand the ELF dynamic-string test do not apply to Mach-O, while the Linux condition remains enabled and Windows remains excluded. The PR describes a focused macOS x86-64 reproduction showing the fixture link fails on the base and succeeds with this condition; I did not independently rerun that macOS build. Eligibility, conventions, intake, labels, and report checks pass. Product test jobs were skipped by the hosted policy.\n\nI checked the overlap with #7201: it contains the same exclusion in the same CMake block, but that PR currently conflicts withmainand has no directly mergeable head. This PR is a narrow standalone fix on currentmain, and its body already documents the overlap.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-26T19:15:59Z.
Review: APPROVED
Reviewed
5315b24f5b72a924383da3c008c814600a74ffbd. Approve; no actionable finding in this focused review.The ELF dynamic-string fixture and GNU --no-as-needed option are now restricted to non-Windows, non-Apple builds. The surrounding symbol-version test remains outside that restriction.
Validation: Interpreted the submitted CMake block for Darwin, Linux and Windows on head and base. The head omits the ELF-only option/test on Darwin and Windows and retains both on Linux.
Scope / next step: This is CMake branch/registration evidence; no Apple linker or full libkernel build was run.