Skip to content

Failed to Install RISC-V targets for 'stable' toolchain #533

@wcampbell0x2a

Description

@wcampbell0x2a

Bug description

$ espup install -l debug
[debug]: Call<Prepare>
[debug]: GET https://crates.io/******
[debug]: Resolved: ArrayVec { len: 12, arr: [18.238.25.56:443, 18.238.25.70:443, 18.238.25.122:443, 18.238.25.127:443, [2600:9000:25f5:2600:c:7ed3:240:93a1]:443, [2600:9000:25f5:4e00:c:7ed3:240:93a1]:443, [2600:9000:25f5:da00:c:7ed3:240:93a1]:443, [2600:9000:25f5:7000:c:7ed3:240:93a1]:443, [2600:9000:25f5:3c00:c:7ed3:240:93a1]:443, [2600:9000:25f5:1600:c:7ed3:240:93a1]:443, [2600:9000:25f5:fe00:c:7ed3:240:93a1]:443, [2600:9000:25f5:e600:c:7ed3:240:93a1]:443] }
[debug]: Connected TcpStream to 18.238.25.56:443
[debug]: No cached session for DnsName("crates.io")
[debug]: Not resuming any session
[debug]: Wrapped TLS
[debug]: Call<SendRequest>
[debug]: Request { method: GET, uri: https://crates.io/******, version: HTTP/1.1, headers: {"accept-encoding": "gzip", "user-agent": "ureq/3.1.2", "accept": "*/*", "host": "crates.io"} }
[debug]: Using ciphersuite TLS13_AES_128_GCM_SHA256
[debug]: Not resuming
[debug]: TLS1.3 encrypted extensions: ServerExtensions { server_name_ack: (), unknown_extensions: {}, .. }
[debug]: ALPN protocol is None
[debug]: Call<RecvResponse>
[debug]: Call<RecvBody>
[debug]: Response { status: 200, version: HTTP/1.1, headers: {"content-type": "application/json", "transfer-encoding": "chunked", "connection": "keep-alive", "content-encoding": "gzip", "date": "Thu, 04 Dec 2025 04:20:38 GMT", "server": "Heroku", "<NOTICE>": "14 HEADERS ARE REDACTED"} }
[debug]: Decoding gzip
[debug]: Call<Cleanup>
[debug]: Return to pool: PoolKey { scheme: "https", authority: crates.io, proxy: None }
[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.90.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.90.0.0
[debug]: Arguments:
            - Export file: "/home/wcampbell/export-esp.sh"
            - Host triple: x86_64-unknown-linux-gnu
            - LLVM Toolchain: Llvm { extended: false, file_name_libs: Some("libs-clang-esp-20.1.1_20250829-x86_64-linux-gnu.tar.xz"), file_name_full: None, host_triple: X86_64UnknownLinuxGnu, path: "/home/wcampbell/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-20.1.1_20250829", repository_url: "https://github.com/espressif/llvm-project/releases/download/esp-20.1.1_20250829", version: "esp-20.1.1_20250829" }
            - Stable version: "stable"
            - Rust Toolchain: Some(XtensaRust { cargo_home: "/home/wcampbell/.cargo", dist_file: "rust-1.90.0.0-x86_64-unknown-linux-gnu.tar.xz", dist_url: "https://github.com/esp-rs/rust-build/releases/download/v1.90.0.0/rust-1.90.0.0-x86_64-unknown-linux-gnu.tar.xz", host_triple: "x86_64-unknown-linux-gnu", path: "/home/wcampbell/.rustup/toolchains/esp", rustup_home: "/home/wcampbell/.rustup", src_dist_file: "rust-src-1.90.0.0.tar.xz", src_dist_url: "https://github.com/esp-rs/rust-build/releases/download/v1.90.0.0/rust-src-1.90.0.0.tar.xz", toolchain_destination: "/home/wcampbell/.rustup/toolchains/esp", version: "1.90.0.0" })
            - Skip version parsing: false
            - Targets: {ESP32P4, ESP32C2, ESP32C6, ESP32S2, ESP32S3, ESP32C3, ESP32H2, ESP32}
            - Toolchain path: "/home/wcampbell/.rustup/toolchains/esp"
            - Toolchain version: None
[info]: Checking Rust installation
[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/wcampbell/.rustup/toolchains/esp/xtensa-esp-elf/esp-15.2.0_20250920
[warn]: Previous installation of LLVM exists in: '/home/wcampbell/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-20.1.1_20250829'. Reusing this installation
[warn]: Previous installation of GCC exists in: '/home/wcampbell/.rustup/toolchains/esp/xtensa-esp-elf/esp-15.2.0_20250920'. Reusing this installation
[info]: Creating symlink between '/home/wcampbell/.rustup/toolchains/esp/xtensa-esp32-elf-clang/esp-20.1.1_20250829/esp-clang/lib' and '/home/wcampbell/.espup/esp-clang'
[warn]: Previous installation of Xtensa Rust 1.90.0.0 exists in: '/home/wcampbell/.rustup/toolchains/esp'. Reusing this installation
[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

Environment

  • OS: Arch Linux
  • espup version: 0.16.0

Additional context

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