-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local tests fail on x86-64 Linux since rust-lang/cc-rs#991 #1012
Comments
That's indeed strange, our CI runs on Linux and it seems to be fine in GHA |
It seems the only test failure is in the new test.
Then: $ pwd
/home/jubilee/rust/cc-rs/target/debug/gcc-test8j2viv
$ ls .
arm-linux-androideabi-ar arm-linux-androideabi-clang out0
$ file arm-linux-androideabi-ar
arm-linux-androideabi-ar: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=de460af44ed713574f4a99eddcef8b23598e40b5, for GNU/Linux 4.4.0, with debug_info, not stripped
$ file arm-linux-androideabi-clang
arm-linux-androideabi-clang: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=de460af44ed713574f4a99eddcef8b23598e40b5, for GNU/Linux 4.4.0, with debug_info, not stripped
$ ls
arm-linux-androideabi-ar arm-linux-androideabi-clang out0
$ cat out0
-O2
-DANDROID
-ffunction-sections
-fdata-sections
-fPIC
-o
/home/jubilee/rust/cc-rs/target/debug/gcc-test8j2viv/d1fba762150c532c-foo.o
-c
foo.c No idea what I am possibly missing. |
We don't shim What I don't understand is why it is trying to use Lines 3172 to 3176 in f36d6a7
If so, then the fix would be to shim |
confirmed so, on my machine. |
I have a potential fix (shimming |
now all tests pass on my machine, thanks! |
This comment was marked as off-topic.
This comment was marked as off-topic.
This Lines 3740 to 3743 in 0195ebf
so the current output is (incorrect):
^ where you can't see the test that's causing the problem ( However output with
if it were a
diff --git a/src/lib.rs b/src/lib.rs
index b371051..1163b3c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -3738,8 +3738,8 @@ impl Default for Build {
}
fn fail(s: &str) -> ! {
- eprintln!("\n\nerror occurred: {}\n\n", s);
- std::process::exit(1);
+ panic!("\n\nerror occurred: {}\n\n", s);
+ //std::process::exit(1);
}
#[derive(Clone, Copy, PartialEq)] |
Bisected a regression in running tests on main to 328f8d8
I run x86-64 Linux and
cargo test
fails here. Not clear why. If the tests now require something be installed that wasn't installed before, that's a documentation bug, I would think.cc @dpaoliello @NobodyXu
It is possible this may be related to the failure to upgrade cc-rs for rust-lang/rust's bootstrap to 1.0.90 in rust-lang/rust#122504 but I don't know if it is.
The text was updated successfully, but these errors were encountered: