-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I tried compiling with GCC 4.8.5 and CMake 3.5.2. First, cmake did not correctly detect my GCC version, and failed with error "GCC version must be at least 4.7!". I commented out the if clause testing for GCC at least 4.7 and continued, but then compilation failed with:
-- Build files have been written to: /global/home/users/hannsode/pkgs/mgra/build
15:34:37 build$ make
[ 5%] Building CXX object src/utils/io/CMakeFiles/input.dir/path_helper.cpp.o
cc1plus: error: unrecognized command line option "-std=c++11"
make[2]: *** [src/utils/io/CMakeFiles/input.dir/path_helper.cpp.o] Error 1
make[1]: *** [src/utils/io/CMakeFiles/input.dir/all] Error 2
make: *** [all] Error 2
So I gave up and tried compiling on a different machine with GCC 5.4.0 and CMake 3.5.1. cmake worked fine, but then building path_helper failed again, this time with a "error: ‘template class std::auto_ptr’ is deprecated" error. I edited line 37 of CmakeLists.txt to "set(COMPILE_OPTION_FLAG "-std=c++11 -Wno-deprecated-declarations")" and tried again successfully.
I would still love to get MGRA installed on the first machine. Is that going to be possible without installing a newer version of the GCC?