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

Compilation on aarch64-linux-android fails #15

Open
Leshuguita opened this issue Oct 11, 2023 · 1 comment
Open

Compilation on aarch64-linux-android fails #15

Leshuguita opened this issue Oct 11, 2023 · 1 comment

Comments

@Leshuguita
Copy link

With the following error:

error[E0308]: mismatched types
  --> /data/data/com.termux/files/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/audiopus_sys-0.2.2/build.rs:83:33
   |
83 | fn default_library_linking() -> bool {
   |    -----------------------      ^^^^ expected `bool`, found `()`
   |    |
   |    implicitly returns `()` as its body has no tail or `return` expression

For more information about this error, try `rustc --explain E0308`.
error: could not compile `audiopus_sys` (build script) due to previous error

It's the same regardless of any enabled features (happens with dynamic and with static)

@la-ninpre
Copy link

I confirm that too. I've got the same error. Looking at build.rs, it seems that it doesn't handle the case when none of the configuration options are set. That's why the build fails, the function body is simply empty in this situation.

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