-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Description
Steps to reproduce:
- 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
. - Get https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz and extract.
- Copy
config.toml.example
toconfig.toml
and make the following changes:- Set
target = ["thumbv7m-none-eabi"]
. - Configure
prefix
andsysconfigdir
to a path in your home directory.
- Set
- Run
python3.9 x.py build
. This will be successful. - 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
newAM
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)