Docs: building with mingw-w64 on macOS and running under CrossOver #2432
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2442"
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 ivall/xcl. Originally posted by Ahmet-Dedeler on 2026-11-25T19:04:21Z.
The first piece of the macOS work in #258, as asked there: the mingw cross-build.
mainbuilds forx86_64-pc-windows-gnuwith no source change, so this is documentation only: a page on buildingxcl.exewith mingw-w64 on a Mac, running it under CrossOver with D3DMetal, running the tests andscripts/smoke.ps1there, and what works onmaintoday. Part of #258.The CI side (a macOS runner that cross-builds) is #783; this page does not depend on it.
What is in it
docs/macos.md: state onmain, what the host does differently (adapter name, no commit charge, no system XGameRuntime, Wine's debugger holding a crashed process), requirements, build, a bottle, running a title, running the tests under Wine through a cargo runner,scripts/smoke.ps1through a small-Xclwrapper, cleaning up a bottle.README.md: one bullet under Building and usage pointing to the page, saying macOS is not a supported platform.Tested
AMD Compatibility Mode(32-lane waves). Rust 1.100.0, targetx86_64-pc-windows-gnu(mingw-w64 14.0.0), DXC 1.9.2609.5. Debug build.CIworkflow (Windows runner, no GPU) on this head, run on my fork because it waits for approval here: Build and test passed on the second attempt. The first failed insparse::tests::flush_parked_does_not_free_or_reuse_tiles_while_unmap_is_in_flight("completed unmap batch should drain after fence completion"), a timing test; this PR changes no code.cargo build --workspace --target x86_64-pc-windows-gnuonmain3ceb550: builds, no source change.cargo test --workspace -- --test-threads=4onmain3ceb550under Wine (debug; a binary with no output for 240 s ended and its remaining tests run one process each, 120 s limit): 1280 passed, 59 failed, 46 ignored, 6 hung, 2 ended without a result. SKIPPED GPU tests: the wave64 ones (no wave64),no WARP,no GPU UMA,no heap windows,no D3D12 debug layer, and the driver-cache one (needs Windows Developer Mode). This PR changes no code, so these aremain's counts on this host, which the page quotes.xcl inspecton the workspace's test title, under Wine, on3ceb550: reads it as on Windows.508a0c7).Regression run
Not tested
3ceb550: the page's Titles line is from508a0c7and says so.AI use
508a0c7; Claude Opus 5.5 brought it up to3ceb550, ran the build, the suite andxcl inspectthere, and wrote this description.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T20:15:56Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
Imported from ivall/xcl. Originally posted by Lucasyudi on 2026-11-25T22:51:41Z.
Followed
docs/macos.mdat754cc9eon a second Mac. Everything I ran worked as written; two notes for the page.Tested
x86_64-pc-windows-gnuwith mingw-w64 (GCC 16.2.0, Homebrew), DXC 1.9.2609. An existing D3DMetal bottle.cargo build --release -p xcl --target x86_64-pc-windows-gnuas written, no change needed.cargo build --workspacetoo.xcl inspecton the test title's exe throughwine --bottle … "Z:…/xcl.exe"prints its header as on Windows.XCL_DATA_ROOTas aZ:\path and stdin at/dev/null: the log andreport.jsonland in<data>/<title>/logs/, andXCL_RUN_SECONDSreaches XCL.#!/bin/shwith"${@:2}"works, since/bin/shis bash on macOS), withXCL_DATA_ROOTunset andXCL_DXC_DIRas aZ:\path:cargo test -p xcl --lib -- util:: gpu_ldexp_f32 --test-threads=4gives 7 passed, 0 failed, the GPU one included.Notes
ROSETTA_ADVERTISE_AVX: CrossOver 26.3'sbin/winesets it to1itself unless it is set to0or empty (it is a Perl script; the comment there reads "Advertise AVX under Rosetta, unless the user has explicitly disabled it"). My bottle has no such line, and a CPUID probe underwine --bottlesees AVX, AVX2, FMA and BMI2; withROSETTA_ADVERTISE_AVX=0in the shell it sees none of them. So thecxbottle.confline is harmless but not needed with CrossOver'swine; something like "CrossOver'swinesets it to 1 unless you set it to 0" might save someone a search when XCL's CPU check fails.main: running the e2e test title (tests/data/testgame+xcl_testtitle.exe+testgame_mw.dll) with the Run command ends at 0.96 s with exit 5:unhandled exception 0xc0000005 in ntdll.dll+0x38d55 (write at address 0x0), under the title's firstCreateGraphicsPipelineState. That is the D3DMetal crash on a pipeline with a console shader that #750 handles (@vakaobr checked it on a Mac above in that PR). Since State lists what works onmain, one line saying the e2e test fails that way onmainwould match what a reader sees when they run Tests.Not tested: the
smoke.ps1wrapper (no PowerShell here), the wholecargo test --workspacecount, a retail title.AI use: Claude Code with Claude Opus 5.5 (
claude-opus-5-5) followed the page, ran the commands and drafted this report.Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T04:31:31Z.
Tested the Cargo runner in
docs/macos.mdat754cc9ee8f760d0fdb3c12a040ee728f0dc0a14c. I extracted the shell snippet, supplied a quoted bottle name and installation path, and invoked it with Git for Windowsshand a local argv recorder in place of Wine. Absolute executable paths forwarded correctly. For relative inputs, the original producedZ:target/…, a drive-relative Windows path.Documentation candidate uses the working directory for relative inputs, quotes the shared bottle setting, and forwards trailing arguments with POSIX
shiftand"$@". Four runner cases preserved a spaced bottle name and executable path, a Unicode path, empty and literal wildcard arguments, closed stdin and exit codes 0, 7 and 23. Both relative inputs reached the recorder as absoluteZ:/…paths.I also replayed the Run command with the recorder. For the cleanup example, a separate stand-in received the selected bottle prefix and
-k. With an empty bottle name it was never called. Windows build 26100, i7-13700. OpenAI Codex (GPT-6) edited the examples and ran the shell checks. macOS, Cargo, CrossOver/Wine, D3DMetal and the smoke wrapper were not executed in this test.Imported from ivall/xcl. Originally posted by Ahmet-Dedeler on 2026-11-26T05:00:06Z.
@RavenCurseBurg good catch, thanks. Anyone who runs the runner by hand with a relative path, or gets one from Cargo, would have hit that
Z:target/…. Pulled your commit in as is (a2035e2).Ran your runner on the Mac side too, macOS 27.3, with a stand-in
winethat prints its argv:/bin/shand zsh both giveZ:/<cwd>/…for relative paths andZ:/…for absolute ones, keep a spaced bottle name, empty,*and Unicode arguments, close stdin and pass exit code 7 through. Real Wine and Cargo weren't part of that check.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:31:52Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:05:59Z.
Triage (#1607) – head
a2035e2No open or merged PR adds macOS / CrossOver build docs. Main has nothing on it outside the design spec's non-goals. The other macOS PRs in #258 (#2361, #2363, #2402, #2492, #783) change code or CI, not docs.
The page says plainly that macOS is unsupported and lists what fails (59 test failures, no
OpenExistingHeapFromAddress, no frames in the retail title), measured at a named commit. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.