钢铁侠
11/09/2018, 6:24 AM-- The CXX compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- broken
CMake Error at /home/xxxx/Desktop/clion-2018.2.4/bin/cmake/linux/share/cmake-3.12/Modules/CMakeTestCXXCompiler.cmake:45 (message):
The C++ compiler
"/usr/bin/c++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/xxxx/osquery/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_40f52/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_40f52.dir/build.make CMakeFiles/cmTC_40f52.dir/build
gmake[1]: Entering directory `/home/xxxx/osquery/cmake-build-debug/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_40f52.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -std=c++14 -o CMakeFiles/cmTC_40f52.dir/testCXXCompiler.cxx.o -c /home/xxxx/osquery/cmake-build-debug/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
c++: error: unrecognized command line option ‘-std=c++14’
gmake[1]: *** [CMakeFiles/cmTC_40f52.dir/testCXXCompiler.cxx.o] Error 1
gmake[1]: Leaving directory `/home/xxxx/osquery/cmake-build-debug/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_40f52/fast] Error 2