Building 1.14.2 on ARM fails to get rust nightly components #683

Closed
opened 2026-02-04 22:12:54 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @mqus on GitHub (Apr 12, 2020).

Subject of the issue

I just tried to build the latest release on a raspberry pi (baremetal) and got the following error while cargo/rustup was updating the toolchain:

info: syncing channel updates for 'nightly-2020-04-08-armv7-unknown-linux-gnueabihf'
info: latest update on 2020-04-08, rust version 1.44.0-nightly (42abbd887 2020-04-07)
error: component 'clippy' for target 'armv7-unknown-linux-gnueabihf' is unavailable for download for channel nightly-2020-04-08

After looking at https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu.html, I decided to use nightly-2020-04-10 and it build without any issues. This issue is basically the same as #622 .

I think this will be solved eventually by using another nightly build, the only open question is: Does it make sense to make a new release?

Your environment

  • Bitwarden_rs version: 1.14.2
  • Install method: Archlinux package (my responsibility ;) ), sqlite release
  • Clients used: Not applicable
  • Reverse proxy and version: Not applicable
  • Version of mysql/postgresql: Not applicable
  • Other relevant information:

Steps to reproduce

On an ARM machine (e.g. Raspberry Pi with ArchlinuxARM):

$ git clone https://github.com/dani-garcia/bitwarden_rs
[...]
$ cd bitwarden_rs
$ git checkout 1.14.2
[...]
$ cargo build --release
info: syncing channel updates for 'nightly-2020-04-08-armv7-unknown-linux-gnueabihf'
info: latest update on 2020-04-08, rust version 1.44.0-nightly (42abbd887 2020-04-07)
error: component 'clippy' for target 'armv7-unknown-linux-gnueabihf' is unavailable for download for channel nightly-2020-04-08
Originally created by @mqus on GitHub (Apr 12, 2020). ### Subject of the issue I just tried to build the latest release on a raspberry pi (baremetal) and got the following error while cargo/rustup was updating the toolchain: ``` info: syncing channel updates for 'nightly-2020-04-08-armv7-unknown-linux-gnueabihf' info: latest update on 2020-04-08, rust version 1.44.0-nightly (42abbd887 2020-04-07) error: component 'clippy' for target 'armv7-unknown-linux-gnueabihf' is unavailable for download for channel nightly-2020-04-08 ``` After looking at https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu.html, I decided to use `nightly-2020-04-10` and it build without any issues. This issue is basically the same as #622 . I think this will be solved eventually by using another nightly build, the only open question is: Does it make sense to make a new release? ### Your environment * Bitwarden_rs version: 1.14.2 * Install method: Archlinux package (my responsibility ;) ), sqlite release * Clients used: Not applicable * Reverse proxy and version: Not applicable * Version of mysql/postgresql: Not applicable * Other relevant information: ### Steps to reproduce On an ARM machine (e.g. Raspberry Pi with ArchlinuxARM): ``` $ git clone https://github.com/dani-garcia/bitwarden_rs [...] $ cd bitwarden_rs $ git checkout 1.14.2 [...] $ cargo build --release info: syncing channel updates for 'nightly-2020-04-08-armv7-unknown-linux-gnueabihf' info: latest update on 2020-04-08, rust version 1.44.0-nightly (42abbd887 2020-04-07) error: component 'clippy' for target 'armv7-unknown-linux-gnueabihf' is unavailable for download for channel nightly-2020-04-08 ```
Author
Owner

@dani-garcia commented on GitHub (Apr 12, 2020):

Well clippy is broken in a big percentage of the nightly builds, but it's not needed to compile the code so I'd recommend just using rustups minimal profile (rustup set profile minimal before installing).

I don't think it's enough to make a new release to fix it, but I'll have it in mind before making any new rust updates in the future.

@dani-garcia commented on GitHub (Apr 12, 2020): Well clippy is broken in a big percentage of the nightly builds, but it's not needed to compile the code so I'd recommend just using rustups minimal profile (`rustup set profile minimal` before installing). I don't think it's enough to make a new release to fix it, but I'll have it in mind before making any new rust updates in the future.
Author
Owner

@mqus commented on GitHub (Apr 12, 2020):

I can set the rustup profile for me perfectly (and probably already did on my main machine,just forgot it :D) but I can't simply set the profile in the archlinux build script and change the setup of unsuspecting users... do you know a better solution than reading the old value, setting it and then reverting to the old one (which is what I would probably do)?

@mqus commented on GitHub (Apr 12, 2020): I can set the rustup profile for me perfectly (and probably already did on my main machine,just forgot it :D) but I can't simply set the profile in the archlinux build script and change the setup of unsuspecting users... do you know a better solution than reading the old value, setting it and then reverting to the old one (which is what I would probably do)?
Author
Owner

@mqus commented on GitHub (Apr 12, 2020):

Btw, I also don't think a new release is necessary, one can trivially work around this.

@mqus commented on GitHub (Apr 12, 2020): Btw, I also don't think a new release is necessary, one can trivially work around this.
Author
Owner

@dani-garcia commented on GitHub (Apr 12, 2020):

You can do something like rustup override set --path <bitwardenrs_path> nightly-2020-04-10 or I think setting RUSTUP_TOOLCHAIN env variable also works.

Edit: Also cargo +nightly-2020-04-10 build should work as well.

@dani-garcia commented on GitHub (Apr 12, 2020): You can do something like `rustup override set --path <bitwardenrs_path> nightly-2020-04-10` or I think setting `RUSTUP_TOOLCHAIN` env variable also works. Edit: Also `cargo +nightly-2020-04-10 build` should work as well.
Author
Owner

@mqus commented on GitHub (Apr 13, 2020):

Thank you!, i'll try this in the future. For now, I'm using the profile setting and resetting, which also limits the amount if space the new installed components take up.

@mqus commented on GitHub (Apr 13, 2020): Thank you!, i'll try this in the future. For now, I'm using the profile setting and resetting, which also limits the amount if space the new installed components take up.
Author
Owner

@mqus commented on GitHub (Jun 3, 2020):

As this is not a problem in the new version I'll close this issue now. Of course it could occur in the future again but I think there is nothing we can do to fix this here.

@mqus commented on GitHub (Jun 3, 2020): As this is not a problem in the new version I'll close this issue now. Of course it could occur in the future again but I think there is nothing we can do to fix this here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#683