-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
hexagon-unknown-none-elf cannot build core, "symbol 'fma' is already defined" #129823
Comments
Thanks for the heads up. I'll fix it. |
Oh, err ... if I can reproduce it. I tried using But I looked around a bit, could this have shown up in 7240da0? If so, it seems plenty old enough to have been in scope for this nightly, so now I'm puzzled why I wouldn't encounter the issue.
|
These hexagon builtins incorrectly created aliases in the global namespace which can (and in at least one case, did) conflict with symbols defined by other programs. This should address the issue reported as rust-lang/rust#129823: Compiling compiler_builtins v0.1.123 Compiling core v0.0.0 (/home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core) Compiling rustc-std-workspace-core v1.99.0 (/home/ben/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core) Compiling byteorder v1.5.0 Compiling zerocopy v0.7.34 error: symbol 'fma' is already defined error: could not compile `compiler_builtins` (lib) due to 1 previous error Also: some of the symbols defined were not just aliases, so those are now qualified with `__hexagon_`. The compiler does not yet emit calls to these particular ones, but if/when it does, it can use the new names.
The But even if I remove them, I still get this error:
|
I'm not quite sure why I can't reproduce the problem. But maybe that's moot because it's clear that my contribution to
You're right - I think this should fix it - rust-lang/compiler-builtins#682 |
Like all things related to linkage, it looks like a codegen-units issue. Behold:
The standard library has a profile override for Lines 14 to 25 in a7399ba
Is this error we're looking at the sort of thing this override is supposed to prevent? It mentions "the system libgcc" and I definitely do not have a hexagon libgcc, if such a thing even exists. I'm trying to figure out if I should be filing a bug about |
The |
…ins, r=tgross35 Update compiler-builtins to 0.1.125 This commit updates the compiler-builtins crate from 0.1.123 to 0.1.125. The changes in this update are: * rust-lang/compiler-builtins#682 * rust-lang/compiler-builtins#678 * rust-lang/compiler-builtins#685 Fixes: rust-lang#129823
In an empty
#![no_std]
Cargo project, runcargo +nightly build -Zbuild-std=core --target=hexagon-unknown-none-elf
:Pinging target maintainer @androm3da (Nobody is expecting you to fix this, just a heads-up)
The text was updated successfully, but these errors were encountered: