Fedora 44: build.sh fails on setup.sh first run #292
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem#292
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?
@Ian-Marcel on GitHub · 2026-12-03 04:43 UTC · original
Apparently build.sh fails to find the 'core' crate and suggest adding the
x86_64-pc-windows-msvcthroughrustup target add x86_64-pc-windows-msvc, I added the suggested package but it haven't solved the issue.Here's the the full log:
@El-Biiscuit on GitHub · 2026-12-03 09:26 UTC · original
I build and run this on Fedora too (45 now, started on 44, RX 6700 XT, built at
f7f0360), so here is what was needed on my side. It may differ slightly from currentmain.About your error:
can't find crate for corewith thex86_64-pc-windows-msvchint usually means thecargo/rustcthat runs is Fedora's packaged Rust (/usr/bin/cargo), not rustup's. Fedora's Rust ignores the repo'srust-toolchain.toml(Rust 1.98.1 + the MSVC target) and has no Windows standard library. Sorustup target addgoes to a toolchain thatbuild.shnever uses. To check, from the repo directory:If
/usr/bin/cargowins, either remove the distro Rust (sudo dnf remove cargo rust) or put~/.cargo/binfirst inPATH(source "$HOME/.cargo/env"in your shell rc). If you installed therustupRPM, you also need to runrustup-initonce. Install rustup from https://rustup.rs. Then, in the repo directory,rustup target add x86_64-pc-windows-msvc --toolchain 1.98.1(normally rustup does this by itself on the firstcargocall there).Fedora packages that
setup.sh/build.shand the prefix need (what I installed):clang-cl,lld-link,llvm-libcome fromclang/lld/llvm, andwidlfromwine-devel(dnf provides '*/widl'if missing).libdrm >= 2.4.133andwayland-protocols >= 1.49. Check withpkg-config --modversion libdrm wayland-protocols.glibc.i686: without it,winebootfails on/lib/ld-linux.so.2.freetype.i686: install it before the firstsetup.shrun, which creates the prefix. Without it my prefix got absurd window metrics (CaptionHeight=5434094), and the game only showed a black band (details in #268). If you already ran setup, checkgrep -A15 WindowMetrics local/prefix/user.reg.renderandvideogroups (sudo usermod -aG render,video $USER, then log out and back in).systemd-run --user --scopemust work (a normal login session, notsu/sudo).PROTON=inrun.conf:env.shonly looks under~/.local/share/Steam/…, not the Flatpak path.vulkaninfoshows a ~256 MiBDEVICE_LOCAL|HOST_VISIBLEheap and everything stays in RAM.@Ian-Marcel on GitHub · 2026-12-04 02:15 UTC · original
Yup, solved by setting
$PATHasPATH="$HOME/.cargo/bin:$PATH"