Configure error with intel compiler regarding C++14 standard
Added by ep gupal over 2 years ago
Trying to compile CDO from the source here.
I am getting the following error message when I am trying to configure CDO.
checking whether icpc supports C++14 features with -std=gnu++14... no
checking whether icpc supports C++14 features with -std=gnu++1y... no
checking whether icpc supports C++14 features with -std=c++14... no
checking whether icpc supports C++14 features with +std=c++14... no
checking whether icpc supports C++14 features with -h std=c++14... no
checking whether icpc supports C++14 features with -std=c++1y... no
checking whether icpc supports C++14 features with +std=c++1y... no
checking whether icpc supports C++14 features with -h std=c++1y... no
configure: error: *** A compiler with support for C++14 language features is required.
I am using Intel compiler version 19.1.2.254, and I know for a fact that it supports C++14 standard. I even added "-std=c++14" compile flag into the environment variable when I specified the compiler, but it does not work... I do not know what to do.
Any help would be appreciated.
Thank you.
Replies (5)
RE: Configure error with intel compiler regarding C++14 standard - Added by Ralf Mueller over 2 years ago
hi ep!
please provide the config.log file on case of building problems. I never tried intel19 myself. jumped from 18 to 21/oneAPI
cheers
ralf
RE: Configure error with intel compiler regarding C++14 standard - Added by ep gupal over 2 years ago
Here is the config.log
config.log (132 KB) config.log |
RE: Configure error with intel compiler regarding C++14 standard - Added by Ralf Mueller over 2 years ago
hi! could not figure out what's wrong. have the same issue with 18.0.5. Can you switch to gcc as a workaround?
RE: Configure error with intel compiler regarding C++14 standard - Added by ep gupal over 2 years ago
I can. But I would like to use Intel compiler. I can not understand why it won't work...
RE: Configure error with intel compiler regarding C++14 standard - Added by Matthias Büchner almost 2 years ago
I'm also struggling with icpc (ICC) 19.1.2.254 20200623 which definitely has C++17 support.
configure:23161: checking whether icpc -pthread -qopenmp supports C++17 features with -std=c++17 configure:23959: icpc -pthread -qopenmp -std=c++17 -c -I/home/buechner/tools/include -march=haswell -qopenmp -O2 conftest.cpp >&5 conftest.cpp(324): error: #error directive: "This is not a C++14 compiler" #error "This is not a C++14 compiler" ^ conftest.cpp(444): error: #error directive: "This is not a C++17 compiler" #error "This is not a C++17 compiler" ^ compilation aborted for conftest.cpp (code 2)