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

related to: Illegal instruction error when running kallisto index #454

Open
molly-hetheringtonrauth opened this issue Aug 5, 2024 · 7 comments

Comments

@molly-hetheringtonrauth
Copy link

Hi,

This seems to be related to issue #399 which had been closed, but I'm unsure what the solution was as I continue to get errors.

I installed kallisto from conda which installed kallisto version 0.51.0. I'm getting the "Illegal instruction (core dumped)" error. I've uninstalled kallisto from conda and then tried to install from source; however I'm running into an error. When I run the cmake .. command I get the following error:

CMake Error: The source directory "/home/molly_hetheringtonrauth/kallisto" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

I've tried multiple source files - 0.46.0, 050.0, and the latest version by cloning the repo directory from github and each time get the same error. I'm using Ubuntu 18.04.

I'm not sure how to get kallisto installed so that it works.

@Yenaled
Copy link
Collaborator

Yenaled commented Aug 6, 2024

See https://github.com/pachterlab/kallisto/blob/master/INSTALL.md

(You need to have a build directory)

@molly-hetheringtonrauth
Copy link
Author

I followed those instructions exactly; I'm not sure what happened. I ended up building a docker image for Kallisto and was able to run the program from the container.

@skudashev
Copy link

skudashev commented Aug 13, 2024

Hello, thank you for the new lr option. I tried installing kallisto on our HPC using a singularity def file

BootStrap: yum
OSVersion: 9
MirrorURL: http://yum-repos.hpccluster/AlmaLinux/9/os/$basearch/
Include: yum

%labels
    Name kallisto
    Version 0.51.0
    Description Kallisto is a program for quantifying abundances of transcripts from RNA-Seq data, or more generally of target sequences using high-throughput sequencing reads.
%post
    # Create necessary directory
    mkdir -p /opt/software

    # Install dependencies
    yum -y install wget tar gzip git cmake gcc gcc-c++ make zlib-devel bzip2-devel

    # Clone the Kallisto repository
    cd /opt/software
    git clone https://github.com/pachterlab/kallisto

    # Build and install Kallisto
    cd kallisto
    mkdir build
    cd build
    cmake .. -DMAX_KMER_SIZE=64
    make
    make install

%environment
    # Set the PATH to include the installed Kallisto binary
    export PATH=/opt/software/kallisto/build/src:$PATH

%runscript
    # Default command to run when container starts
    kallisto --version
   

But I get the same error:

[build] loading fasta file filtered.fasta
[build] k-mer length: 63
[build] warning: clipped off poly-A tail (longer than 10)
        from 1172 target sequences
[build] warning: replaced 1 non-ACGUT characters in the input sequence
        with pseudorandom nucleotides
/var/spool/slurmd/job2851502/slurm_script: line 17: 855738 Illegal instruction     (core dumped) singularity exec $kallisto kallisto index

Could you please help me understand how I could set the build directory correctly in this case?
Sofia

@skudashev
Copy link

Adding a constraint #SBATCH --constraint=avx512 helped it run further down and start creating the index file but it still errored out:

[build] loading fasta file filtered.fasta
[build] k-mer length: 63
[build] warning: clipped off poly-A tail (longer than 10)
        from 1172 target sequences
[build] warning: replaced 1 non-ACGUT characters in the input sequence
        with pseudorandom nucleotides
[build] building MPHF
/var/spool/slurmd/job2851704/slurm_script: line 18: 1141443 Illegal instruction     (core dumped) singularity exec $kallisto kallisto index -k 63 -t 20 -i $workdir/kallisto_index $fasta

@skudashev
Copy link

I have since managed to install a working image with -DENABLE_AVX2=OFF -DCOMPILATION_ARCH=OFF.

@af8
Copy link

af8 commented Sep 26, 2024

Hi @skudashev

where exactly must we set these flags please ?

Compiled 0.51.1 from source in a debian 11 docker and got the same issue when trying to build an index.

Thanks

@Yenaled
Copy link
Collaborator

Yenaled commented Sep 26, 2024

@af8

git clone https://github.com/pachterlab/kallisto
cd kallisto
mkdir build
cd build
cmake .. -DENABLE_AVX2=OFF -DCOMPILATION_ARCH=OFF
make
make install

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

4 participants