Frogging-Family / wine-tkg-git

The wine-tkg build systems, to create custom Wine and Proton builds
840 stars 148 forks source link

can't find crate for `core` .. note: the `i686-unknown-linux-gnu` target may not be installed #1139

Closed luthis1124 closed 3 months ago

luthis1124 commented 3 months ago

Posting my solution here in case others have this issue.

warning: `proton-media-converter` (lib) generated 1 warning (run `cargo fix --lib -p proton-media-converter` to apply 1 suggestion)
    Finished release [optimized] target(s) in 26.48s
PKG_CONFIG_ALLOW_CROSS=1 cargo build --target i686-unknown-linux-gnu --release
   Compiling libc v0.2.134
   Compiling futures-core v0.3.24
   Compiling futures-task v0.3.24
   Compiling slab v0.4.7
   Compiling futures-util v0.3.24
   Compiling glib-sys v0.16.0
   Compiling gobject-sys v0.16.0
   Compiling gstreamer-sys v0.19.0
   Compiling num-traits v0.2.15
   Compiling pin-utils v0.1.0
   Compiling pin-project-lite v0.2.9
   Compiling futures-channel v0.3.24
   Compiling gstreamer-base-sys v0.19.0
   Compiling gio-sys v0.16.0
   Compiling num-integer v0.1.45
   Compiling thiserror v1.0.37
   Compiling cfg-if v1.0.0
   Compiling num-rational v0.4.1
   Compiling smallvec v1.9.0
   Compiling bitflags v1.3.2
error[E0463]: can't find crate for `core`
  |
  = note: the `i686-unknown-linux-gnu` target may not be installed
  = help: consider downloading the target with `rustup target add i686-unknown-linux-gnu`

Installed Rustup:

1 extra-x86-64-v3/rustup 1.27.0-1.1 (2.8 MiB 7.9 MiB) 
    The Rust toolchain installer
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1
Sync Explicit (1): rustup-1.27.0-1.1
resolving dependencies...
looking for conflicting packages...
:: rustup and rust are in conflict. Remove rust? [y/N] y

Packages (2) rust-1:1.76.0-2.1 [removal]  rustup-1.27.0-1.1

Total Download Size:      2.81 MiB
Total Installed Size:     7.86 MiB
Net Upgrade Size:      -246.76 MiB

:: Proceed with installation? [Y/n] y

Followed steps suggested:

$ rustup target add i686-unknown-linux-gnu
error: rustup could not choose a version of rustup to run, because one wasn't specified explicitly, and no default is configured.
help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain.
$ rustup default stable
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2024-02-08, rust version 1.76.0 (07dca489a 2024-02-04)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
 62.3 MiB /  62.3 MiB (100 %)  39.1 MiB/s in  1s ETA:  0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-std'
info: installing component 'rustc'
 62.3 MiB /  62.3 MiB (100 %)  35.4 MiB/s in  1s ETA:  0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

 stable-x86_64-unknown-linux-gnu installed - rustc 1.76.0 (07dca489a 2024-02-04)

$ rustup target add i686-unknown-linux-gnu
info: downloading component 'rust-std' for 'i686-unknown-linux-gnu'
info: installing component 'rust-std' for 'i686-unknown-linux-gnu'

Hopefully it builds now..

luthis1124 commented 3 months ago

Closing, got past this step to find a new issue, hopefully this helps someone.

Tk-Glitch commented 3 months ago

Just install rust and lib32-rust-libs instead of rustup and you're good to go.

Tk-Glitch commented 3 months ago

Also if you set _nomakepkg_dep_resolution_distro="archlinux", you'll get those.