cargo build error while compiling smithay

The exact issue is
error[E0277]: the trait bound `Boottime: ClockSource` is not satisfied
error[E0277]: the trait bound `Boottime: ClockSource` is not satisfied
with rust 1.69
No description
29 Replies
Nova
Nova17mo ago
@i509VCB any ideas? :p ahhh
#[cfg(target_os = "linux")]
impl ClockSource for Boottime {
fn id() -> libc::clockid_t {
libc::CLOCK_BOOTTIME
}
}

#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))]
impl ClockSource for Boottime {
fn id() -> libc::clockid_t {
libc::CLOCK_UPTIME
}
}
#[cfg(target_os = "linux")]
impl ClockSource for Boottime {
fn id() -> libc::clockid_t {
libc::CLOCK_BOOTTIME
}
}

#[cfg(any(target_os = "freebsd", target_os = "dragonfly"))]
impl ClockSource for Boottime {
fn id() -> libc::clockid_t {
libc::CLOCK_UPTIME
}
}
the target isn't seen as linux
i509VCB
i509VCB17mo ago
Yeah I was about to ask if there was conditional compilation somewhere
Nova
Nova17mo ago
guess we have to patch smithay then... but how?
i509VCB
i509VCB17mo ago
Send a pull request, I assume android supports one or the other
Nova
Nova17mo ago
but it's not using either one
i509VCB
i509VCB17mo ago
Hmm? CLOCK_UPTIME isn't in bionic?
Nova
Nova17mo ago
oh wait i see add more targets to the attributes sure
i509VCB
i509VCB17mo ago
Yeah just another target for the cfg attribute
micimize
micimize17mo ago
Ahh ok, that makes sense
Nova
Nova17mo ago
idk what to do here :S
micimize
micimize17mo ago
GitHub
Build errors on Android · Issue #1025 · Smithay/smithay
Hi , I was trying to build smithay as a dependency of https://github.com/stardustxr/server on Android/termux, and got a compiler error specifically from this block where android is not included in ...
micimize
micimize17mo ago
This specific build issue might be a bit of a red herring for total lack of android support: https://github.com/Smithay/smithay/pull/711. IDK how much stardust uses from simthay / if the code it materially depends on is platform-agnostic.
Nova
Nova17mo ago
smithay is how we interact with 2D apps it's a Wayland compositor
micimize
micimize17mo ago
Ok, so we basically need it to have full Android support to get stardust working on android
Nova
Nova17mo ago
maybe? I'm not sure I'm not much of an android expert what android device did you want to run stardust on anyway?
Want results from more Discord servers?
Add your server