Hi guys,
i am installing GROMACS using MIC and got the following error while using cmake to compile. I have tried with icc and ifort (even with mpicc and mpiifort), but still the same problem occurred. The following error detail given below.
cmake .. -DCMAKE_C_COMPILER=/opt/intel/composer_xe_2015/bin/icc -DCMAKE_EXE_LINKER_FLAGS="-L/home/prasanna/zlib-path/lib" -DCMAKE_C_FLAGS="-O3 –mmic -I/home/prasanna/zlib-path/include" -DCMAKE_CXX_COMPILER=/opt/intel/composer_xe_2015/bin/icpc -DCMAKE_CXX_FLAGS="-O3 –mmic -I/home/prasanna/zlib-path/include" -DGMX_MPI=ON -DGMX_PREFER_STATIC_LIBS=ON -DCMAKE_INSTALL_PREFIX=/home/prasanna/gromacs-mic -DGMX_OPENMP=ON -DGMX_FFT_LIBRARY=mkl -DGMX_XML=OFF -DGMX_SOFTWARE_INVSQRT=OFF -DGMX_SKIP_DEFAULT_CFLAGS=ON -DGMX_BUILD_MDRUN_ONLY=ON
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /opt/intel/composer_xe_2015/bin/icc
-- Check for working C compiler: /opt/intel/composer_xe_2015/bin/icc -- broken
CMake Error at /opt/onama/Onama_Installed/Application_Dependencies/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/opt/intel/composer_xe_2015/bin/icc" is not able to compile
a simple test program.
It fails with the following output:
Change Dir: /home/prasanna/gromacs-5.0-rc1/mic-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake""cmTryCompileExec2503639587/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2503639587.dir/build.make
CMakeFiles/cmTryCompileExec2503639587.dir/build
gmake[1]: Entering directory
`/home/prasanna/gromacs-5.0-rc1/mic-build/CMakeFiles/CMakeTmp'
/opt/onama/Onama_Installed/Application_Dependencies/bin/cmake -E
cmake_progress_report
/home/prasanna/gromacs-5.0-rc1/mic-build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object
CMakeFiles/cmTryCompileExec2503639587.dir/testCCompiler.c.o
/opt/intel/composer_xe_2015/bin/icc -O3 –mmic
-I/home/prasanna/zlib-path/include -o
CMakeFiles/cmTryCompileExec2503639587.dir/testCCompiler.c.o -c
/home/prasanna/gromacs-5.0-rc1/mic-build/CMakeFiles/CMakeTmp/testCCompiler.c
icc: error #10236: File not found: '–mmic'
gmake[1]: *** [CMakeFiles/cmTryCompileExec2503639587.dir/testCCompiler.c.o]
Error 1
gmake[1]: Leaving directory
`/home/prasanna/gromacs-5.0-rc1/mic-build/CMakeFiles/CMakeTmp'
gmake: *** [cmTryCompileExec2503639587/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:41 (project)
-- Configuring incomplete, errors occurred!
See also "/home/prasanna/gromacs-5.0-rc1/mic-build/CMakeFiles/CMakeOutput.log".
See also "/home/prasanna/gromacs-5.0-rc1/mic-build/CMakeFiles/CMakeError.log".