-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Link errors when compiling for i386 with +soft-float #62729
Comments
Going to be working on this. Nevermind, went through the intrinsics in |
This issue also affects Build fails with At least the workaround is simple enough: #[no_mangle]
fn fminf(a: f32, b: f32) -> f32 {
if a < b {
a
} else {
b
}
}
#[no_mangle]
fn fmaxf(a: f32, b: f32) -> f32 {
if a > b {
a
} else {
b
}
} |
These are exposed in core::f32 close rust-lang#354 c.f. rust-lang/rust#62729 Patch from @whitequark (https://paste.debian.net/1168430/)
These are exposed in core::f32 close #354 c.f. rust-lang/rust#62729 Patch from @whitequark (https://paste.debian.net/1168430/)
These are exposed in core::f32 close rust-lang#354 c.f. rust-lang/rust#62729 Patch from @whitequark (https://paste.debian.net/1168430/)
Same problem seems to appear on |
Since yesterday I'm investigating a similar bug and finally came to this issue just now. Maybe my issue and this one are linked (at least partially). I'm getting a similar error response when compiling a certain library for a x86_64 bare-metal target with My issue on Rust: #92760 The workaround from @bugadani solves the build problems. |
It appears that since #61408, rust now requires
fminf
andfmaxf
functions to be present when compiling for i386 with +soft-float (using a custom target JSON). However, compiler-builtins only expose those functions for some targets, which don't include x86.Maybe compiler-builtins should include a
target-feature = "soft-float"
in the list of conditions to enable the math module?The text was updated successfully, but these errors were encountered: