Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error thrown when trying to build ExaTn using Intel compilers. #37

Open
cameton opened this issue Jul 15, 2020 · 3 comments
Open

Error thrown when trying to build ExaTn using Intel compilers. #37

cameton opened this issue Jul 15, 2020 · 3 comments
Assignees

Comments

@cameton
Copy link

cameton commented Jul 15, 2020

Trying to run cmake for ExaTn using Intel's C/C++/Fortran compilers indicates that they are unsupported, then throws an error.

OS Information:
Linux version 3.10.0-957.10.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Thu Feb 7 07:12:53 UTC 2019

(base) build$ CC=icc CXX=icpc FC=ifort cmake ..  -DEXATN_BUILD_TESTS=TRUE -DCMAKE_BUILD_TYPE=Release \
-DPATH_INTEL_ROOT=$MKLROOT/.. -DBLAS_LIB=MKL -DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc \
-DCMAKE_Fortran_COMPILER=ifort -DCMAKE_INSTALL_PREFIX=~/.exatn
                                                                                                                
-- The CXX compiler identification is Intel 19.1.0.20191121
-- The Fortran compiler identification is Intel 19.1.0.20191121
-- Check for working CXX compiler: /soft/compilers/intel-2020/compilers_and_libraries_2020.0.166/linux/bin/intel64/icpc
-- Check for working CXX compiler: /soft/compilers/intel-2020/compilers_and_libraries_2020.0.166/linux/bin/intel64/icpc -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working Fortran compiler: /soft/compilers/intel-2020/compilers_and_libraries_2020.0.166/linux/bin/intel64/ifort
-- Check for working Fortran compiler: /soft/compilers/intel-2020/compilers_and_libraries_2020.0.166/linux/bin/intel64/ifort  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /soft/compilers/intel-2020/compilers_and_libraries_2020.0.166/linux/bin/intel64/ifort supports Fortran 90
-- Checking whether /soft/compilers/intel-2020/compilers_and_libraries_2020.0.166/linux/bin/intel64/ifort supports Fortran 90 -- yes
-- Found OpenMP_CXX: -qopenmp (found version "5.0") 
-- Found OpenMP_Fortran: -qopenmp (found version "5.0") 
-- Found OpenMP: TRUE (found version "5.0")  
-- Found MPI_CXX: /home/cibrahim/anaconda3/lib/libmpi.so (found version "3.1") 
-- Found MPI_Fortran: /home/cibrahim/anaconda3/lib/libmpi_usempif08.so (found version "3.1") 
-- Found MPI: TRUE (found version "3.1")  
-- MPIRUN: /home/cibrahim/anaconda3/bin/mpiexec
-- The C compiler identification is Intel 19.1.0.20191121
-- Check for working C compiler: /soft/compilers/intel-2020/compilers_and_libraries_2020.0.166/linux/bin/intel64/icc
-- Check for working C compiler: /soft/compilers/intel-2020/compilers_and_libraries_2020.0.166/linux/bin/intel64/icc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Warning at tpls/cppmicroservices/CMakeLists.txt:108 (message):
  You are using an unsupported compiler! Compilation has only been tested
  with Clang (Linux or Apple), GCC and MSVC.


CMake Error at tpls/cppmicroservices/CMakeLists.txt:111 (if):
  if given arguments:

    "CMAKE_CXX_COMPILER_VERSION" "AND" "CMAKE_CXX_COMPILER_VERSION" "VERSION_LESS"

  Unknown arguments specified


-- Configuring incomplete, errors occurred!
See also "/home/cibrahim/exatn/build/CMakeFiles/CMakeOutput.log".

@DmitryLyakh
Copy link
Member

This CMAKE error comes from CPP Microservices submodule, which apparently does not officially support the Intel compiler suite. But we cant try simply removing that CMAKE check to see if CPP Microservices will work fine when built with the Intel C++ compiler.

@DmitryLyakh
Copy link
Member

Can you try commenting the three lines in CMake at tpls/cppmicroservices/CMakeLists.txt, starting at line 111?

@cameton
Copy link
Author

cameton commented Jul 15, 2020

Your suggestion allows the CMake step to succeed, but it seems to introduce a number of warnings and an error using make install.

These warnings are thrown repeatedly:

[ 16%] Building C object tpls/metis/libmetis/CMakeFiles/metis.dir/__/GKlib/error.c.o
icc: command line warning #10006: ignoring unknown option '-fno-plt'
icc: command line warning #10121: overriding '-march=nocona' with '-xHost'
icc: warning #10193: -vec is default; use -x and -ax to configure vectorization
/home/.../exatn/tpls/metis/GKlib/csr.c(1074): warning #3180: unrecognized OpenMP #pragma
        #pragma omp parallel private(i, j, ncand, rsum, tsum, cand)

Before Crashing with this Error:

[ 32%] Building CXX object tpls/antlr/runtime/CMakeFiles/antlr4_shared.dir/src/ANTLRErrorListener.cpp.o
In file included from /home/cibrahim/exatn/tpls/antlr/runtime/src/Exceptions.h(8),
                 from /home/cibrahim/exatn/tpls/antlr/runtime/src/RecognitionException.h(8),
                 from /home/cibrahim/exatn/tpls/antlr/runtime/src/ANTLRErrorListener.h(8),
                 from /home/cibrahim/exatn/tpls/antlr/runtime/src/ANTLRErrorListener.cpp(6):
/home/cibrahim/exatn/tpls/antlr/runtime/src/antlr4-common.h(11): catastrophic error: cannot open source file "codecvt"
  #include <codecvt>
                    ^

compilation aborted for /home/cibrahim/exatn/tpls/antlr/runtime/src/ANTLRErrorListener.cpp (code 4)
make[2]: *** [tpls/antlr/runtime/CMakeFiles/antlr4_shared.dir/src/ANTLRErrorListener.cpp.o] Error 4
make[1]: *** [tpls/antlr/runtime/CMakeFiles/antlr4_shared.dir/all] Error 2
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants