Skip to content

Cannot build + install with target = ["thumbv7m-none-eabi"] #85293

@osenft

Description

@osenft

Steps to reproduce:

  1. Get gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2 from the ARM developer website. Install and make available via PATH.
  2. Get https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz and extract.
  3. Copy config.toml.example to config.toml and make the following changes:
    • Set target = ["thumbv7m-none-eabi"].
    • Configure prefix and sysconfigdir to a path in your home directory.
  4. Run python3.9 x.py build. This will be successful.
  5. Run python3.9 x.py install.

Expected behavior:
Rust for target thumbv7m-none-eabi is built and installed.

Actual behavior:
The build/install fails with the following error message:

   Compiling rustc-std-workspace-core v1.99.0 (/home/osk/src/rust-thumb/rustc-nightly-src/library/rustc-std-workspace-core)
   Compiling alloc v0.0.0 (/home/osk/src/rust-thumb/rustc-nightly-src/library/alloc)
    Finished release [optimized] target(s) in 10.00s
Copying stage2 std from stage2 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / thumbv7m-none-eabi)
error: The argument '--package <SPEC>' was provided more than once, but cannot be used multiple times

USAGE:
    cargo rustdoc --features <FEATURES>... --jobs <N> --manifest-path <PATH> --package <SPEC> --release --target <TRIPLE>... -Z <FLAG>...

For more information try --help


command did not execute successfully: "/home/osk/src/rust-thumb/rustc-nightly-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustdoc" "--target" "thumbv7m-none-eabi" "-Zbinary-dep-depinfo" "-j" "12" "--release" "-p" "alloc" "--manifest-path" "/home/osk/src/rust-thumb/rustc-nightly-src/library/alloc/Cargo.toml" "--features" "compiler-builtins-mem compiler-builtins-c" "-p" "core" "--" "--markdown-css" "rust.css" "--markdown-no-toc" "-Z" "unstable-options" "--resource-suffix" "1.54.0" "--index-page" "/home/osk/src/rust-thumb/rustc-nightly-src/src/doc/index.md"
expected success, got: exit code: 1


failed to run: /home/osk/src/rust-thumb/rustc-nightly-src/build/bootstrap/debug/bootstrap install
Build completed unsuccessfully in 0:08:12

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions