Diagnose a failed XCL build
Build won’t compile, the game exits at startup, or nothing obvious is wrong: identify the stage first, then read the log.
First confirm that you follow the install steps exactly; the error text itself is grouped by symptom in the XCL not working error groups; if you suspect the toolchain rather than the game, compare toolchains against the XCL version page.
Separate build time from run time
Build-time failures (cargo build stops) are almost always toolchain problems: Rust must be the stable-x86_64-pc-windows-msvc target, and the Windows SDK must be installed with the DXGI and D3D12 headers and import libraries.
Run-time failures (the process starts but you get a black screen or an instant exit) are dependency problems — the checks below are the ones that actually matter.
DXC missing or too old
XCL looks for dxcompiler.dll and dxil.dll in Windows Kits\10\bin\<version>\x64, next to xcl.exe, and in %XCL_DXC_DIR%. If translation fails instantly, check those three places before anything else.
1.8 or newer is recommended. A Windows SDK may ship 1.7.2308 in the same 10.0.26100.0 folder depending on its revision, which is why a build that worked on another machine can fail here.
On Windows 10, Shader Model 6.6 looks unavailable
Inbox D3D12Core.dll on Windows 10 stops at SM 6.5. Place the Microsoft D3D12 Agility SDK (D3D12Core.dll) in a D3D12\ folder next to xcl.exe, directly next to xcl.exe, in %LOCALAPPDATA%\XCL\D3D12\, or wherever %XCL_D3D12_DIR% points.
For cargo test only the last two locations work. Add d3d12SDKLayers.dll there as well when running with XCL_D3D12_DEBUG=1.
Where the logs are
%LOCALAPPDATA%\XCL\<title>\logs\xcl.log holds the run log, and report.json in the same folder records the run’s DXC and pipeline data.
Pipeline compiles appear in xcl.log as paired driver compile start #K / driver compile finish #K lines — if the game hangs on a first run, the last unmatched pair tells you which program it is stuck on.
Check what XCL understands about the game
xcl inspect lists the libraries the title imports and what XCL has for each of them, which separates “feature not implemented yet” from “the game itself is refusing to continue”.
When everything above checks out, take the log and the report to the Discord server or the issue tracker — that is what the community asks for first.
Build the workspace (produces target\release\xcl.exe)
cargo build --release --workspaceShow a game’s imports and what XCL has for them
xcl inspect D:\Game\game.exe