Skip to content

Immediately Terminates with "'rustc --print target-list' failed" #526

@pr0me

Description

@pr0me

Hey,

after installing cross, any attempt on using it for building terminates with

$ cross build --target armv7-unknown-linux-gnueabihf --verbose
error: `"rustc" "--print" "target-list"` failed with exit code: Some(1)
   0: error_chain::backtrace::imp::InternalBacktrace::new
   1: <std::process::Command as cross::extensions::CommandExt>::status_result
   2: <std::process::Command as cross::extensions::CommandExt>::run_and_get_stdout
   3: cross::main
   4: std::sys_common::backtrace::__rust_begin_short_backtrace
   5: main
   6: __libc_start_main
   7: _start

I tested this for different programs and different targets.

My environment:

cross 0.2.1
cargo 1.51.0-nightly (ab64d1393 2021-02-10)

# my local rustc
rustc 1.52.0-nightly (5fa22fe6f 2021-02-14)
rustup 1.23.1 (3df2264a9 2020-11-30)

docker 20.10.1
runc 1.0.0-rc92

Any idea on how to fix this is appreciated, thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpending-closeIssue will be closed if no further comments

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions