Installation error: timespec_get' has not been declared in '::'

Issue #170 wontfix
monica steffi matchado created an issue

Hi,

Thank you for the wonderful tool. I am using MetaBAT for the first time. While installing, I am getting the following error:

[ 32%] Built target zlib
[ 64%] Built target htslib
[ 68%] Checking the git repository for changes...
[ 68%] Built target check_git_repository
[ 72%] Building CXX object src/CMakeFiles/metabat1.dir/metabat1.cpp.o
In file included from /dss/dsshome1/0F/miniconda3/x86_64-conda-linux-gnu/include/c++/11.2.0/bits/locale_facets_nonio.h:39,
from /dss/dsshome1/0F/ra78zut/miniconda3/x86_64-conda-linux-gnu/include/c++/11.2.0/locale:41,
from /dss/dsshome1/0F/ra78zut/miniconda3/include/boost/algorithm/string/classification.hpp:15,
from /dss/dsshome1/0F/ra78zut/miniconda3/include/boost/algorithm/string/trim.hpp:23,
from /dss/dsshome1/0F/ra78zut/miniconda3/include/boost/algorithm/string.hpp:19,
from /dss/dssfs02/lwp-dss-0001/u7b03/u7b03-dss-0000/metabat/src/metabat1.h:38,
from /dss/dssfs02/lwp-dss-0001/u7b03/u7b03-dss-0000/metabat/src/metabat1.cpp:1:
/dss/dsshome1/0F/miniconda3/x86_64-conda-linux-gnu/include/c++/11.2.0/ctime:80:11: error: 'timespec_get' has not been declared in '::'
80 | using ::timespec_get;
| ^~~~
make[2]: *** [src/CMakeFiles/metabat1.dir/build.make:76: src/CMakeFiles/metabat1.dir/metabat1.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:208: src/CMakeFiles/metabat1.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Could you please guide me how to solve this?

Comments (3)

  1. Rob Egan

    Please include the full command line and version you are testing against.

    I see some references to conda and please know that that was generated by a third party and we have no influence on how it behaves. Presently, the only supported ways of installing are building from the source via cmake and using the Docker container (https://hub.docker.com/r/metabat/metabat)

  2. Log in to comment