Closed fthommen closed 7 years ago
Note the wrong - because too old - compiler selected by cmake (/usr/bin/cc, /usr/bin/c++). How can this > be fixed?
Maybe try this one?
CC=/ibios/tbi_cluster/13.1/x86_64/gcc/gcc-6.x/bin/gcc CXX=/ibios/tbi_cluster/13.1/x86_64/gcc/gcc-6.x/bin/c++ cmake -DCMAKE_PREFIX_PATH=/tmp/flexbar-test -DCMAKE_CXX_FLAGS="-I/ibios/tbi_cluster/13.1/x86_64/tbb/tbb-2017.1/include" -DCMAKE_C_COMPILER=`which gcc`
Yes, I also see:
cd /tmp/flexbar-2.7.0_build/src && /usr/bin/x86_64-pc-linux-gnu-g++ -DSEQAN_HAS_BZIP2=1 -DSEQAN_HAS_ZLIB=1 -I/tmp/flexbar-2.7.0/include -I/usr/include/seqan-2.2 -DNDEBUG -O2 -pipe -maes -mpclmul -mpopcnt -mavx -march=native -std=c++11 -o CMakeFiles/flexbar.dir/Flexbar.cpp.o -c /tmp/flexbar-2.7.0/src/Flexbar.cpp
In file included from /usr/include/seqan-2.2/seqan/basic.h:42:0,
from /tmp/flexbar-2.7.0/src/Flexbar.h:17,
from /tmp/flexbar-2.7.0/src/Flexbar.cpp:22:
/usr/include/seqan-2.2/seqan/platform.h:155:6: error: #error SeqAn requires C++14! You must compile your application with -std=c++14, -std=gnu++14 or -std=c++1y.
#error SeqAn requires C++14! You must compile your application with -std=c++14, -std=gnu++14 or -std=c++1y.
but adding -std=c++14
does not help because cmake anyway adds afterwards its own -std=c++11
Is this issue still prevalent, also with version 3.0 of Flexbar?
Trying to compile flexbar I am consistently running into compilation issues. I'm using -DCMAKE_CXX_FLAGS to point to the location of our TBB installation and to add the -std=c++14 to the compiler. However the compilation consistently fails and the problem seems to be, that the wrong compiler is uses:
but
Note the wrong - because too old - compiler selected by cmake (/usr/bin/cc, /usr/bin/c++). How can this be fixed?
frank