-
Notifications
You must be signed in to change notification settings - Fork 71
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
Build fails on aarch64-unknown-uefi #108
Comments
It seems like the target has std but apparently no libm? That's... very unusual and probably should be reported upstream (this may or may not be a bug tbf). |
You're right, apparently there is no The issue is with any modulo operation involving The dependency on #!/usr/bin/env cargo
//! ```cargo
//! [dependencies]
//! log = "0.4.20"
//! uefi = "0.24.0"
//! uefi-services = "0.21.0"
//! ```
#![no_main]
#![no_std]
use log::info;
use uefi::prelude::*;
use tiny_skia;
#[entry]
fn main(_image_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
uefi_services::init(&mut system_table).unwrap();
let mut count = 0f32;
loop {
count += 1f32;
count %= 10f32;
info!("{:?}", count);
}
} This compiles for We're not really sure if this is "supposed" to work (i.e. it is a bug in the We found a PR which removes a lot of dependencies on TL;DR: Does |
I confirmed I can reproduce this. It's definitely a bug in the target, probably some tweaks are needed in https://github.com/rust-lang/compiler-builtins. I'll take a look at fixing it :) |
I think this is out of scope. |
Closed by rust-lang/compiler-builtins/pull/553 |
When building the pattern example for
aarch64-unknown-uefi
usingcargo build --target aarch64-unknown-uefi
withtiny-skia = { version = "0.11.2", features = ["no-std-float"] }
, the build fails.Several symbols cannot be found, for example
fmodf
:The text was updated successfully, but these errors were encountered: