Skip to content

Compiler issue on AArch64 Linux #425

@jakobnissen

Description

@jakobnissen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions