-
Notifications
You must be signed in to change notification settings - Fork 6
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
Unable to install on Ubuntu 20 (Illegal instruction in VM) #26
Comments
Hello @jcolicchio-soundag, Could you tell me a little more about the compute environment you have, which processor architecture are you on? Which version of cargo and cmake? Could you show me the error that the pre-built binary gives you? |
Definitely! Cargo and Cmake were both updated just today so they are at latest versions (Cmake 3.26.4). After updating cmake and cargo and restarting the terminal, we thought we were able to successfully install from source. After doing this, running modkit --h worked properly, and everything seemed good to go, but when we went to actually run modkit pileup on a bam file we just created from dorado (and sorted), we were back receiving the same initial error message (Illegal instruction (core dumped)). This is the exact same message we got when trying to run modkit downloaded from the prebuilt binary. As far as computer architecture, this is being run on a server node with an Intel Xeon Gold 6148 running Ubuntu 20.04. This was released end of 2017, so definitely is a bit dated. This same node is successfully running dorado. |
@jcolicchio-soundag That's certainly perplexing. Would it be at all possible for you to share the file with me so I can try and reproduce the problem? Looks like you're running in a VM, correct? I don't see AVX, it's possible that's the problem, but just a guess right now. You may try compiling with |
Ok, I tried setting the RUSTFLAGS (just entered the command you posted above) and then re-compiling with cargo install, but to no avail (unless i did this wrong ). I also confirmed that when i run the same command on my local mac with this same bam file and all it works just fine, so it really seems like it is somehow specific to the configuration on our cluster (maybe the CPU not compatible with . Edit: Yes to VM, and just added the bam and bam.bai |
Yup, there's nothing wrong with the file (other than missing alignments). Just to be clear, you're excuting RUSTFLAGS="-C target-feature=-avx" cargo install --path . (so that I confirmed on my linux 20.04 server that your file works with modkit summary
You may also try |
Yeah, tried those and still no luck! I can see that setting those flags are causing it to recompile and overwrite, but still getting the same error. Additionally, even after setting RUST_BACKTRACE=full, we are still getting the same error and the log file does not contain any useful information. |
Does the debug build also fail? Could you also try an older version of modkit (download an <=0.1.6 binary) and see if they also have this problem? Does |
modkit summary does indeed also fail. Im not sure what exactly you are referring to with the debug build, I tried this: RUSTFLAGS="-C target-feature=-avx,-avx2 -C target-cpu=native" cargo build --release , but im not sure if that is what you are referring to. Tomorrow I will try to give a try to one of the earlier versions of modkit. Just to make sure it wasnt a more general issue, I did just install modbamtobed on this same VM and it is working properly. |
You can make a |
Still nothing, I was able to confirm it was running in debug mode, but didnt give any more info sadly! The log: [src/logging.rs::54] [DEBUG] commandline: target/debug/modkit pileup test.bam modkit.bed --log-filepath modkitlog.log |
That's certainly frustrating, but not completely unexpected. From googling, I suspect that cargo is expecting that you have some instructions available that in fact aren't available. Do you have another linux environment you could check on? Maybe the difference would be informative? I'm afraid it's very difficult for me to help debug. |
When attempting to instal modkit on Ubuntu 20 either from the tar or from source we are getting the following error:
Installing mod_kit v0.1.8 (/home/modkit)
Updating crates.io index
Illegal instruction (core dumped)
We tried going back and reinstalling possible prerequisites that could be causing the issue, but to no avail. It is working properly using the exact same commands for us on MacOS.
Thanks for your help,
Jack
The text was updated successfully, but these errors were encountered: