Issue building with Intel 18 Compiler
I am trying to build CMake with Intel 2018 compiler version (18.0.3 20180410) but I keep getting the following error:
In file included from /home/dcs/csrwqv/cmake-3.15.2/Source/cmSystemTools.h(13), from /home/dcs/csrwqv/cmake-3.15.2/Source/cmArchiveWrite.cxx(6): /gpfs/warwick/csc/orac/software/Core/GCCcore/7.3.0/bin/../include/c++/7.3.0/functional(139): error: class template "std::_Mem_fn_traits" has already been defined _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type) ^
In file included from /home/dcs/csrwqv/cmake-3.15.2/Source/cmSystemTools.h(13), from /home/dcs/csrwqv/cmake-3.15.2/Source/cmArchiveWrite.cxx(6): /gpfs/warwick/csc/orac/software/Core/GCCcore/7.3.0/bin/../include/c++/7.3.0/functional(140): error: class template "std::_Mem_fn_traits" has already been defined _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type) ^
In file included from /home/dcs/csrwqv/cmake-3.15.2/Source/cmSystemTools.h(13), from /home/dcs/csrwqv/cmake-3.15.2/Source/cmArchiveWrite.cxx(6): /gpfs/warwick/csc/orac/software/Core/GCCcore/7.3.0/bin/../include/c++/7.3.0/functional(141): error: class template "std::_Mem_fn_traits" has already been defined _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type) ^
In file included from /home/dcs/csrwqv/cmake-3.15.2/Source/cmArgumentParser.h(12), from /home/dcs/csrwqv/cmake-3.15.2/Source/cmArgumentParser.cxx(3): /gpfs/warwick/csc/orac/software/Core/GCCcore/7.3.0/bin/../include/c++/7.3.0/functional(139): error: class template "std::_Mem_fn_traits" has already been defined _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type) ^
In file included from /home/dcs/csrwqv/cmake-3.15.2/Source/cmArgumentParser.h(12), from /home/dcs/csrwqv/cmake-3.15.2/Source/cmArgumentParser.cxx(3): /gpfs/warwick/csc/orac/software/Core/GCCcore/7.3.0/bin/../include/c++/7.3.0/functional(140): error: class template "std::_Mem_fn_traits" has already been defined _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type) ^
In file included from /home/dcs/csrwqv/cmake-3.15.2/Source/cmArgumentParser.h(12), from /home/dcs/csrwqv/cmake-3.15.2/Source/cmArgumentParser.cxx(3): /gpfs/warwick/csc/orac/software/Core/GCCcore/7.3.0/bin/../include/c++/7.3.0/functional(141): error: class template "std::_Mem_fn_traits" has already been defined _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type) ^
[ 58%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmCacheManager.cxx.o compilation aborted for /home/dcs/csrwqv/cmake-3.15.2/Source/cmArchiveWrite.cxx (code 2) gmake[2]: *** [Source/CMakeFiles/CMakeLib.dir/cmArchiveWrite.cxx.o] Error 2 gmake[2]: *** Waiting for unfinished jobs.... compilation aborted for /home/dcs/csrwqv/cmake-3.15.2/Source/cmArgumentParser.cxx (code 2) gmake[2]: *** [Source/CMakeFiles/CMakeLib.dir/cmArgumentParser.cxx.o] Error 2 In file included from /home/dcs/csrwqv/cmake-3.15.2/Source/cmSystemTools.h(13), from /home/dcs/csrwqv/cmake-3.15.2/Source/cmCacheManager.cxx(17): /gpfs/warwick/csc/orac/software/Core/GCCcore/7.3.0/bin/../include/c++/7.3.0/functional(139): error: class template "std::_Mem_fn_traits" has already been defined _GLIBCXX_MEM_FN_TRAITS(noexcept, true_type, true_type) ^
In file included from /home/dcs/csrwqv/cmake-3.15.2/Source/cmSystemTools.h(13), from /home/dcs/csrwqv/cmake-3.15.2/Source/cmCacheManager.cxx(17): /gpfs/warwick/csc/orac/software/Core/GCCcore/7.3.0/bin/../include/c++/7.3.0/functional(140): error: class template "std::_Mem_fn_traits" has already been defined _GLIBCXX_MEM_FN_TRAITS(& noexcept, true_type, false_type) ^
In file included from /home/dcs/csrwqv/cmake-3.15.2/Source/cmSystemTools.h(13), from /home/dcs/csrwqv/cmake-3.15.2/Source/cmCacheManager.cxx(17): /gpfs/warwick/csc/orac/software/Core/GCCcore/7.3.0/bin/../include/c++/7.3.0/functional(141): error: class template "std::_Mem_fn_traits" has already been defined _GLIBCXX_MEM_FN_TRAITS(&& noexcept, false_type, true_type) ^
compilation aborted for /home/dcs/csrwqv/cmake-3.15.2/Source/cmCacheManager.cxx (code 2) gmake[2]: *** [Source/CMakeFiles/CMakeLib.dir/cmCacheManager.cxx.o] Error 2 gmake[1]: *** [Source/CMakeFiles/CMakeLib.dir/all] Error 2 gmake: *** [all] Error 2
Whats going wrong? This is with version CMake 3.15.2.