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

Windows compatibility #370

Open
jakobnissen opened this issue Nov 23, 2022 · 0 comments
Open

Windows compatibility #370

jakobnissen opened this issue Nov 23, 2022 · 0 comments

Comments

@jakobnissen
Copy link

jakobnissen commented Nov 23, 2022

Dear rust-htslib authors,

When cross-compiling another package depending on this to windows, I find that this package errors. Below is a small snippet of the many errors.

I don't see anything in your README that mentions this package only works for Windows, nor anything in the Cargo.toml. Are these compilation issues unintended?

[12:15:56] error[E0308]: mismatched types
[12:15:56]    --> /opt/x86_64-linux-musl/registry/src/github.com-1ecc6299db9ec823/rust-htslib-0.36.0/src/bam/record.rs:154:16
[12:15:56]     |
[12:15:56] 154 |             l: sam_copy.len() as u64,
[12:15:56]     |                ^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `u64`
[12:15:56] 
[12:15:56]    Compiling bstr v0.2.17
[12:15:56] error[E0308]: mismatched types
[12:15:56]    --> /opt/x86_64-linux-musl/registry/src/github.com-1ecc6299db9ec823/rust-htslib-0.36.0/src/bam/record.rs:155:16
[12:15:56]     |
[12:15:56] 155 |             m: sam_copy.len() as u64,
[12:15:56]     |                ^^^^^^^^^^^^^^^^^^^^^ expected `u32`, found `u64`
[12:15:56] 
[12:15:56]    Compiling bincode v1.3.3
[12:15:56]    Compiling multimap v0.8.3
[12:15:56] error[E0308]: mismatched types
[12:15:56]    --> /opt/x86_64-linux-musl/registry/src/github.com-1ecc6299db9ec823/rust-htslib-0.36.0/src/bam/mod.rs:936:29
[12:15:56]     |
[12:15:56] 936 |             (*rec).l_text = l_text as u64;
[12:15:56]     |             -------------   ^^^^^^^^^^^^^ expected `u32`, found `u64`
[12:15:56]     |             |
[12:15:56]     |             expected due to the type of this binding
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

1 participant