-
Notifications
You must be signed in to change notification settings - Fork 28
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
Compilation Error on M2 MacOS 14 #92
Comments
Hi @patrickelectric, thanks for your quick reply! |
I only have a mac m1 but I can compile fine here, from the issues that you are pointing, may be a dependence break or something. |
@patrickelectric got a similar issue on Linux. Tried to repro on:
I'm not a Rust coder so I have a limited way of debugging the build, but the underlying issue seems to be some change done in Specifically this: https://github.com/chronotope/chrono/releases/tag/v0.4.30 I tried pinning it to |
Hi @landswellsong I was able to build using ubuntu 22.04 from a fresh installation: root@7ab75cc00ae8:/mavlink2rest# history |
Hello @patrickelectric This does work. I think That being said it seems that
May there be a merit of bumping it to v4 in this project's dependencies? Seems like that would solve this issue and apparently |
Yes, that would be possible, but timewise is tricky. At the moment I'm working on other projects, but be free to collaborate with it. |
Compiling ioctl-rs v0.1.6
error[E0277]: cannot subtract
chrono::Duration
fromTm
--> /Users/joa/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-1.0.1/src/cookie/jar.rs:224:44
|
224 | cookie.set_expires(time::now() - Duration::days(365));
| ^ no implementation for
Tm - chrono::Duration
|
= help: the trait
Sub<chrono::Duration>
is not implemented forTm
= help: the following other types implement trait
Sub<Rhs>
:<Tm as Subtime::Duration>
Compiling lock_api v0.3.4
error[E0308]: mismatched types
--> /Users/joa/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-http-1.0.1/src/cookie/mod.rs:736:40
|
736 | self.set_expires(time::now() + twenty_years);
| ^^^^^^^^^^^^ expected
time::Duration
, foundchrono::Duration
|
= note:
chrono::Duration
andtime::Duration
have similar names, but are actually distinct typesnote:
chrono::Duration
is defined in cratechrono
--> /Users/joa/.cargo/registry/src/index.crates.io-6f17d22bba15001f/chrono-0.4.31/src/duration.rs:55:1
|
55 | pub struct Duration {
| ^^^^^^^^^^^^^^^^^^^
note:
time::Duration
is defined in cratetime
--> /Users/joa/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.1.45/src/duration.rs:45:1
|
45 | pub struct Duration {
| ^^^^^^^^^^^^^^^^^^^
how can I fix this? And what file type are the binaries for macOS in the releases?
The text was updated successfully, but these errors were encountered: