Skip to content
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

can't compile on apple silicon M1 #24

Closed
thomvil opened this issue Nov 27, 2020 · 3 comments
Closed

can't compile on apple silicon M1 #24

thomvil opened this issue Nov 27, 2020 · 3 comments

Comments

@thomvil
Copy link

thomvil commented Nov 27, 2020

Compilation fails because of crate ring-fork-dtool with

error[E0308]: mismatched types
   --> /Users/thomvil/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-fork-dtool-0.16.13/src/cpu.rs:187:56
    |
187 |         pub fn available(&self, _: super::Features) -> bool {
    |                ---------                               ^^^^ expected `bool`, found `()`
    |                |
    |                implicitly returns `()` as its body has no tail or `return` expression

Could it be possible you need to explicitly support aarch64-apple-darwin? I think the original crate ring could already have a solution that would suffice? See this commit

@guoxbin
Copy link
Owner

guoxbin commented Nov 27, 2020

Thanks for your information.
I will follow it.

@guoxbin
Copy link
Owner

guoxbin commented Sep 12, 2021

Could you help check if the latest version fixed the compiling issue? @thomvil
Sorry for been late.

@guoxbin guoxbin closed this as completed Oct 15, 2021
@thomvil
Copy link
Author

thomvil commented Oct 15, 2021

From me sorry as well for the late response.

Installing from cargo with cargo install dtool still fails, but with a different error.

This time a linking error is thrown: error: linking with 'cc' failed: exit status: 1.

Trying to build a checked-out repo, adds this note

note: ld: in ~/dtool/target/debug/deps/libcrypto-d134af8d46f67537.rlib(util_helpers.o), archive member 'util_helpers.o' with length 3432 is not mach-o or llvm bitcode for architecture arm64

I would guess this is related to the rust-crypto-crate?

@guoxbin guoxbin reopened this Oct 18, 2021
@guoxbin guoxbin closed this as completed Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants