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

Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
mohapatraprakashkumar_sahoo
Newbie
Newbie
Posts: 2
Joined: Mon May 27, 2024 9:56 am

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

#1 Post by mohapatraprakashkumar_sahoo » Wed May 29, 2024 6:47 pm

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".
You do not have the required permissions to view the files attached to this post.

henrique_miranda
Global Moderator
Global Moderator
Posts: 474
Joined: Mon Nov 04, 2019 12:41 pm
Contact:

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

#2 Post by henrique_miranda » Fri May 31, 2024 10:42 am

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

mohapatraprakashkumar_sahoo
Newbie
Newbie
Posts: 2
Joined: Mon May 27, 2024 9:56 am

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

#3 Post by mohapatraprakashkumar_sahoo » Fri May 31, 2024 1:56 pm

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 .

henrique_miranda
Global Moderator
Global Moderator
Posts: 474
Joined: Mon Nov 04, 2019 12:41 pm
Contact:

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

#4 Post by henrique_miranda » Fri May 31, 2024 2:03 pm

Can you try:

Code: Select all

make DEPS=1 std gam ncl -j8

Post Reply