How about linux? #520

Open
opened 2026-11-26 04:24:24 +00:00 by github-bot · 5 comments
Owner

@⁠fabox-os on GitHub · 2026-11-24 01:14 UTC · original

Do you consider implement vulkan for linux as well for the retail title run natively?

**@⁠fabox-os** on GitHub · 2026-11-24 01:14 UTC · [original](https://github.com/xcl-dev/xcl/issues/520) Do you consider implement vulkan for linux as well for the retail title run natively?
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:24:25 +00:00
Author
Owner

@⁠MJ26gaming on GitHub · 2026-11-24 01:44 UTC · original

I am currently running a new retail game on both my windows laptop (8945hs + 4070 mobile) and my Cachy desktop (7700 + 9070 xt) with wine and directx compat layers

Significantly worse performance on the desktop

**@⁠MJ26gaming** on GitHub · 2026-11-24 01:44 UTC · [original](https://github.com/xcl-dev/xcl/issues/520#issuecomment-7119405165) I am currently running a new retail game on both my windows laptop (8945hs + 4070 mobile) and my Cachy desktop (7700 + 9070 xt) with wine and directx compat layers Significantly worse performance on the desktop
Author
Owner

@⁠ddm-j on GitHub · 2026-11-24 01:49 UTC · original

I think it'll be easier to get proton/wine working than native

**@⁠ddm-j** on GitHub · 2026-11-24 01:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/520#issuecomment-7119487233) I think it'll be easier to get proton/wine working than native
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 03:14 UTC · original

Concrete data point: the whole workspace builds on Linux, unmodified, as x86_64-pc-windows-gnu, with llvm-mingw as the linker — no source changes, ~15 min on a laptop.

What I used (Ubuntu 22.04, rustup stable):

# llvm-mingw toolchain (clang-as-linker, no distro mingw, no sudo):
#   https://github.com/mstorsjo/llvm-mingw/releases  (20261117-ucrt snapshot)
rustup target add x86_64-pc-windows-gnu

.cargo/config.toml:

[target.x86_64-pc-windows-gnu]
linker = "x86_64-w64-mingw32-clang"

Two linker-side adjustments, both environment-only (nothing in the repo):

  1. rustc's windows-gnu std links -lgcc_eh -lgcc — llvm-mingw ships none. Empty stub archives on the search path satisfy the driver: llvm-ar qc stubs/libgcc.a …; libgcc_eh.a; libgcc_s.a.
  2. The real _Unwind_* come from llvm-mingw's libunwind.a (DWARF-personality symbols the windows-gnu prebuilt std expects): RUSTFLAGS="-C link-arg=-L<llvm-mingw>/x86_64-w64-mingw32/lib -C link-arg=-lunwind -C link-arg=-L<stubs>".
$ cargo build --workspace --target x86_64-pc-windows-gnu
$ ls -la target/x86_64-pc-windows-gnu/debug/
-rwxrwxr-x 105428480 xcl.exe
-rwxrwxr-x  20545024 xcl_testtitle.exe
-rwxrwxr-x   5175296 testgame_mw.dll

So the toolchain is not the blocker for a Linux dev/test loop — the runtime blockers are what they always were: D3D12 host (vkd3d-proton under Wine, cf. #175) and a GPU. My Wine smoke of the produced xcl.exe hasn't passed yet (Wine 9 aborts at startup before any output, rc=53 — investigating separately); reporting that honestly rather than implying a full run. The value here is upstream-facing: contributors on Linux can build and run the pure-Rust unit tests natively (cargo test --workspace --target x86_64-unknown-linux-gnu for the non-Windows-crate half), and CI could cross-check the windows-gnu build cheaply.

**@⁠pickles976** on GitHub · 2026-11-24 03:14 UTC · [original](https://github.com/xcl-dev/xcl/issues/520#issuecomment-7120909131) Concrete data point: **the whole workspace builds on Linux, unmodified**, as `x86_64-pc-windows-gnu`, with llvm-mingw as the linker — no source changes, ~15 min on a laptop. What I used (Ubuntu 22.04, rustup stable): ```sh # llvm-mingw toolchain (clang-as-linker, no distro mingw, no sudo): # https://github.com/mstorsjo/llvm-mingw/releases (20261117-ucrt snapshot) rustup target add x86_64-pc-windows-gnu ``` `.cargo/config.toml`: ```toml [target.x86_64-pc-windows-gnu] linker = "x86_64-w64-mingw32-clang" ``` Two linker-side adjustments, both environment-only (nothing in the repo): 1. rustc's windows-gnu std links `-lgcc_eh -lgcc` — llvm-mingw ships none. Empty stub archives on the search path satisfy the driver: `llvm-ar qc stubs/libgcc.a …; libgcc_eh.a; libgcc_s.a`. 2. The real `_Unwind_*` come from llvm-mingw's `libunwind.a` (DWARF-personality symbols the windows-gnu prebuilt std expects): `RUSTFLAGS="-C link-arg=-L<llvm-mingw>/x86_64-w64-mingw32/lib -C link-arg=-lunwind -C link-arg=-L<stubs>"`. ```console $ cargo build --workspace --target x86_64-pc-windows-gnu $ ls -la target/x86_64-pc-windows-gnu/debug/ -rwxrwxr-x 105428480 xcl.exe -rwxrwxr-x 20545024 xcl_testtitle.exe -rwxrwxr-x 5175296 testgame_mw.dll ``` So the *toolchain* is not the blocker for a Linux dev/test loop — the runtime blockers are what they always were: D3D12 host (vkd3d-proton under Wine, cf. #175) and a GPU. My Wine smoke of the produced `xcl.exe` hasn't passed yet (Wine 9 aborts at startup before any output, rc=53 — investigating separately); reporting that honestly rather than implying a full run. The value here is upstream-facing: contributors on Linux can build and run the pure-Rust unit tests natively (`cargo test --workspace --target x86_64-unknown-linux-gnu` for the non-Windows-crate half), and CI could cross-check the windows-gnu build cheaply.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 03:18 UTC · original

Productive-use update on the same recipe: fixed the one real bug in my own linker flags (-lunwind was picking libunwind.dll.a → silent startup failure; putting libunwind.a first in the search path links it statically) and the cross-built xcl.exe now runs under Wine and does real work — xcl --version, xcl --help, and a full xcl inspect --json pass on the 120 MB retail exe (results posted in #627). Build → analyze loop for analyzer work no longer requires a Windows box at all.

**@⁠pickles976** on GitHub · 2026-11-24 03:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/520#issuecomment-7120971145) Productive-use update on the same recipe: fixed the one real bug in my own linker flags (`-lunwind` was picking `libunwind.dll.a` → silent startup failure; putting `libunwind.a` first in the search path links it statically) and the cross-built `xcl.exe` now **runs under Wine and does real work** — `xcl --version`, `xcl --help`, and a full `xcl inspect --json` pass on the 120 MB retail exe (results posted in #627). Build → analyze loop for analyzer work no longer requires a Windows box at all.
Author
Owner

@⁠Fyb3roptik on GitHub · 2026-11-25 20:37 UTC · original

Just got this running at 1440p 30FPS no lagging on Ubuntu 26.04. I plan to push up my changes and docs

**@⁠Fyb3roptik** on GitHub · 2026-11-25 20:37 UTC · [original](https://github.com/xcl-dev/xcl/issues/520#issuecomment-7173947452) Just got this running at 1440p 30FPS no lagging on Ubuntu 26.04. I plan to push up my changes and docs
This discussion has been locked. Commenting is limited to contributors.
No description provided.