spack: Cannot Install Bowtie2


[root@node146 ~]# spack compilers
==> Available compilers
-- gcc rhel6-x86_64 ---------------------------------------------
gcc@6.3.0  gcc@4.4.6  gcc@3.4.6

gcc@4.4.6 error:

/pbtech_mounts/softlib001/apps/EL6/spack/lib/spack/env/gcc/g++ -O3 -m64 -msse2 -funroll-loops -g3 \
                -DCOMPILER_OPTIONS="\"-O3 -m64 -msse2 -funroll-loops -g3 -DPOPCNT_CAPABILITY -DWITH_TBB -DNO_SPINLOCK -DWITH_QUEUELOCK=1\"" -DPOPCNT_CAPABILITY -DWITH_TBB -DNO_SPINLOCK -DWITH_QUEUELOCK=1 \
                -fno-strict-aliasing -DBOWTIE2_VERSION="\"`cat VERSION`\"" -DBUILD_HOST="\"`hostname`\"" -DBUILD_TIME="\"`date`\"" -DCOMPILER_VERSION="\"`/pbtech_mounts/softlib001/apps/EL6/spack/lib/spack/env/gcc/g++ -v 2>&1 | tail -1`\"" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -DBOWTIE_MM  -DBOWTIE2 -DBOWTIE_INSPECT_MAIN  -DBOWTIE_64BIT_INDEX -Wall \
                 -I third_party -I . \
                -o bowtie2-inspect-l bt2_inspect.cpp \
                ccnt_lut.cpp ref_read.cpp alphabet.cpp shmem.cpp edit.cpp bt2_idx.cpp bt2_io.cpp bt2_util.cpp reference.cpp ds.cpp multikey_qsort.cpp limit.cpp random_source.cpp \
                -lreadline -ltermcap -lz -lpthread -ltbb -ltbbmalloc_proxy 
pat.cpp: In member function ‘void CFilePatternSource::open()’:
pat.cpp:466: error: ‘gzbuffer’ was not declared in this scope
pat.cpp: In member function ‘void CFilePatternSource::open()’:
pat.cpp:466: error: ‘gzbuffer’ was not declared in this scope
make: *** [bowtie2-align-l] Error 1
make: *** Waiting for unfinished jobs....
make: *** [bowtie2-align-s] Error 1

gcc@6.3.0 error:

/pbtech_mounts/softlib001/apps/EL6/spack/opt/spack/linux-rhel6-x86_64/gcc-4.4.6/gcc-6.3.0-han2ovjpjdnuwkhtfhugdq66cjkte7q3/include/c++/6.3.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from aligner_seed2.h:103:0,
                 from aligner_driver.h:78,
                 from aligner_driver.cpp:20:
bt2_idx.h:831:3: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
   auto_ptr<FileBuf> fb(new FileBuf(ss.get()));
   ^~~~~~~~
In file included from /pbtech_mounts/softlib001/apps/EL6/spack/opt/spack/linux-rhel6-x86_64/gcc-4.4.6/gcc-6.3.0-han2ovjpjdnuwkhtfhugdq66cjkte7q3/include/c++/6.3.0/memory:81:0,
                 from /pbtech_mounts/softlib001/apps/EL6/spack/opt/spack/linux-rhel6-x86_64/gcc-6.3.0/tbb-2017.5-ww46xo3k5h7uys37gfyquip43l4x3bum/include/tbb/tbb_stddef.h:427,
                 from /pbtech_mounts/softlib001/apps/EL6/spack/opt/spack/linux-rhel6-x86_64/gcc-6.3.0/tbb-2017.5-ww46xo3k5h7uys37gfyquip43l4x3bum/include/tbb/aligned_space.h:24,
                 from /pbtech_mounts/softlib001/apps/EL6/spack/opt/spack/linux-rhel6-x86_64/gcc-6.3.0/tbb-2017.5-ww46xo3k5h7uys37gfyquip43l4x3bum/include/tbb/mutex.h:31,
                 from threading.h:29,
                 from ds.h:30,
                 from random_util.h:25,
                 from aligner_seed2.h:101,
                 from aligner_driver.h:78,
                 from aligner_driver.cpp:20:
/pbtech_mounts/softlib001/apps/EL6/spack/opt/spack/linux-rhel6-x86_64/gcc-4.4.6/gcc-6.3.0-han2ovjpjdnuwkhtfhugdq66cjkte7q3/include/c++/6.3.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
make: *** [bowtie2-align-l] Error 1
make: *** [bowtie2-align-s] Error 1

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 19 (18 by maintainers)

Most upvoted comments

install libtbb-dev ​make ​

So here’s what I think is going on. bowtie2 uses readline. readline needs termcap or ncurses or …

The Makefile has a hardcoded requirement for termcap:

LIBS = -lreadline -ltermcap -lz

The current package ends up picking up the system libraries on my build.

[...]
/blah/spack/v0.0.10/opt/spack/linux-centos7-x86_64/gcc-5.4.0/bowtie2-2.3.1-q6kq2f2sb2o5wylhhm2unrk2dtirvn2g/bin/bowtie2-inspect-l:
        linux-vdso.so.1 =>  (0x00002aaaaaaab000)
        libreadline.so.6 => /lib64/libreadline.so.6 (0x00002aaaaaac1000)
        libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00002aaaaad08000)
[...]

I’ll play with updating the package to require Spack’s readline and resolve things from there.

So I need to add this to the recipe? OK cool. Let me try.

It looks like this package is missing a readline dependency as well.

@adamjstewart Sure. Let me try. I have a separate spack environment for Centos7. Let me make sure I can build bowtie2 there too without an issue.