Repository: bioconda/bioconda-recipes

Issue #27173: bowtie2-align-s: error while loading shared libraries: libtbb.so.2
Created: 2021-03-04T17:37:42Z
Hi everyone!
Posting this incase others get this issue, I'll submit a PR. Just installed bowtie2 and am getting the following:
(bactopia-test) rpetit@staphopia:~$ bowtie2 --version
/local/home/rpetit/miniconda3/envs/bowtie2-latest/bin/bowtie2-align-s: error while loading shared libraries: libtbb.so.2: cannot open shared object file: No such file or directory
(ERR): Description of arguments failed!
Exiting now ...

In this fresh environment the version of tbb installed is:  conda-forge/linux-64::tbb-2021.1.1-h4bd325d_0
Downgrade tbb fixes isssue
Good news is downgrading the tbb version solves the problem.
(bowtie2-latest) rpetit@staphopia:~$ conda install -c conda-forge 'tbb=2020.2'
(bowtie2-latest) rpetit@staphopia:~$ bowtie2 --version
/local/home/rpetit/miniconda3/envs/bowtie2-latest/bin/bowtie2-align-s version 2.4.2
64-bit
Built on default-bf91a638-95fa-4b77-97c5-abccd9855c3e
Mon Nov  2 17:36:36 UTC 2020
Compiler: gcc version 7.5.0 (crosstool-NG 1.24.0.131_87df0e6_dirty)
Options: -O3 -msse2 -funroll-loops -g3 -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /local/home/rpetit/miniconda3/envs/bowtie2-latest/include -fdebug-prefix-map=/opt/conda/conda-bld/bowtie2_1604337828546/work=/usr/local/src/conda/bowtie2-2.4.2 -fdebug-prefix-map=/local/home/rpetit/miniconda3/envs/bowtie2-latest=/usr/local/src/conda-prefix -DPOPCNT_CAPABILITY -DWITH_TBB -std=c++11 -DNO_SPINLOCK -DWITH_QUEUELOCK=1
Sizeof {int, long, long long, void*, size_t, off_t}: {4, 8, 8, 8, 8, 8}

Details about fresh Bowtie2 environment
(bactopia-test) rpetit@staphopia:~$ conda create -n bowtie2-latest -y -c conda-forge -c bioconda bowtie2
Collecting package metadata (current_repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.8.3
  latest version: 4.9.2

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: /local/home/rpetit/miniconda3/envs/bowtie2-latest

  added / updated specs:
    - bowtie2


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    bowtie2-2.4.2              |   py38h1c8e9b9_1        12.7 MB  bioconda
    ------------------------------------------------------------
                                           Total:        12.7 MB

The following NEW packages will be INSTALLED:

  _libgcc_mutex      conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge
  _openmp_mutex      conda-forge/linux-64::_openmp_mutex-4.5-1_gnu
  bowtie2            bioconda/linux-64::bowtie2-2.4.2-py38h1c8e9b9_1
  ca-certificates    conda-forge/linux-64::ca-certificates-2020.12.5-ha878542_0
  certifi            conda-forge/linux-64::certifi-2020.12.5-py38h578d9bd_1
  ld_impl_linux-64   conda-forge/linux-64::ld_impl_linux-64-2.35.1-hea4e1c9_2
  libffi             conda-forge/linux-64::libffi-3.3-h58526e2_2
  libgcc-ng          conda-forge/linux-64::libgcc-ng-9.3.0-h2828fa1_18
  libgomp            conda-forge/linux-64::libgomp-9.3.0-h2828fa1_18
  libstdcxx-ng       conda-forge/linux-64::libstdcxx-ng-9.3.0-h6de172a_18
  ncurses            conda-forge/linux-64::ncurses-6.2-h58526e2_4
  openssl            conda-forge/linux-64::openssl-1.1.1j-h7f98852_0
  perl               conda-forge/linux-64::perl-5.32.0-h36c2ea0_0
  pip                conda-forge/noarch::pip-21.0.1-pyhd8ed1ab_0
  python             conda-forge/linux-64::python-3.8.8-hffdb5ce_0_cpython
  python_abi         conda-forge/linux-64::python_abi-3.8-1_cp38
  readline           conda-forge/linux-64::readline-8.0-he28a2e2_2
  setuptools         conda-forge/linux-64::setuptools-49.6.0-py38h578d9bd_3
  sqlite             conda-forge/linux-64::sqlite-3.34.0-h74cdb3f_0
  tbb                conda-forge/linux-64::tbb-2021.1.1-h4bd325d_0
  tk                 conda-forge/linux-64::tk-8.6.10-h21135ba_1
  wheel              conda-forge/noarch::wheel-0.36.2-pyhd3deb0d_0
  xz                 conda-forge/linux-64::xz-5.2.5-h516909a_1
  zlib               conda-forge/linux-64::zlib-1.2.11-h516909a_1010



Downloading and Extracting Packages
bowtie2-2.4.2        | 12.7 MB   |                                                                                                                                                                                                                                                                                       |   0% bowtie2-2.4.2        | 12.7 MB   | 3                                                                                                                                                                                                                                                                                     |   0% bowtie2-2.4.2        | 12.7 MB   | #################################################                                                                                                                                                                                                                                     |  18% bowtie2-2.4.2        | 12.7 MB   | ########################################################################################################2                                                                                                                                                                             |  38% bowtie2-2.4.2        | 12.7 MB   | ##################################################################################################################################################################################################################################################################################### | 100%

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate bowtie2-latest
#
# To deactivate an active environment, use
#
#     $ conda deactivate

(bactopia-test) rpetit@staphopia:~$ conda activate bowtie2-latest
(bowtie2-latest) rpetit@staphopia:~$ bowtie2 --version
/local/home/rpetit/miniconda3/envs/bowtie2-latest/bin/bowtie2-align-s: error while loading shared libraries: libtbb.so.2: cannot open shared object file: No such file or directory
(ERR): Description of arguments failed!
Exiting now ...

Duplicate issue #28321: Bowtie2 does not work with most recent tbb version
Created: 2021-05-02T21:51:50Z
Cross-posted on the Bowtie2 issue page with no response: BenLangmead/bowtie2#336
The most recent version of TBB  (v2021.1.1) causes a runtime error with the bowtie2-align-s binary available on bioconda.
bowtie2 --version
/home/bkille/packages/miniconda3/bin/bowtie2-align-s: error while loading shared libraries: libtbb.so.2: cannot open shared object file: No such file or directory
(ERR): Description of arguments failed!
Exiting now ...

On another machine I obtained the error
bowtie2 -h
/scratch1/bkille/software/miniconda3/bin/bowtie2-align-s: symbol lookup error: /scratch1/bkille/software/miniconda3/bin/bowtie2-align-s: undefined symbol: _ZN3tbb10interface78internal15task_arena_base19internal_initializeEv

The issue was fixed on both systems by reverting tbb to the previous version tbb=2020.2
Should we change the recipe for bowtie2 to accommodate this?

Closing comment (2021-10-29T09:26:36Z): Closing as duplicate of #27173