Closed
Description
mingw-w64 toolchain doesn't have cc
executable literally (it has gcc
for C code), but in all cases except for rustbuild tests the C compiler is correctly found, so supposedly rustbuild tests do something wrong.
The workaround is to copy or symlink gcc
as cc
somewhere in PATH
.
running 8 tests
test builder::__test::dist_with_same_targets_and_hosts ... FAILED
test builder::__test::build_with_target_flag ... FAILED
test builder::__test::build_default ... FAILED
test builder::__test::dist_with_target_flag ... FAILED
test builder::__test::dist_with_hosts ... FAILED
test builder::__test::dist_with_targets_and_hosts ... FAILED
test builder::__test::dist_with_targets ... FAILED
test builder::__test::dist_baseline ... FAILED
failures:
---- builder::__test::dist_with_same_targets_and_hosts stdout ----
thread 'builder::__test::dist_with_same_targets_and_hosts' panicked at '
couldn't find required command: "cc"
', bootstrap\sanity.rs:66:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.
---- builder::__test::build_with_target_flag stdout ----
thread 'builder::__test::build_with_target_flag' panicked at '
couldn't find required command: "cc"
', bootstrap\sanity.rs:66:13
---- builder::__test::build_default stdout ----
thread 'builder::__test::build_default' panicked at '
couldn't find required command: "cc"
', bootstrap\sanity.rs:66:13
---- builder::__test::dist_with_target_flag stdout ----
thread 'builder::__test::dist_with_target_flag' panicked at '
couldn't find required command: "cc"
', bootstrap\sanity.rs:66:13
---- builder::__test::dist_with_hosts stdout ----
thread 'builder::__test::dist_with_hosts' panicked at '
couldn't find required command: "cc"
', bootstrap\sanity.rs:66:13
---- builder::__test::dist_with_targets_and_hosts stdout ----
thread 'builder::__test::dist_with_targets_and_hosts' panicked at '
couldn't find required command: "cc"
', bootstrap\sanity.rs:66:13
---- builder::__test::dist_with_targets stdout ----
thread 'builder::__test::dist_with_targets' panicked at '
couldn't find required command: "cc"
', bootstrap\sanity.rs:66:13
---- builder::__test::dist_baseline stdout ----
thread 'builder::__test::dist_baseline' panicked at '
couldn't find required command: "cc"
', bootstrap\sanity.rs:66:13