warp-ctc
warp-ctc copied to clipboard
unrecognized command line option ‘-fno-plt’ ‘-std=c++17’
I'm using the gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
and g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
.
When I do the cmake .. : I get the following error,
/usr/bin/gcc -march=nocona -mtune=haswell -ftree-vectorize -fPIC
-fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -o
CMakeFiles/cmTC_f37a4.dir/testCCompiler.c.o -c
/scratch/pp1953/cml/attack1/warp-ctc/build/CMakeFiles/CMakeTmp/testCCompiler.c
gcc: error: unrecognized command line option ‘-fno-plt’
Hence I add the following to CMakelists.txt
INCLUDE(CMakeForceCompiler)
CMAKE_FORCE_C_COMPILER(gcc GNU)
CMAKE_FORCE_CXX_COMPILER(g++ GNU)
and cmake starts to works. (with the following warning)
Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
CMake Deprecation Warning at /share/apps/cmake/3.7.1/intel/share/cmake-3.7/Modules/CMakeForceCompiler.cmake:83 (message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
CMakeLists.txt:4 (CMAKE_FORCE_CXX_COMPILER)
Next when I do make
, I get the following error and currently stuck here
Scanning dependencies of target warpctc
[ 20%] Building CXX object CMakeFiles/warpctc.dir/src/ctc_entrypoint.cpp.o
g++: error: unrecognized command line option ‘-std=c++17’
g++: error: unrecognized command line option ‘-fno-plt’
make[2]: *** [CMakeFiles/warpctc.dir/src/ctc_entrypoint.cpp.o] Error 1
make[1]: *** [CMakeFiles/warpc
A small update : When I see the reports of the people who were able to install the ctc correctly :
Their cmake .. shows the following :
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done