-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Cannot create rv64gc binary anymore since nightly-2019-05-10 #60747
Comments
What is strange (to me) is that most of the objects in the referenced rlib are for
(I've checked and this is the case for all RISC-V 64 and 32 The object it's trying to link against, however, is
|
Does nightly-2019-05-10 work after running |
Yes, this is not an issue with stale files: I even completely removed the |
Presumably rust-lang/compiler-builtins@752e35a |
This fixes a longstanding bug in compiler-builtins where C code was compiled for the riscv targets but when distributed in rust-lang/rust all the C code was actually compiled for x86_64 since there is no configured C compiler for riscv. This was exposed by rust-lang#286 by accident but the underlying cause was somewhat unrelated. For now we forcibly disable C code for riscv targets, and when the C compiler story is sorted out in rust-lang/rust and with `cc-rs` we can reenable. For now just use all the Rust definitions. cc rust-lang/rust#60747
Thanks for the report @laanwj and the cc @mati865, this should be fixed by rust-lang/compiler-builtins#291 |
Great, thanks for the fast fix! |
triage: P-high. (I'm not 100% sure that prioritization is warranted for this target, but given that it may already be fixed, I don't mind err'ing on the side of too-high a priority.) |
This updates to 0.1.13 for `compiler_builtins`, published to fix a few issues. The feature changes here are updated because `compiler_builtins` no longer enables the `c` feature by default but we want to do so through our build still. Closes rust-lang#60747 Closes rust-lang#60782
verified that this problem is gone in |
Here's a minimal reproduction: rv64gc-build-test.tar.gz
This works:
This fails with a long linker error message:
I do not yet know what causes this incompatibility.
The text was updated successfully, but these errors were encountered: