Skip to content

espup fails toolchain installation:Failed to Install RISC-V targets for 'stable' toolchain #519

@wuwei-bit

Description

@wuwei-bit

Bug description

Like the bug: #482

Today I tried installing the rust toolchain for esp, this is what I got instead:

(base) ubuntu@WuWei:~/code/echokit_box$ espup install -l debug
[debug]: connecting to crates.io:443 at 52.84.90.43:443
[debug]: No cached session for DnsName("crates.io")
[debug]: Not resuming any session
[debug]: Using ciphersuite TLS13_AES_128_GCM_SHA256
[debug]: Not resuming
[debug]: TLS1.3 encrypted extensions: [ServerNameAck]
[debug]: ALPN protocol is None
[debug]: created stream: Stream(RustlsStream)
[debug]: sending request GET https://crates.io/api/v1/crates/espup/versions
[debug]: writing prelude: GET /api/v1/crates/espup/versions HTTP/1.1
Host: crates.io
User-Agent: ureq/2.12.1
Accept: */*
accept-encoding: gzip
[debug]: Chunked body in response
[debug]: response 200 to GET https://crates.io/api/v1/crates/espup/versions
[debug]: dropping stream: Stream(RustlsStream)
[info]: Installing the Espressif Rust ecosystem
[debug]: Querying latest Xtensa Rust version from GitHub API
[debug]: Querying GitHub API: 'https://api.github.com/repos/esp-rs/rust-build/releases/latest'
[debug]: starting new connection: https://api.github.com/
[debug]: Parsing Xtensa Rust version: 1.88.0.0
[debug]: Querying GitHub API: 'https://api.github.com/repos/esp-rs/rust-build/releases?page=1&per_page=100'
[debug]: starting new connection: https://api.github.com/
[debug]: Latest Xtensa Rust version: 1.88.0.0
[debug]: Arguments:
            - Export file: "/home/ubuntu/export-esp.sh"
            - Host triple: x86_64-unknown-linux-gnu
            - LLVM Toolchain: Llvm { extended: false, file_name_libs: Some("libs-clang-esp-19.1.2_20250225-x86_64-linux-gnu.tar.xz"), file_name_full: None, host_triple: X86_64UnknownLinuxGnu, path: "/home/ubuntu/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-19.1.2_20250225", repository_url: "https://github.com/espressif/llvm-project/releases/download/esp-19.1.2_20250225", version: "esp-19.1.2_20250225" }
            - Stable version: "stable"
            - Rust Toolchain: Some(XtensaRust { cargo_home: "/home/ubuntu/.cargo", dist_file: "rust-1.88.0.0-x86_64-unknown-linux-gnu.tar.xz", dist_url: "https://github.com/esp-rs/rust-build/releases/download/v1.88.0.0/rust-1.88.0.0-x86_64-unknown-linux-gnu.tar.xz", host_triple: "x86_64-unknown-linux-gnu", path: "/home/ubuntu/.rustup/toolchains/esp", rustup_home: "/home/ubuntu/.rustup", src_dist_file: "rust-src-1.88.0.0.tar.xz", src_dist_url: "https://github.com/esp-rs/rust-build/releases/download/v1.88.0.0/rust-src-1.88.0.0.tar.xz", toolchain_destination: "/home/ubuntu/.rustup/toolchains/esp", version: "1.88.0.0" })
            - Skip version parsing: false
            - Targets: {ESP32C3, ESP32C2, ESP32H2, ESP32S3, ESP32P4, ESP32C6, ESP32, ESP32S2}
            - Toolchain path: "/home/ubuntu/.rustup/toolchains/esp"
            - Toolchain version: None
[info]: Checking Rust installation
[info]: Installing Xtensa Rust 1.88.0.0 toolchain
[info]: Installing RISC-V Rust targets ('riscv32imc-unknown-none-elf', 'riscv32imac-unknown-none-elf' and 'riscv32imafc-unknown-none-elf') for 'stable' toolchain
[info]: Installing GCC (xtensa-esp-elf)
[debug]: GCC path: /home/ubuntu/.rustup/toolchains/esp/xtensa-esp-elf/esp-14.2.0_20240906
[debug]: Creating directory: '/home/ubuntu/.rustup/toolchains/esp/xtensa-esp-elf/esp-14.2.0_20240906'
[info]: Installing Xtensa LLVM
[debug]: Creating directory: '/home/ubuntu/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-19.1.2_20250225'
[debug]: starting new connection: https://github.com/
[debug]: starting new connection: https://github.com/
[debug]: starting new connection: https://github.com/
[debug]: redirecting 'https://github.com/espressif/llvm-project/releases/download/esp-19.1.2_20250225/libs-clang-esp-19.1.2_20250225-x86_64-linux-gnu.tar.xz' to 'https://release-assets.githubusercontent.com/github-production-release-asset/234050162/d6975c1e-92e3-4b34-9d3e-504a4f22da06?sp=r&sv=2018-11-09&sr=b&spr=https&se=2025-08-06T11%3A52%3A52Z&rscd=attachment%3B+filename%3Dlibs-clang-esp-19.1.2_20250225-x86_64-linux-gnu.tar.xz&rsct=application%2Foctet-stream&skoid=96c2d410-5711-43a1-aedd-ab1947aa7ab0&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skt=2025-08-06T10%3A52%3A52Z&ske=2025-08-06T11%3A52%3A52Z&sks=b&skv=2018-11-09&sig=%2BZBysMjqjDgDvXz4fNUKGTs99xszOBMzsn6gdxVWcHs%3D&jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmVsZWFzZS1hc3NldHMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwia2V5Ijoia2V5MSIsImV4cCI6MTc1NDQ3OTI3MiwibmJmIjoxNzU0NDc4OTcyLCJwYXRoIjoicmVsZWFzZWFzc2V0cHJvZHVjdGlvbi5ibG9iLmNvcmUud2luZG93cy5uZXQifQ.LEqTBBQ-x3V3vZ6Csac18ii_b4ye8xwIPrh0ESr8l7c&response-content-disposition=attachment%3B%20filename%3Dlibs-clang-esp-19.1.2_20250225-x86_64-linux-gnu.tar.xz&response-content-type=application%2Foctet-stream'
[debug]: redirecting 'https://github.com/espressif/crosstool-NG/releases/download/esp-14.2.0_20240906/xtensa-esp-elf-14.2.0_20240906-x86_64-linux-gnu.tar.xz' to 'https://release-assets.githubusercontent.com/github-production-release-asset/66057540/6fd45494-6a43-4bdb-a982-640ed774f02a?sp=r&sv=2018-11-09&sr=b&spr=https&se=2025-08-06T11%3A53%3A22Z&rscd=attachment%3B+filename%3Dxtensa-esp-elf-14.2.0_20240906-x86_64-linux-gnu.tar.xz&rsct=application%2Foctet-stream&skoid=96c2d410-5711-43a1-aedd-ab1947aa7ab0&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skt=2025-08-06T10%3A52%3A24Z&ske=2025-08-06T11%3A53%3A22Z&sks=b&skv=2018-11-09&sig=LdXvP2yUJ8mW5rfEQ3SKa%2FImmL7NkothqIJmjnyMa2Q%3D&jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmVsZWFzZS1hc3NldHMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwia2V5Ijoia2V5MSIsImV4cCI6MTc1NDQ3OTI3MiwibmJmIjoxNzU0NDc4OTcyLCJwYXRoIjoicmVsZWFzZWFzc2V0cHJvZHVjdGlvbi5ibG9iLmNvcmUud2luZG93cy5uZXQifQ.LEqTBBQ-x3V3vZ6Csac18ii_b4ye8xwIPrh0ESr8l7c&response-content-disposition=attachment%3B%20filename%3Dxtensa-esp-elf-14.2.0_20240906-x86_64-linux-gnu.tar.xz&response-content-type=application%2Foctet-stream'
[debug]: starting new connection: https://release-assets.githubusercontent.com/
[debug]: starting new connection: https://release-assets.githubusercontent.com/
[debug]: redirecting 'https://github.com/esp-rs/rust-build/releases/download/v1.88.0.0/rust-src-1.88.0.0.tar.xz' to 'https://release-assets.githubusercontent.com/github-production-release-asset/404564617/089927e7-7788-4413-98e2-f271a58326b8?sp=r&sv=2018-11-09&sr=b&spr=https&se=2025-08-06T11%3A50%3A06Z&rscd=attachment%3B+filename%3Drust-src-1.88.0.0.tar.xz&rsct=application%2Foctet-stream&skoid=96c2d410-5711-43a1-aedd-ab1947aa7ab0&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skt=2025-08-06T10%3A49%3A59Z&ske=2025-08-06T11%3A50%3A06Z&sks=b&skv=2018-11-09&sig=kG12Zklj%2BMiUqQUv2dbpDKtyzYWdYlvB0xSbdnny%2BkU%3D&jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmVsZWFzZS1hc3NldHMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwia2V5Ijoia2V5MSIsImV4cCI6MTc1NDQ3OTI3MiwibmJmIjoxNzU0NDc4OTcyLCJwYXRoIjoicmVsZWFzZWFzc2V0cHJvZHVjdGlvbi5ibG9iLmNvcmUud2luZG93cy5uZXQifQ.LEqTBBQ-x3V3vZ6Csac18ii_b4ye8xwIPrh0ESr8l7c&response-content-disposition=attachment%3B%20filename%3Drust-src-1.88.0.0.tar.xz&response-content-type=application%2Foctet-stream'
[debug]: starting new connection: https://release-assets.githubusercontent.com/
[warn]: Installation for 'RISC-V Rust target' failed, retrying. Error: Failed to Install RISC-V targets for 'stable' toolchain
[info]: Installing RISC-V Rust targets ('riscv32imc-unknown-none-elf', 'riscv32imac-unknown-none-elf' and 'riscv32imafc-unknown-none-elf') for 'stable' toolchain
[warn]: Installation for 'RISC-V Rust target' failed, retrying. Error: Failed to Install RISC-V targets for 'stable' toolchain
[info]: Installing RISC-V Rust targets ('riscv32imc-unknown-none-elf', 'riscv32imac-unknown-none-elf' and 'riscv32imafc-unknown-none-elf') for 'stable' toolchain
[warn]: Installation for 'RISC-V Rust target' failed, retrying. Error: Failed to Install RISC-V targets for 'stable' toolchain
[info]: Installing RISC-V Rust targets ('riscv32imc-unknown-none-elf', 'riscv32imac-unknown-none-elf' and 'riscv32imafc-unknown-none-elf') for 'stable' toolchain
[warn]: Installation for 'RISC-V Rust target' failed, retrying. Error: Failed to Install RISC-V targets for 'stable' toolchain
Error: espup::toolchain::rust::install_riscv_target

  × Failed to Install RISC-V targets for 'stable' toolchain

  • Would you like to work on a fix? [n]

To Reproduce

Steps to reproduce the behavior:

  1. cargo install espup --locked
  2. espup install -l debug

Expected behavior

Installation of esp rust toolchain. Fix the problem : "Failed to Install RISC-V targets for 'stable' toolchain"

Environment

  • OS: [Ubuntu 20.04]
  • espup version: [0.15.1]
  • cargo version: 1.88.0
  • rustup version: 1.28.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions