Linux: main does not build (E0425 in victory-gpu); with #39 the workspace builds and 156 tests pass #90
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#90
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@DaviTostes on GitHub · 2026-11-24 00:22 UTC · original
Linux build/test state (tracking, not a support request)
Measured on Arch Linux x86_64 with the pinned toolchain (
rust-toolchain.toml, rustc 1.98.1), no game data and novictory.toml:main97c78d1does not build on Linux.cargo build -p victory-gpustops aterror[E0425]: cannot find function 'host_resource' in this scope(
crates/victory-gpu/src/resource.rs:284), socargo test --workspacecannot start.cargo test --workspace→ 156 passed, 0 failed, 3 ignored (all test binaries).Running the title on Linux
The runtime is D3D12, so a Linux run would go through Wine/Proton + vkd3d-proton. Open work that touches that path already tracks itself in #41 (WARP adapter rejection under Proton), #53 (xmem commit under Wine), #76 (physical-page runs over placeholders); there is no official Linux support claimed. This issue is only about the build and test state above so contributors do not rediscover the E0425.
No game data, no keys, no executable content. AI-assisted (DeepSeek V4.1 Flash coding agent).
@Quat3rnion on GitHub · 2026-11-24 00:37 UTC · original
The Linux build failure is fixed in #112. Verified on Linux with the pinned toolchain:
cargo test --workspace --lockedreports 156 passed, 0 failed, 3 ignored. This tracking issue can close once #112 lands.@DaviTostes on GitHub · 2026-11-24 00:45 UTC · original
Ran the Windows build under Wine as the only way to execute the host-GPU tests on Linux. Environment: Arch Linux x86_64, Wine 11.22, vkd3d-proton 3.1, AMD RX 9060 XT (RADV 26.3.1); build of
main7d33c46withcargo xwin ... --target x86_64-pc-windows-msvc(cargo-xwin 0.24.1). No game data, novictory.toml.victory_gpu: 36 passed, 3 failed.load_probespawnscargofrom inside Wine (Invalid handle),xtask policyspawnsgit(program not found),victory-hleonly_loopback_is_reachableneedsWSAConnectByList(same class as #118),victory-shaderstub_pipeline_is_createdruns withoutdxil.dll.GPU failures:
resource::tests::buffer_data_reaches_the_host_texture— a real portability bug, filed as #128:copy_mapped'sVirtualQueryguard sees vkd3d-mapped memory asMEM_FREE, so the deferred upload copy is skipped and the texture stays zero. Passingtitle_dst=falselocally makes the test pass.indirect::tests::argument_clamp_builds— Wine's builtind3dcompiler_47cannot compile the clamp (E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'), soclamp()isNoneand indirect execution is dropped at runtime. A native Microsoftd3dcompiler_47.dllin the prefix is the likely workaround.pipeline::library::tests::a_rejected_blob_gives_an_empty_library— vkd3d-proton returnsE_INVALIDARGwhen creating the empty pipeline library, soopen()returnsNone; production handles that (no cache), only the test's expectation differs.With #112 tested here at 165 passed / 0 failed / 3 ignored and
cargo fmt --checkclean, #39 and this issue should both be closable once #112 lands.No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
@SkippySteve on GitHub · 2026-11-24 00:58 UTC · original
#149 documents this for contributors: running the tests on Linux (until #39/#112 land), cross-building
victory.exe, and running it under Proton. Docs only.@SkippySteve on GitHub · 2026-11-24 01:41 UTC · original
#235 is a minimal rebase of the #39 gates onto current main (
d2a4bae). On Arch,cargo test --workspacegives 162 passed, 0 failed, 3 ignored.@yeifer125 on GitHub · 2026-11-24 08:35 UTC · original
Independent confirmation from a fresh Linux build attempt (2026-11-25)
Built
maintoday on Kali (rustc 1.97.1, distro) and hit the same E0425 (host_resource,resource.rs:284).Where the cascade ends
After locally stubbing that (and gating
super::xmeminvictory-hle), the build moves intowindows-futureand dies with 12-16 errors:Root cause (verified in crate source, not the lockfile)
windows-core0.61.2 and 0.62.2 only compile their COM plumbing on Windows:...and
windows.rs(line 10-11) is wheremarshalerlives:So on Linux
imp::IMarshal/imp::marshalersimply do not exist, andwindows-future(0.2.1 with core 0.61, 0.3.2 with core 0.62) cannot compile. Tested 0.61.3 and 0.62.2 + freshCargo.lock: identical.Impact for the "native runtime, no Wine" goal (#526)
Any native-Linux victory needs either:
windows-corethat exposesmarshaleroff-cfg(windows)(with a std-only implementation), orwindows-futurefrom the native path.Happy to push the 3 local gates we already wrote (
host_resourcestub,view_formatsplit,xmemungate) as a PR if useful - they track what #39 did, so no duplication intended, just confirmation the failures reproduce on 1.97.1.Tested: Kali rolling, rustc 1.97.1 (distro tarball), no game data, workspace @ 551cbeb-equivalent
main.@DaniiL35 on GitHub · 2026-11-24 14:05 UTC · original
For anyone tracking the E0425
host_resourceerror incrates/victory-gpu/src/resource.rs:284on currentmain:Issue #892 (
JulianChavezdev:linux-ci-and-pe-tests, commitf8c107f5) has rebased and cleaned up this exact gating on top of currentmain.It gates
view_formatinvictory-gpu(whose only caller isRtvRecord::host_desc, already#[cfg(windows)]), replaces the Windowsown_image()test runner assumptions invictory-pewith procedural synthetic PE DLL fixtures (import_image()), gates host-only routines invictory-hle, and sets up a dedicatedlinuxCI job testing:Verified on non-Windows (Darwin / POSIX) that this cleanly resolves the E0425 and allows all host-independent crates to compile and pass tests out of the box.
@Headache3318 on GitHub · 2026-11-24 14:23 UTC · original
Merged-with-main Linux verdict matrix for the four #90-fix PRs — squashed onto
mainffe310ebin fresh worktrees, committed locally (unpushed), thencargo check --workspace --all-targets,cargo test --workspace --locked,cargo clippy --workspace --all-targets -- -D warningsonx86_64-unknown-linux-gnuwith the pinned 1.98.1, all commands un-piped with exit codes captured.mainalone reproduces the baseline exactly: E0425host_resourceatcrates/victory-gpu/src/resource.rs:284.5843a58e(has since moved again to5d40ad81; re-verification running)7bc73dac00122661437e27dbunused import: OnceLockatvictory-gpu/src/pipeline.rs:21ee63908ddb310d35ab9dec3a(has since moved to2c83383a; re-verification running)6e962fdfresource.rs:284, byte-identical to the baselineTwo things no earlier post on this lane names: #523 and #112 clear the #90 compile gate but leave Windows-only-used imports dangling on Linux — 32 and 33
-D unused-importserrors (OnceLocketc., used only inside#[cfg(windows)]members) that a Linux CI lane would catch, and nothing indocs/orci.ymlsaysclippy --all-targets -D warningsmust pass on Linux; and stacking all four ontoffe310econflicts — #523 failsgit apply --3wayatci.yml,apps/victory/src/translate.rsandresource.rs:279, exactly the regions #235 already rewrote — with #523 and #112 showing identical clippy signatures, so "merge all four" is likely the wrong frame and one of #112/#523 on top of #235's gating is the real question. #232's own patch comments concede its--skipflags are no-ops, so as CI scaffolding alone it leaves the workspace still uncompilable on Linux. Not tested here: Windows behavior (CI already covers that), native execution, or the current heads after the two force-pushes. AI-assisted; Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04; all merge commits local and unpushed. Commands:git fetch --depth=1 upstream refs/pull/<N>/head; git diff upstream/main FETCH_HEAD > p.patch; git apply; cargo check/test/clippy as listed, exit codes captured un-piped.@elgreams on GitHub · 2026-11-24 15:07 UTC · original
Linux test report:
mainand the five Linux-build PRsSetup: Linux Mint 22.1 (kernel 6.8), rustc 1.98.1 (the pinned toolchain), x86_64, no game files, no
victory.toml.Method:
cargo check --workspace --tests --locked, thencargo test -p <crate> --locked --no-fail-fastfor each crate separately with a 300 s timeout, so one hanging test can't hide the other crates.mainffe310eb2host_resourceinvictory-gpu.victory-hleandvictorydon't build.victory-loader(3) andvictory-pe(4) fail by parsing the ELF test binary as a PE2c83383a4main. Expected, since it's a CI subset and doesn't fix the build5d40ad817victory-gpu: 3 tests fail and 1 hangs (details below)001226617main(ffe310eb2): clean auto-merge, builds, all crates pass. gpu 24, hle 48 (3 ignored), shader 96 (1 ignored), formats 23 (4 ignored), core 11, pipeline 4, game 2, xtask 4.loader(3) andpe(4) are ignored off Windowsee63908d5main. Conflicts withmain, so not tested mergedd46727fe7main(hle 226, loader 35). Conflicts withmain, so not tested merged#235:
victory-gputests depend on test orderThese four tests fail or hang under a normal
cargo testrun, and each one passes when run alone:queue::host_free_tests::fence_waits_complete_without_blocking_the_queue: fails atqueue.rs:594,left: -2147467263(E_NOTIMPL),right: -2147024809(E_INVALIDARG)queue::host_free_tests::page_mapping_batches_run_through_the_runtime_mapper: failsqueue::host_free_tests::present_succeeds_without_copying_to_a_window: failsqueue::host_free_tests::timestamp_frequency_refuses_null_and_reports_the_rate: hangs, which would stall a CI jobRunning each test alone after every other test in the crate, I found the one that causes it:
device::tests::newer_device_levels_are_the_same_device. Any of the four fails or hangs when it runs after that test:Likely cause, from reading the code: that test creates the device as
ID3D12Device11, which sets the process-wideNEWERflag (device.rs:154). Every queue created after that gets the newer layout (newer_slot, slots from 0x70 moved by two). The newhost_free_testscall fixed offsets such as 0x78, 0x80 and 0x100, so after the flag is set they hit different methods. Usingnewer_slotandcrate::device::newer()in those tests, or not letting tests share the flag, should fix it. I haven't tried a fix, and I haven't checked whether the same order dependence affects the Windows-only tests.Summary
On Linux, #523 is the only one I could confirm builds and passes all tests merged onto current
main. #235 builds but needs the test-order fix above. #112 and #526 pass on their own bases but need a rebase first.@elgreams on GitHub · 2026-11-24 15:45 UTC · original
Correction to my report above: I ran
checkandtestbut not clippy. Withcargo clippy --workspace --all-targets --locked -- -D warningson #523 merged ontomainffe310eb2, Linux fails with about 28 errors: 9 functions never used, 7 unused variables, 8 unused imports, 3 constants never used and 1 unneededmut. Most of them are only used in#[cfg(windows)]code. That confirms @Headache3318's finding. So #523 builds and its tests pass, but it would fail a Linux CI clippy gate until those are gated too.@Marvisak on GitHub · 2026-11-25 01:47 UTC · original
Automated triage for the maintainers.
Still true on current
main: incrates/victory-gpu/src/resource.rs,view_formatis compiled on every target but callshost_resource, which is#[cfg(windows)], sovictory-gpu(and the workspace) does not build off Windows. The project targets Windows hosts only, so building and testing on Linux is a contributor convenience; whether to support it is the maintainers' call. Open PR #523 (needs a rebase) gates these uses; #235 was closed. The comments above also note that a Linux clippy run with-D warningswould need more gating.Generated by Claude Code