Skip to content

setup: fix toolchain installation error#172

Merged
DemesneGH merged 1 commit intoapache:mainfrom
DemesneGH:main
Mar 6, 2025
Merged

setup: fix toolchain installation error#172
DemesneGH merged 1 commit intoapache:mainfrom
DemesneGH:main

Conversation

@DemesneGH
Copy link
Contributor

cargo --version is used to trigger the Rust toolchain installation but does not work currently and fails with the error:
"error: toolchain 'nightly-....'is not installed"
Use the rustup toolchain install instead.

@DemesneGH
Copy link
Contributor Author

I see it's also fixed in OP-TEE build: OP-TEE/build#818

@DemesneGH
Copy link
Contributor Author

Seems cloning OP-TEE repo failed: Cannot fetch firmware/SCP-firmware.git, could you help to check it out? @b49020 @jforissier

@b49020
Copy link
Contributor

b49020 commented Mar 5, 2025

@DemesneGH could you retry again? seems like a network issue to me.

@jforissier
Copy link
Contributor

The CI is broken in https://github.com/OP-TEE/optee_os too :-/
I can clone the OP-TEE repo locally with no issue but GitHub is getting a 502 error on https://git.gitlab.arm.com/firmware/SCP-firmware.git

$ mkdir /tmp/optee; cd /tmp/optee
$ repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml
$ repo sync -j10
[...]
repo sync has finished successfully.
$ ls SCP-firmware/
arch           cmake           contrib          dco.txt   doc     framework  license.md      Makefile.cmake  product    requirements.txt  tools      user_guide.md
change_log.md  CMakeLists.txt  contributing.md  debugger  docker  interface  maintainers.md  module          readme.md  security.md       unit_test  Vagrantfile

If the problem persists we could create a mirror of SCP-firmware on a reliable host (i.e., GitHub) and use it instead.

@jforissier
Copy link
Contributor

If the problem persists we could create a mirror of SCP-firmware on a reliable host (i.e., GitHub) and use it instead.

OP-TEE/manifest#314

# "cargo --version" since it has no other effect.
cargo --version >/dev/null
# install the Rust toolchain set in rust-toolchain.toml
rustup toolchain install
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should notice that this command requires higher version of rustup.

With rustup 1.27.1 (54dd3d00f 2024-04-24):
image

With rustup 1.28.0 (6e19fbec7 2025-03-02)
image

According to this, developers can use rustup self update to update the version of rustup.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
rustup 1.28.0 was released 2 days ago, I think most of the developers still keeps on rustup 1.27.1,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about change line32 to:
rustup self update && rustup uninstall stable && rustup install stable?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about change line32 to: rustup self update && rustup uninstall stable && rustup install stable?

Good catch, it is better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ivila
Copy link
Contributor

ivila commented Mar 6, 2025

Thanks for your fix, everything looks good to me, feel free to add: Reviewed-by: Zehui Chen <ivila@apache.org> 😄

@b49020
Copy link
Contributor

b49020 commented Mar 6, 2025

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>

`cargo --version` is used to trigger the Rust toolchain
installation but does not work currently and fails with the error:
"error: toolchain 'nightly-....'is not installed"
Use the `rustup toolchain install` instead.

Signed-off-by: Yuan Zhuang <yuanz@apache.org>
Reviewed-by: Zehui Chen <ivila@apache.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
@DemesneGH DemesneGH merged commit 72b39c1 into apache:main Mar 6, 2025
7 checks passed
@DemesneGH
Copy link
Contributor Author

Merged, thanks!

@DemesneGH DemesneGH added bug Something isn't working build labels Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants