Skip to content

./x.py c library/std not supported #77603

Closed
@tesuji

Description

@tesuji

./x.py check library/std works but ./x.py c library/std doesn't.
The latter command give the following errors:

thread 'main' panicked at 'No option 'all-targets' defined', /home/lzutao/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:799:21

The commit I use is a1dfd24,
which is latest upstream commit at this time.

Meta

Backtrace

stack backtrace:
   0: rust_begin_unwind
             at /rustc/25c8c53dd994acb3f4f7c02fe6bb46076393f8b0/library/std/src/panicking.rs:483
   1: std::panicking::begin_panic_fmt
             at /rustc/25c8c53dd994acb3f4f7c02fe6bb46076393f8b0/library/std/src/panicking.rs:437
   2: getopts::Matches::opt_vals
             at /home/lzutao/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:799
   3: getopts::Matches::opt_present
             at /home/lzutao/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.21/src/lib.rs:813
   4: bootstrap::flags::Flags::parse
             at ./src/bootstrap/flags.rs:494
   5: bootstrap::config::Config::parse
             at ./src/bootstrap/config.rs:531
   6: bootstrap::main
             at ./src/bootstrap/bin/main.rs:14
   7: core::ops::function::FnOnce::call_once
             at /home/lzutao/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

cc @Mark-Simulacrum

@rustbot modify labels: A-rustbuild

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions