Fedora 44: build.sh fails on setup.sh first run #292

Closed
opened 2026-12-03 04:54:24 +00:00 by github-bot · 2 comments
Owner

@⁠Ian-Marcel on GitHub · 2026-12-03 04:43 UTC · original

  • OS: Fedora Linux 44 (Workstation Edition) x86_64
  • VIctory-xmem git reflog:
    commit 842767a8e4a51ba3e342355176dd91e7d4d5147b (HEAD -> main, origin/main, origin/HEAD)
    Merge: 07e9727 6b2ab79
    Author: goldfishdev <[email protected]>
    Date:   Wed Dec 2 21:58:14 2026 -0600
    
        make README suck less
    
        yay
    

Apparently build.sh fails to find the 'core' crate and suggest adding the x86_64-pc-windows-msvc through rustup 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:

[gamer@machine] VIctory-xmem > ./setup.sh
building mesa
building vkd3d
using Proton (/home/gamer/.local/share/Steam/compatibilitytools.d/GE-Proton10-27); skipping vanilla wineserver patch build
building victory
   Compiling windows-link v0.2.1
   Compiling once_cell v1.21.4
   Compiling cfg-if v1.0.5
   Compiling regex-syntax v0.8.12
   Compiling pin-project-lite v0.2.18
   Compiling lazy_static v1.5.1
   Compiling serde_core v1.0.229
   Compiling log v0.4.35
   Compiling winnow v1.0.5
   Compiling thiserror v2.0.21
   Compiling libmimalloc-sys v0.1.49
   Compiling toml_writer v1.2.0+spec-1.1.0
error[E0463]: can't find crate for `core`
  |
  = note: the `x86_64-pc-windows-msvc` target may not be installed
  = help: consider downloading the target with `rustup target add x86_64-pc-windows-msvc`

For more information about this error, try `rustc --explain E0463`.
error: could not compile `pin-project-lite` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `windows-link` (lib) due to 1 previous error
error[E0463]: can't find crate for `std`
  |
  = note: the `x86_64-pc-windows-msvc` target may not be installed
  = help: consider downloading the target with `rustup target add x86_64-pc-windows-msvc`

error: could not compile `lazy_static` (lib) due to 1 previous error
error: could not compile `cfg-if` (lib) due to 1 previous error
error: could not compile `once_cell` (lib) due to 1 previous error
error: could not compile `serde_core` (lib) due to 1 previous error
error: could not compile `thiserror` (lib) due to 1 previous error
error: could not compile `log` (lib) due to 1 previous error
error: could not compile `winnow` (lib) due to 1 previous error
error: could not compile `toml_writer` (lib) due to 1 previous error
error: could not compile `regex-syntax` (lib) due to 1 previous error
**@⁠Ian-Marcel** on GitHub · 2026-12-03 04:43 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/292) - OS: Fedora Linux 44 (Workstation Edition) x86_64 - VIctory-xmem git reflog: ```git commit 842767a8e4a51ba3e342355176dd91e7d4d5147b (HEAD -> main, origin/main, origin/HEAD) Merge: 07e9727 6b2ab79 Author: goldfishdev <[email protected]> Date: Wed Dec 2 21:58:14 2026 -0600 make README suck less yay ``` Apparently build.sh fails to find the 'core' crate and suggest adding the `x86_64-pc-windows-msvc` through `rustup 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: ``` [gamer@machine] VIctory-xmem > ./setup.sh building mesa building vkd3d using Proton (/home/gamer/.local/share/Steam/compatibilitytools.d/GE-Proton10-27); skipping vanilla wineserver patch build building victory Compiling windows-link v0.2.1 Compiling once_cell v1.21.4 Compiling cfg-if v1.0.5 Compiling regex-syntax v0.8.12 Compiling pin-project-lite v0.2.18 Compiling lazy_static v1.5.1 Compiling serde_core v1.0.229 Compiling log v0.4.35 Compiling winnow v1.0.5 Compiling thiserror v2.0.21 Compiling libmimalloc-sys v0.1.49 Compiling toml_writer v1.2.0+spec-1.1.0 error[E0463]: can't find crate for `core` | = note: the `x86_64-pc-windows-msvc` target may not be installed = help: consider downloading the target with `rustup target add x86_64-pc-windows-msvc` For more information about this error, try `rustc --explain E0463`. error: could not compile `pin-project-lite` (lib) due to 1 previous error warning: build failed, waiting for other jobs to finish... error: could not compile `windows-link` (lib) due to 1 previous error error[E0463]: can't find crate for `std` | = note: the `x86_64-pc-windows-msvc` target may not be installed = help: consider downloading the target with `rustup target add x86_64-pc-windows-msvc` error: could not compile `lazy_static` (lib) due to 1 previous error error: could not compile `cfg-if` (lib) due to 1 previous error error: could not compile `once_cell` (lib) due to 1 previous error error: could not compile `serde_core` (lib) due to 1 previous error error: could not compile `thiserror` (lib) due to 1 previous error error: could not compile `log` (lib) due to 1 previous error error: could not compile `winnow` (lib) due to 1 previous error error: could not compile `toml_writer` (lib) due to 1 previous error error: could not compile `regex-syntax` (lib) due to 1 previous error ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 04:54:28 +00:00
Author
Owner

@⁠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 current main.

About your error: can't find crate for core with the x86_64-pc-windows-msvc hint usually means the cargo/rustc that runs is Fedora's packaged Rust (/usr/bin/cargo), not rustup's. Fedora's Rust ignores the repo's rust-toolchain.toml (Rust 1.98.1 + the MSVC target) and has no Windows standard library. So rustup target add goes to a toolchain that build.sh never uses. To check, from the repo directory:

which -a cargo rustc        # ~/.cargo/bin must come first
cargo --version             # should report 1.98.1 here
rustup show                 # active toolchain should be 1.98.1 (overridden by rust-toolchain.toml)

If /usr/bin/cargo wins, either remove the distro Rust (sudo dnf remove cargo rust) or put ~/.cargo/bin first in PATH (source "$HOME/.cargo/env" in your shell rc). If you installed the rustup RPM, you also need to run rustup-init once. 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 first cargo call there).

Fedora packages that setup.sh/build.sh and the prefix need (what I installed):

sudo dnf install git curl unzip tar xz python3 pkgconf-pkg-config ninja-build \
  glslang clang lld llvm mingw64-gcc mingw64-gcc-c++ mingw64-binutils \
  wine-devel vulkan-tools mesa-vulkan-drivers \
  libdrm-devel libxcb-devel libX11-devel libXrandr-devel libxshmfence-devel \
  wayland-devel wayland-protocols-devel flex bison make util-linux pciutils \
  glibc.i686 freetype.i686
  • clang-cl, lld-link, llvm-lib come from clang/lld/llvm, and widl from wine-devel (dnf provides '*/widl' if missing).
  • Mesa 26.3.1 needs libdrm >= 2.4.133 and wayland-protocols >= 1.49. Check with pkg-config --modversion libdrm wayland-protocols.
  • glibc.i686: without it, wineboot fails on /lib/ld-linux.so.2.
  • freetype.i686: install it before the first setup.sh run, 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, check grep -A15 WindowMetrics local/prefix/user.reg.
  • Your user needs to be in the render and video groups (sudo usermod -aG render,video $USER, then log out and back in). systemd-run --user --scope must work (a normal login session, not su/sudo).
  • Steam as RPM (RPM Fusion), or set PROTON= in run.conf: env.sh only looks under ~/.local/share/Steam/…, not the Flatpak path.
  • Resizable BAR / Above 4G decoding on in the BIOS. Unified memory only uses the card when at least 4 GiB of VRAM is CPU-visible. Without it, vulkaninfo shows a ~256 MiB DEVICE_LOCAL|HOST_VISIBLE heap and everything stays in RAM.
**@⁠El-Biiscuit** on GitHub · 2026-12-03 09:26 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/292#issuecomment-7373658462) 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 current `main`. **About your error:** `can't find crate for core` with the `x86_64-pc-windows-msvc` hint usually means the `cargo`/`rustc` that runs is **Fedora's packaged Rust** (`/usr/bin/cargo`), not rustup's. Fedora's Rust ignores the repo's `rust-toolchain.toml` (Rust 1.98.1 + the MSVC target) and has no Windows standard library. So `rustup target add` goes to a toolchain that `build.sh` never uses. To check, from the repo directory: ```sh which -a cargo rustc # ~/.cargo/bin must come first cargo --version # should report 1.98.1 here rustup show # active toolchain should be 1.98.1 (overridden by rust-toolchain.toml) ``` If `/usr/bin/cargo` wins, either remove the distro Rust (`sudo dnf remove cargo rust`) or put `~/.cargo/bin` first in `PATH` (`source "$HOME/.cargo/env"` in your shell rc). If you installed the `rustup` RPM, you also need to run `rustup-init` once. 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 first `cargo` call there). **Fedora packages that `setup.sh`/`build.sh` and the prefix need** (what I installed): ```sh sudo dnf install git curl unzip tar xz python3 pkgconf-pkg-config ninja-build \ glslang clang lld llvm mingw64-gcc mingw64-gcc-c++ mingw64-binutils \ wine-devel vulkan-tools mesa-vulkan-drivers \ libdrm-devel libxcb-devel libX11-devel libXrandr-devel libxshmfence-devel \ wayland-devel wayland-protocols-devel flex bison make util-linux pciutils \ glibc.i686 freetype.i686 ``` - `clang-cl`, `lld-link`, `llvm-lib` come from `clang`/`lld`/`llvm`, and `widl` from `wine-devel` (`dnf provides '*/widl'` if missing). - Mesa 26.3.1 needs `libdrm >= 2.4.133` and `wayland-protocols >= 1.49`. Check with `pkg-config --modversion libdrm wayland-protocols`. - **`glibc.i686`**: without it, `wineboot` fails on `/lib/ld-linux.so.2`. - **`freetype.i686`**: install it **before** the first `setup.sh` run, 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, check `grep -A15 WindowMetrics local/prefix/user.reg`. - Your user needs to be in the `render` and `video` groups (`sudo usermod -aG render,video $USER`, then log out and back in). `systemd-run --user --scope` must work (a normal login session, not `su`/`sudo`). - Steam as **RPM** (RPM Fusion), or set `PROTON=` in `run.conf`: `env.sh` only looks under `~/.local/share/Steam/…`, not the Flatpak path. - **Resizable BAR / Above 4G decoding** on in the BIOS. Unified memory only uses the card when at least 4 GiB of VRAM is CPU-visible. Without it, `vulkaninfo` shows a ~256 MiB `DEVICE_LOCAL|HOST_VISIBLE` heap and everything stays in RAM.
Author
Owner

@⁠Ian-Marcel on GitHub · 2026-12-04 02:15 UTC · original

If /usr/bin/cargo wins, either remove the distro Rust (sudo dnf remove cargo rust) or put ~/.cargo/bin first in PATH (source "$HOME/.cargo/env" in your shell rc). If you installed the rustup RPM, you also need to run rustup-init once. 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 first cargo call there).

Yup, solved by setting $PATH as PATH="$HOME/.cargo/bin:$PATH"

**@⁠Ian-Marcel** on GitHub · 2026-12-04 02:15 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/292#issuecomment-7398754064) > If /usr/bin/cargo wins, either remove the distro Rust (sudo dnf remove cargo rust) or put ~/.cargo/bin first in PATH (source "$HOME/.cargo/env" in your shell rc). If you installed the rustup RPM, you also need to run rustup-init once. 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 first cargo call there). Yup, solved by setting `$PATH` as `PATH="$HOME/.cargo/bin:$PATH"`
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#292
No description provided.