Page 1 of 1

-- The C compiler identification is unknown CMake Error at CMakeLists.txt:2 (project): The CMAKE_C_COMPILER: icx

Posted: Wed May 29, 2024 6:47 pm
by mohapatraprakashkumar_sahoo
Hi,
Could anyone help me with the solution or guidelines to fix the below error message.

cmake -G "Unix Makefiles" -DBUILD_SHARED_LIBS:BOOL=ON -DHDF5_BUILD_FORTRAN=YES -DHDF5_BUILD_TOOLS:BOOL=ON -DCMAKE_C_COMPILER=icx ../hdf5-1.14.3
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
The CMAKE_C_COMPILER:

icx

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/user/OpenMPI_Intel/openmpi-5.0.0/HDF5_Intel/myhdfstuff/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/OpenMPI_Intel/openmpi-5.0.0/HDF5_Intel/myhdfstuff/build/CMakeFiles/CMakeError.log".

Re: -- The C compiler identification is unknown CMake Error at CMakeLists.txt:2 (project): The CMAKE_C_COMPILER:

Posted: Fri May 31, 2024 10:42 am
by henrique_miranda
The VASP installation does not use cmake at any step of the way.
Maybe the instructions in this page can help you:
https://www.vasp.at/wiki/index.php/Inst ... VASP.6.X.X

Re: -- The C compiler identification is unknown CMake Error at CMakeLists.txt:2 (project): The CMAKE_C_COMPILER:

Posted: Fri May 31, 2024 1:56 pm
by mohapatraprakashkumar_sahoo
Hi,
Thank you so much for your reply.
As per your guidelines i have set the parameter but while running make DEPS=1 -j , getting following output.

mpk@mpk-HP-Z2-Tower-G9-Workstation-Desktop-PC:~/Downloads/vaspsrc/vasp.6.4.3/arch$ make DEPS=1 -j
make: *** No targets specified and no makefile found. Stop.

Please help .

Re: -- The C compiler identification is unknown CMake Error at CMakeLists.txt:2 (project): The CMAKE_C_COMPILER:

Posted: Fri May 31, 2024 2:03 pm
by henrique_miranda
Can you try:

Code: Select all

make DEPS=1 std gam ncl -j8