First build fails four validator tests when the Windows SDK's DXC ships no dxil.dll (1.9.2602.17) #1182

Closed
opened 2026-11-24 03:01:25 +00:00 by MisaXz · 1 comment
MisaXz commented 2026-11-24 03:01:25 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MisaXz on 2026-11-24T03:01:25Z.


Commit or build

f05369ec (clean clone, first-build steps from the README including the Python environment). tools/root_probe.cpp and tests/shader_probe_check.py are unchanged between that commit and 4b740f9c.

Reproduction

.\tools\dev.ps1
python -m venv out/pe-env
.\out\pe-env\Scripts\python.exe -m pip install -r requirements-dev.txt
cmake --preset dev
cmake --build --preset dev
ctest --preset dev --no-tests=error -R '^(compressed_scene_metadata|shader_metadata_probe|dxil_retarget_probe|dxil_retarget_probe_hardware)$' -V

No -DDXC_EXECUTABLE override: CMake selected C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/dxc.exe.

Expected behavior

The four tests pass, or report a named skip, with the DXC that the Windows SDK installs.

Observed behavior

All four fail. The first diagnostic is the same in each:

subprocess.CalledProcessError: Command '[...\out\build\dev\root_probe.exe, '--container']' returned non-zero exit status 4.

The SDK's DXC directory on this machine holds dxc.exe and dxcompiler.dll 1.9.2602.17 and no dxil.dll. root_probe loads the validator only from SDK_DXC_DIR L"dxil.dll" and returns 4 when that load fails (tools/root_probe.cpp:37-39).

With that fixed locally, three of the four then stop at a second place: file_version in tests/shader_probe_check.py:19 opens the same missing file.

FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.26100.0\\x64\\dxil.dll'

Full suite at f05369ec: 661 of 666 passed. The fifth failure was compute_store_aot_guard_read_hardware timing out at 300 s under -j 8; alone it passes in 27.7 s, so I am not reporting it as a failure.

Control: a second build directory configured with -DDXC_EXECUTABLE= pointing at the official DXC 1.9.2609 release (which ships dxil.dll 1.9.2609.5) passes all four tests.

This differs from #98: there the SDK's dxil.dll 1.7.2308 refused module-only validation. Here there is no dxil.dll to load. docs/experiments.md records SDK 10.0.26100.8249 installing DXC 1.8.2502.11 with a dxil.dll; this is a later servicing level.

Environment

  • Windows 11 Pro build 26300.10075
  • Visual Studio 2022 Build Tools 17.14, MSVC 14.44.35207
  • Windows SDK: 10.0.26100.9457 and 10.0.26100.2454 are both listed as installed; bin/10.0.26100.0/x64/dxcompiler.dll is 1.9.2602.17
  • CMake 4.4.4, Ninja from the Visual Studio CMake tools, Python 3.13.2
  • dxil_retarget_probe_hardware: NVIDIA GeForce RTX 5080, driver 32.0.16.2114

Checklist

  • I reproduced this on a source-built input.
  • I did not include game files, dumps, distribution links or credentials.

I have a small fix and will link it here. AI-assisted: found and written up with Claude Code (Claude Fable 5.2) on the account owner's machine.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6573640230 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1189). Originally posted by [MisaXz](https://github.com/MisaXz) on 2026-11-24T03:01:25Z. --- ### Commit or build `f05369ec` (clean clone, first-build steps from the README including the Python environment). `tools/root_probe.cpp` and `tests/shader_probe_check.py` are unchanged between that commit and `4b740f9c`. ### Reproduction ```powershell .\tools\dev.ps1 python -m venv out/pe-env .\out\pe-env\Scripts\python.exe -m pip install -r requirements-dev.txt cmake --preset dev cmake --build --preset dev ctest --preset dev --no-tests=error -R '^(compressed_scene_metadata|shader_metadata_probe|dxil_retarget_probe|dxil_retarget_probe_hardware)$' -V ``` No `-DDXC_EXECUTABLE` override: CMake selected `C:/Program Files (x86)/Windows Kits/10/bin/10.0.26100.0/x64/dxc.exe`. ### Expected behavior The four tests pass, or report a named skip, with the DXC that the Windows SDK installs. ### Observed behavior All four fail. The first diagnostic is the same in each: ```text subprocess.CalledProcessError: Command '[...\out\build\dev\root_probe.exe, '--container']' returned non-zero exit status 4. ``` The SDK's DXC directory on this machine holds `dxc.exe` and `dxcompiler.dll` 1.9.2602.17 and **no `dxil.dll`**. `root_probe` loads the validator only from `SDK_DXC_DIR L"dxil.dll"` and returns 4 when that load fails (`tools/root_probe.cpp:37-39`). With that fixed locally, three of the four then stop at a second place: `file_version` in `tests/shader_probe_check.py:19` opens the same missing file. ```text FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.26100.0\\x64\\dxil.dll' ``` Full suite at `f05369ec`: 661 of 666 passed. The fifth failure was `compute_store_aot_guard_read_hardware` timing out at 300 s under `-j 8`; alone it passes in 27.7 s, so I am not reporting it as a failure. Control: a second build directory configured with `-DDXC_EXECUTABLE=` pointing at the official DXC 1.9.2609 release (which ships `dxil.dll` 1.9.2609.5) passes all four tests. This differs from #98: there the SDK's `dxil.dll` 1.7.2308 refused module-only validation. Here there is no `dxil.dll` to load. `docs/experiments.md` records SDK 10.0.26100.8249 installing DXC 1.8.2502.11 with a `dxil.dll`; this is a later servicing level. ### Environment - Windows 11 Pro build 26300.10075 - Visual Studio 2022 Build Tools 17.14, MSVC 14.44.35207 - Windows SDK: `10.0.26100.9457` and `10.0.26100.2454` are both listed as installed; `bin/10.0.26100.0/x64/dxcompiler.dll` is 1.9.2602.17 - CMake 4.4.4, Ninja from the Visual Studio CMake tools, Python 3.13.2 - `dxil_retarget_probe_hardware`: NVIDIA GeForce RTX 5080, driver 32.0.16.2114 ### Checklist - [x] I reproduced this on a source-built input. - [x] I did not include game files, dumps, distribution links or credentials. I have a small fix and will link it here. AI-assisted: found and written up with Claude Code (Claude Fable 5.2) on the account owner's machine.
MisaXz commented 2026-11-24 06:50:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by MisaXz on 2026-11-24T03:02:11Z.


Fix: #1190

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120710110 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/1189#issuecomment-7120710110). Originally posted by [MisaXz](https://github.com/MisaXz) on 2026-11-24T03:02:11Z. --- Fix: #1190
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
R0Y00/Xbox2Windows#1182
No description provided.