我已经编写了一整套生物信息学分析。(https://github.com/iontorrent/TS)它有很多依赖项(犰狳、blas、lapack、atlas 等)。
在编译时我没有错误。问题是创建的某些可执行文件无法正常工作,并在没有任何其他信息的情况下抛出Illegal Instruccion 。我在 CentOS 5.6 上使用 GCC 4.8.2。
我想知道如何调试这些可执行文件,以便检查系统中哪个库或代码有问题。
./tvc
tvc 4.0-7 () - Torrent Variant Caller
Illegal instruction
我认为问题在于 LAPACK/BLAS/CBLAS。我对如何从源代码构建 LAPACK/BLAS 和 CBLAS 感到非常困惑。(在 Centos 5 中 LAPACK/BLAS 的 rpm 版本已过时,此软件套件需要 LAPACK 3.2.1)。我知道如何编译 LAPACK 和 BLAS,我不知道如何安装 CBLAS。
谢谢你。
编辑:
提供这个分析套件的人还提供了一个预装了 Ubuntu 和所有软件的虚拟机。
我看了一下他们的 gcc 版本和配置:
gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5.1'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
我的 GCC 配置:
Configured with: ../configure --prefix=/share/apps/local/gcc/4.8.2 --with-mpfr=/share/apps/local/gcc/4.8.2 --with-gmp=/share/apps/local/gcc/4.8.2 --with-as=/share/apps/local/binutils/2.24/bin/as --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.8.2 (GCC)