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

Compiler issue on AArch64 Linux #425

Open
jakobnissen opened this issue Mar 19, 2024 · 1 comment
Open

Compiler issue on AArch64 Linux #425

jakobnissen opened this issue Mar 19, 2024 · 1 comment

Comments

@jakobnissen
Copy link

jakobnissen commented Mar 19, 2024

This error occurs only on Linux and ARMv8. It works fine on M1 MacOS. Error:

[08:00:56]    Compiling rust-htslib v0.44.1
[08:00:57] error[E0308]: mismatched types
[08:00:57]     --> /opt/x86_64-linux-musl/registry/src/index.crates.io-6f17d22bba15001f/rust-htslib-0.44.1/src/bam/record.rs:2324:17
[08:00:57]      |
[08:00:57] 2319 |             let ret = hts_sys::bam_mods_query_type(
[08:00:57]      |                       ---------------------------- arguments to this function are incorrect
[08:00:57] ...
[08:00:57] 2324 |                 &mut canonical,
[08:00:57]      |                 ^^^^^^^^^^^^^^ expected `*mut u8`, found `&mut i8`
[08:00:57]      |
[08:00:57]      = note:    expected raw pointer `*mut u8`
[08:00:57]              found mutable reference `&mut i8`
[08:00:57] note: function defined here
[08:00:57]     --> /workspace/srcdir/CoverM/target/aarch64-unknown-linux-musl/release/build/hts-sys-9926615689a35892/out/bindings.rs:9439:12
[08:00:57]      |
[08:00:57] 9439 |     pub fn bam_mods_query_type(
[08:00:57]      |            ^^^^^^^^^^^^^^^^^^^
[08:00:57] 
[08:00:57] For more information about this error, try `rustc --explain E0308`.

This appears to be the same issue as #352 - however, notice that the error occurs on rust-htslib 0.44.1, where the error ought to be fixed. Maybe the fix didn't get in properly?

@jakobnissen jakobnissen changed the title Compiler issue on ARMv8 Compiler issue on AArch64 Linux Mar 19, 2024
@ghuls
Copy link

ghuls commented Mar 20, 2024

@jakobnissen I think it was recently fixed in master: #415

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