relinker CI: build the macOS relinker for x86-64 so the Rosetta execution tests run #7188

Closed
opened 2026-10-17 15:37:37 +00:00 by Destroyers212x · 2 comments
Destroyers212x commented 2026-10-17 15:37:37 +00:00 (Migrated from github.com)
Contributor

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-rosetta and 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_lowering prints "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 (commit 0f7ad3b58, based on current main). 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 the eligibility gating 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)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5900043220 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7188). Originally posted by [Destroyers212x](https://github.com/Destroyers212x) on 2026-10-17T15:37:37Z. --- The macOS relinker job builds natively for arm64 on `macos-latest`. The execution checks for `--to-rosetta` and 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_lowering` prints "ANDN execution checks require a Linux/macOS x86-64 build". The [relinker debt entry](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/debt/relinker.md) 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`](https://github.com/Destroyers212x/AnyPS5/tree/ci/relinker-rosetta-x86_64) (commit `0f7ad3b58`, based on current `main`). 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 the `eligibility` gating 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)
jotitadev commented 2026-10-18 02:33:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-18T02:33:43Z.


This looks resolved on main by #7322 (merged as fa982246d), which carries ci/relinker-rosetta-x86_64 with your authorship.

The new host already runs on main. In run 39088487842 (workflow_dispatch, 154d627e3), the job relinker (macos-latest, clang++, x86_64):

  • installs Rosetta 2 (softwareupdate --install-rosetta: "Install of Rosetta 2 finished successfully");
  • configures with -DCMAKE_OSX_ARCHITECTURES=x86_64 on the macos-26-arm64 image;
  • passes 185/185, including andn_lowering, amd64_only_converter and to_rosetta.

The binary is x86-64, so the (defined(__linux__) || defined(__APPLE__)) && defined(__x86_64__) execution section of AndnLoweringTests.cpp is 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6244769205 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7188#issuecomment-6244769205). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-18T02:33:43Z. --- This looks resolved on `main` by #7322 (merged as `fa982246d`), which carries `ci/relinker-rosetta-x86_64` with your authorship. The new host already runs on `main`. In run [39088487842](https://github.com/boykopovar/AnyPS5/actions/runs/39088487842) (workflow_dispatch, `154d627e3`), the job `relinker (macos-latest, clang++, x86_64)`: - installs Rosetta 2 (`softwareupdate --install-rosetta`: "Install of Rosetta 2 finished successfully"); - configures with `-DCMAKE_OSX_ARCHITECTURES=x86_64` on the `macos-26-arm64` image; - passes 185/185, including `andn_lowering`, `amd64_only_converter` and `to_rosetta`. The binary is x86-64, so the `(defined(__linux__) || defined(__APPLE__)) && defined(__x86_64__)` execution section of `AndnLoweringTests.cpp` is 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.
MarcZX10 commented 2026-10-18 03:22:36 +00:00 (Migrated from github.com)
Author
Contributor

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, and to_rosetta. This issue appears resolved on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6245146793 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7188#issuecomment-6245146793). Originally posted by [MarcZX10](https://github.com/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`, and `to_rosetta`. This issue appears resolved on main.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#7188
No description provided.