CachyOS: Lanes works with Proton Experimental, but build requires two workarounds #4

Closed
opened 2026-11-24 00:34:13 +00:00 by Gasico · 0 comments
Gasico commented 2026-11-24 00:34:13 +00:00 (Migrated from github.com)
Contributor

Imported from brcly/TuxBox. Originally posted by Gasico on 2026-11-24T00:34:13Z.


Summary

I successfully built and ran TuxBox's Lanes demo on CachyOS using Proton Experimental.

The game renders correctly, keyboard input works, and it exits normally.

However, I encountered two build issues that required workarounds.

System information

  • OS: CachyOS (Arch Linux based)
  • CPU: AMD Ryzen 7 9800X3D
  • GPU: NVIDIA GeForce RTX 3080 10 GB
  • RAM: 32 GB
  • Shell: Fish
  • Rust: 1.100.0
  • Proton: Experimental 11.0-20261112
  • DXC (system): 1.10.2605.37-1.1
  • Python: Virtual environment (venv)

Issue 1: Missing synchronization.lib during linking

Running:

python build.py lanes

Initially failed with unresolved Windows symbols:

WakeByAddressSingle
WakeByAddressAll
WaitOnAddress

Workaround:

Added synchronization.lib to RUST_STD_LIBS in build.py.

After this modification, the build proceeded successfully past the linking stage.

Issue 2: System DXC crashes on affine.hlsl

The DXC version distributed with CachyOS crashed when compiling:

runtime/d3d12/affine.hlsl

Error:

assert(HasHungOffUses && "alloc must have hung off uses")
lib/IR/User.cpp(44)
SIGILL (Illegal instruction)

The crash occurred with both -O3 and -O0.

Preprocessing worked correctly, and a simple compute shader compiled without errors.

Workaround:

Downloaded the official Microsoft DXC Linux release and used it instead of /usr/bin/dxc.

After switching to Microsoft's DXC, the build completed successfully.

Issue 3: Missing Vulkan development headers

During the first attempt to launch Lanes, the Vulkan layer build failed with:

fatal error: vulkan/vk_layer.h: No such file or directory

Installing the vulkan-headers package resolved this issue.

Final result: Lanes works

Command:

python tuxbox.py run --app-id Lanes build/lanes

Results:

  • Lanes launched successfully through Proton Experimental.
  • D3D12 device creation succeeded.
  • GPU commands were submitted.
  • Frames were presented successfully.
  • Graphics displayed correctly.
  • Keyboard controls worked.
  • Game exited normally with exit code 0.

Relevant log:

TuxBox d3d12_xs: created host D3D12 device
TuxBox d3d12_xs: submitted first guest batch
TuxBox d3d12_xs: PresentX presented first frame (520x640)
TuxBox d3d12_xs: completed PresentX #4
Game exited with exit code 0 after 56.3s

Conclusion

TuxBox's Lanes demo works on CachyOS with NVIDIA Ampere and stock Proton Experimental.

It might be useful to document the synchronization.lib requirement, DXC compatibility issue, and Vulkan development header dependency for Arch-based distributions.

Thanks for your work on the project!

<!-- greyfinch-sync:brcly/TuxBox:issue:6571852354 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/4). Originally posted by [Gasico](https://github.com/Gasico) on 2026-11-24T00:34:13Z. --- ## Summary I successfully built and ran TuxBox's Lanes demo on CachyOS using Proton Experimental. The game renders correctly, keyboard input works, and it exits normally. However, I encountered two build issues that required workarounds. ## System information - **OS:** CachyOS (Arch Linux based) - **CPU:** AMD Ryzen 7 9800X3D - **GPU:** NVIDIA GeForce RTX 3080 10 GB - **RAM:** 32 GB - **Shell:** Fish - **Rust:** 1.100.0 - **Proton:** Experimental 11.0-20261112 - **DXC (system):** 1.10.2605.37-1.1 - **Python:** Virtual environment (`venv`) ## Issue 1: Missing synchronization.lib during linking Running: ```bash python build.py lanes ``` Initially failed with unresolved Windows symbols: ```text WakeByAddressSingle WakeByAddressAll WaitOnAddress ``` **Workaround:** Added `synchronization.lib` to `RUST_STD_LIBS` in `build.py`. After this modification, the build proceeded successfully past the linking stage. ## Issue 2: System DXC crashes on affine.hlsl The DXC version distributed with CachyOS crashed when compiling: ```text runtime/d3d12/affine.hlsl ``` Error: ```text assert(HasHungOffUses && "alloc must have hung off uses") lib/IR/User.cpp(44) SIGILL (Illegal instruction) ``` The crash occurred with both `-O3` and `-O0`. Preprocessing worked correctly, and a simple compute shader compiled without errors. **Workaround:** Downloaded the official Microsoft DXC Linux release and used it instead of `/usr/bin/dxc`. After switching to Microsoft's DXC, the build completed successfully. ## Issue 3: Missing Vulkan development headers During the first attempt to launch Lanes, the Vulkan layer build failed with: ```text fatal error: vulkan/vk_layer.h: No such file or directory ``` Installing the `vulkan-headers` package resolved this issue. ## Final result: Lanes works Command: ```bash python tuxbox.py run --app-id Lanes build/lanes ``` Results: - Lanes launched successfully through Proton Experimental. - D3D12 device creation succeeded. - GPU commands were submitted. - Frames were presented successfully. - Graphics displayed correctly. - Keyboard controls worked. - Game exited normally with exit code 0. Relevant log: ```text TuxBox d3d12_xs: created host D3D12 device TuxBox d3d12_xs: submitted first guest batch TuxBox d3d12_xs: PresentX presented first frame (520x640) TuxBox d3d12_xs: completed PresentX #4 Game exited with exit code 0 after 56.3s ``` ## Conclusion TuxBox's Lanes demo works on CachyOS with NVIDIA Ampere and stock Proton Experimental. It might be useful to document the `synchronization.lib` requirement, DXC compatibility issue, and Vulkan development header dependency for Arch-based distributions. Thanks for your work on the project!
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
brcly/TuxBox#4
No description provided.