Rust update fails on Crux-3.8

I have been trying to update rust on Crux-3.8, but it always fails. This time, there was the 1.97.1-1 version available but the update failed again with the same error message (below):

rust 1.93.1-1 → 1.97.1-1
rust-bin 1.96.1-1 → 1.97.0-1

error[E0463]: can't find crate for core | = note: the x86_64-unknown-linux-gnu target may not be installed = help: consider downloading the target with rustup target add x86_64-unknown-linux-gnu = help: consider building the standard library from source with cargo build -Zbuild-std error[E0463]: can't find crate for std | = note: the x86_64-unknown-linux-gnu target may not be installed = help: consider downloading the target with rustup target add x86_64-unknown-linux-gnu = help: consider building the standard library from source with cargo build -Zbuild-std For more information about this error, try rustc --explain E0463. error: could not compile stable_deref_trait (lib) due to 1 previous error warning: build failed, waiting for other jobs to finish... 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 smallvec (lib) due to 1 previous error

Thank you so very much

is crux using rustup or do they have their own packaging system? can you explain in detail what command you are running and what's the expected output?

if this is a packaging issue. you should report to the crux package maintainer.

I am trying to update the whole Crux-3.8 system with "prt-get sysup", but after rust started failing I ran "prt-get update ", leaving rust aside from the rest of bunch of packages available to be update and the whole system updates perfectly well this way." Rust, however, shows an output of "crate" and "std" error. The installed version is 1.93.1-1, and there is already available the → 1.97.1-1 one.

the error messages are pasted below :

error[E0463]: can't find crate for `std`

|
= note: the `x86_64-unknown-linux-gnu` target may not be installed
= help: consider downloading the target with `rustup target add x86_64-unknown-linux-gnu`
= help: consider building the standard library from source with `cargo build -Zbuild-std`

For more information about this error, try `rustc --explain E0463`.
error: could not compile `cfg-if` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `stable_d

error[E0463]: can't find crate for `std`

|
= note: the `x86_64-unknown-linux-gnu` target may not be installed
= help: consider downloading the target with `rustup target add x86_64-unknown-linux-gnu`
= help: consider building the standard library from source with `cargo build -Zbuild-std`

For more information about this error, try `rustc --explain E0463`.
error: could not compile `cfg-if` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `stable_deref_trait` (lib) due to 1 previous error
error: could not compile `bitflags` (lib) due to 1 previous error
error: could not compile `once_cell` (lib) due to 1 previous error
error: could not compile `smallvec` (lib) due to 1 previous error
error: could not compile `memchr` (lib) due to 1 previous error
Build completed unsuccessfully in 0:00:18
=======> ERROR: Building '/home/build/pkgs/rust#1.97.1-1.pkg.tar.gz' failed.

-- Packages where update failed
eref_trait` (lib) due to 1 previous error
error: could not compile `bitflags` (lib) due to 1 previous error
error: could not compile `once_cell` (lib) due to 1 previous error
error: could not compile `smallvec` (lib) due to 1 previous error
error: could not compile `memchr` (lib) due to 1 previous error
Build completed unsuccessfully in 0:00:18
=======> ERROR: Building '/home/build/pkgs/rust#1.97.1-1.pkg.tar.gz' failed.

-- Packages where update failed

this is most likely a downstream packager issue, not a problem in rust itself. better to report to the crux package maintainer.

I'm not familiar with the packaging system used by crux, are packages distributed in source code form and built locally? bootstrapping a rust compiler is slow and heavy, and should not be necessary for most users. do they have signed pre-built binaries in the repository?

note, it is recommended to use rustup to install rust toolchains for most users. typically you'll need to install rust from the system package manager only if you want to publish software written in rust to the distro's repositories.

If I am not mistaken, in the CRUX 3.8 distribution, the packages are distributed in source code format (through port collections) and are compiled and mounted locally on your machine. As far as I know, Crux officially provides pre-built binary packages for the compiler in the contrib collection, which completely avoids the need to bootstrap from source. I update the system by running "sudo ports -u", "prt-get diff", "sudo prt-get sysup" or "sudo prt-get update " if you prefer to update one by one. What is weird is that I have Crux on two other machines and there is no problem at all to update rust the way I related above.

error[E0463]: can't find crate for core
|
= note: the x86_64-unknown-linux-gnu target may not be installed
= help: consider downloading the target with rustup target add x86_64-unknown-linux-gnu
= help: consider building the standard library from source with cargo build -Zbuild-std

error[E0463]: can't find crate for std
|
= note: the x86_64-unknown-linux-gnu target may not be installed
= help: consider downloading the target with rustup target add x86_64-unknown-linux-gnu
= help: consider building the standard library from source with cargo build -Zbuild-std