-
Notifications
You must be signed in to change notification settings - Fork 83
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
error adding symbols: File format not recognized #279
Comments
How do you compile your example? Can you show us the commands you use? |
Thanks for the help here. Below is my toml file
The command I used for compiling is simply |
Have you tried with |
I got this error when running either
It feels like due to a permission problem? |
Yes, looks like some type of issue with your Docker installation/setup, as far as I can see :-S |
Oh, let me clarify a bit more. I was running without docker. I am working on a HPC server. Is docker a must to use rust-htslib? |
@svm-zhang I have had issues with reading zipped files on centos (6, 7 at leasr); the bgzip errors seems to indicate something similar. Do you get the same error if you try reading a sam file instead of bam? |
@sitag, yes, I got the same error. I also tried to download the |
@svm-zhang I would have thought that CentOS does have a bunch of weird issues with outdated libraries. If you have access to a ubuntu node then that would help. Docker is not an option in HPC as it want to run under root. But you can try singularity. Alternatively, you could also try building with target |
@sitag, thanks for the suggestions. The same code used to work fine on the old server and I was using rustc v1.36.0 and rust-htslib v0.24.0. Now we switched to a new server... sigh... I just checked the log under hts-sys and i believe it is the right version that was pulled in. I will wait a bit longer to see if the developers could help me figure this out. Thank you again. |
I think I somehow figured it out. Here is what I did.
Using this setting, now my code can be compiled and ran. However, I am not sure if this would break someday. But for now, I am gonna enjoy it :) |
Oh, I thought I fixed that one in #231 :/ ... I'd keep working on #275 to get it properly fixed and on CI so that we don't hit a regression again, sorry for the hassle @svm-zhang :-S |
@brainstorm , no worries at all. I simply try to help. I have been enjoying the rust-htslib a lot :) |
Hello,
I am very new to rust and rust-htslib.
I am trying to use rust-htslib to extract alignment information from BAM files for my project. I keep getting "error adding symbols: File format not recognized" errors when running cargo run (see below). I am using the example from: https://docs.rs/rust-htslib/0.32.0/rust_htslib/. The error seems to be related to decompression I guess? I am able to build basic projects such as "hello world". I am on CentOS 8.2.2004. Any help would be much appreciated!
target/debug/deps/libhts_sys-26e72ed60472137f.rlib(bgzf.o): unable to initialize decompress status for section .debug_info
target/debug/deps/libhts_sys-26e72ed60472137f.rlib: error adding symbols: File format not recognized
Simo
The text was updated successfully, but these errors were encountered: