AntonBankevich/LJA

Compilation ERROR

francicco opened this issue · 2 comments

Hi,

I'm trying to compile LJA, but I'm getting this error:

-- The CXX compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /sw/lang/gcc-4.8.5/bin/c++
-- Check for working CXX compiler: /sw/lang/gcc-4.8.5/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_CXX: -fopenmp (found version "3.1") 
-- Found OpenMP: TRUE (found version "3.1")  
-- The C compiler identification is GNU 4.8.5
-- Check for working C compiler: /sw/lang/gcc-4.8.5/bin/gcc
-- Check for working C compiler: /sw/lang/gcc-4.8.5/bin/gcc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.5") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found ZLIB: /sw/apps/star-ccm-17.04.008/17.04.008-R8/STAR-View+17.04.008/bin/libz.so (found version "1.2.7") 
CMake Error at src/projects/lja/CMakeLists.txt:6 (target_compile_features):
  target_compile_features The compiler feature "cxx_std_17" is not known to
  CXX compiler

  "GNU"

  version 4.8.5.


-- Configuring incomplete, errors occurred!
See also "/user/work/tk19812/software/LJA-untagged-c539e6b1159980742576/CMakeFiles/CMakeOutput.log".
See also "/user/work/tk19812/software/LJA-untagged-c539e6b1159980742576/CMakeFiles/CMakeError.log".

Not sure what this is about...
Thanks
F

Maybe my Dockerfile fixes your problem: #37

Hi,

I just tried gcc version 7.5.0 and it works.
mamba create -n LJA -c conda-forge cxx-compiler=1.1.0 zlib for gcc v7.5.0 and zlib