relinker CI: build the macOS relinker for x86-64 so the Rosetta execution tests run #7188
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Destroyers212x on 2026-10-17T15:37:37Z.
The macOS relinker job builds natively for arm64 on
macos-latest. The execution checks for--to-rosettaand the AMD64-only conversions only compile for x86-64 (#if ... defined(__x86_64__)), so on CI they print a skip message and never run. For example,andn_loweringprints "ANDN execution checks require a Linux/macOS x86-64 build". The relinker debt entry notes the same thing: these conversions were checked on Macs outside this repository's CI. #6524 made the converter's execution section build on macOS x86-64, and #7173 adds another x86-64-only execution test, but no CI job builds that configuration.A branch that fixes this is ready for carry:
Destroyers212x/AnyPS5@ci/relinker-rosetta-x86_64(commit0f7ad3b58, based on currentmain). It adds a{ os: 'macos-latest', compiler: 'clang++', architectures: 'x86_64' }relinker host, installs Rosetta for it as #3962 does, and passes-DCMAKE_OSX_ARCHITECTURES=${{ matrix.architectures }}to the configure step. The value is empty for every other host, which keeps the host architecture. No job is added, so theeligibilitygating is unchanged.Tested locally on an M1 with macOS 26.6.2, using the job's exact configure line:
-DCMAKE_OSX_ARCHITECTURES=(current hosts): arm64 relinker, 178/178 pass, ANDN execution skipped.-DCMAKE_OSX_ARCHITECTURES=x86_64: x86-64 relinker, 178/178 pass in 30 s under Rosetta, with ANDN and AMD64-only converter execution checks run.Not run on GitHub's runners. I can't open a second PR until my first is merged, so it's offered as a branch.
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-18T02:33:43Z.
This looks resolved on
mainby #7322 (merged asfa982246d), which carriesci/relinker-rosetta-x86_64with your authorship.The new host already runs on
main. In run 39088487842 (workflow_dispatch,154d627e3), the jobrelinker (macos-latest, clang++, x86_64):softwareupdate --install-rosetta: "Install of Rosetta 2 finished successfully");-DCMAKE_OSX_ARCHITECTURES=x86_64on themacos-26-arm64image;andn_lowering,amd64_only_converterandto_rosetta.The binary is x86-64, so the
(defined(__linux__) || defined(__APPLE__)) && defined(__x86_64__)execution section ofAndnLoweringTests.cppis compiled in now. The native arm64 job still runs next to it. ctest only prints test output on failure, so the log does not show the ANDN execution lines themselves.If you agree, this can be closed.
Written with AI assistance (Claude Code). The results above come from the linked CI run, not from my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T03:22:36Z.
Confirmed from the repository state: #7322 is merged, and its Rosetta x86-64 job passed 185/185 tests, including
andn_lowering,amd64_only_converter, andto_rosetta. This issue appears resolved on main.