Dear Kenneth, I am also trying to ask the OpenKIM guys for help, they are after all the ones that know their CMake setup best.
I have attached the easyconfig files (I should have done that to begin with). It is OpenKIM-Models-20190221-intel-2018b.eb that causes the trouble, but it requires the OpenKIM-API-2.0.1-intel-2018b.eb as a prerequisite. I would appreciate any help, but I fully understand if you think that life it too short to spend on debugging CMake problems. :-) Best regards Jakob > On 12 Mar 2019, at 9:59, Kenneth Hoste <kenneth.ho...@ugent.be> wrote: > > Dear Jakob, > > When CMake works, it's OK. > When it doesn't work as you want/expect, you're in trouble... > > I haven't had good experiences trying to figure out why CMake does things in > a particular way when something goes wrong. > > It looks like it's either ignoring $PATH, or maybe OpenKIMModels uses some > kind of wrappers for the compiler commands like 'icpc'? > > Also, maybe try to figure out what this means: > > "The CXX compiler identification is unknown" > > Maybe share the easyconfig(s) you are using, so we can try and reproduce the > issue? > > > regards, > > Kenneth > > On 11/03/2019 11:16, Jakob Schiøtz wrote: >> Hi, >> I am trying to make a .eb files for a module using the CMakeMake block. I >> am having a strange problem, and my lack of experience with CMake makes it >> hard for me to figure out what is going on. >> Apparently, cmake cannot find the compilers, since it somehow gets the idea >> that they are placed in the build directory: >> == 2019-03-11 11:07:25,450 run.py:192 INFO running cmd: cmake >> -DCMAKE_INSTALL_PREFIX=/home/niflheim/schiotz/easybuild/broadwell/software/OpenKIM-Models/20190221-intel-2018b >> -DCMAKE_C_COMPILER='icc' -DCMAKE_Fortran_FLAGS='-O2 -xHost -ftz >> -fp-speculation=safe -fp-model source' -DCMAKE_CXX_FLAGS='-O2 -xHost -ftz >> -fp-speculation=safe -fp-model source' -DCMAKE_CXX_COMPILER='icpc' >> -DCMAKE_Fortran_COMPILER='ifort' -DCMAKE_C_FLAGS='-O2 -xHost -ftz >> -fp-speculation=safe -fp-model source' -DCMAKE_VERBOSE_MAKEFILE=ON >> -DKIM_API_INSTALL_COLLECTION=SYSTEM >> -DKIM_API_MODEL_INSTALL_PREFIX=/home/niflheim/schiotz/easybuild/broadwell/software/OpenKIM-Models/20190221-intel-2018b/lib/kim-api-v2/models >> >> -DKIM_API_MODEL_DRIVER_INSTALL_PREFIX=/home/niflheim/schiotz/easybuild/broadwell/software/OpenKIM-Models/20190221-intel-2018b/lib/kim-api-v2/model-drivers >> >> /home/niflheim/schiotz/easybuild/broadwell/build/OpenKIMModels/20190221/intel-2018b/OpenKIM-Models-v2-2019-02-21/ >> == 2019-03-11 11:07:26,976 build_log.py:162 ERROR EasyBuild crashed with an >> error (at ?:124 in __init__): cmd " cmake >> -DCMAKE_INSTALL_PREFIX=/home/niflheim/schiotz/easybuild/broadwell/software/OpenKIM-Models/20190221-intel-2018b >> -DCMAKE_C_COMPILER='icc' -DCMAKE_Fortran_FLAGS='-O2 -xHost -ftz >> -fp-speculation=safe -fp-model source' -DCMAKE_CXX_FLAGS='-O2 -xHost -ftz >> -fp-speculation=safe -fp-model source' -DCMAKE_CXX_COMPILER='icpc' >> -DCMAKE_Fortran_COMPILER='ifort' -DCMAKE_C_FLAGS='-O2 -xHost -ftz >> -fp-speculation=safe -fp-model source' -DCMAKE_VERBOSE_MAKEFILE=ON >> -DKIM_API_INSTALL_COLLECTION=SYSTEM >> -DKIM_API_MODEL_INSTALL_PREFIX=/home/niflheim/schiotz/easybuild/broadwell/software/OpenKIM-Models/20190221-intel-2018b/lib/kim-api-v2/models >> >> -DKIM_API_MODEL_DRIVER_INSTALL_PREFIX=/home/niflheim/schiotz/easybuild/broadwell/software/OpenKIM-Models/20190221-intel-2018b/lib/kim-api-v2/model-drivers >> >> /home/niflheim/schiotz/easybuild/broadwell/build/OpenKIMModels/20190221/intel-2018b/OpenKIM-Models-v2-2019-02-21/" >> exited with exit code 1 and output: >> -- Found KIM-API-V2: kim-api-v2 (Required is at least version "2.0") >> -- The CXX compiler identification is unknown >> -- The C compiler identification is unknown >> -- The Fortran compiler identification is unknown >> CMake Error at CMakeLists.txt:37 (project): >> The CMAKE_CXX_COMPILER: >> >> /home/niflheim/schiotz/easybuild/broadwell/build/OpenKIMModels/20190221/intel-2018b/easybuild_obj/icpc >> is not a full path to an existing compiler tool. >> Tell CMake where to find the compiler by setting either the environment >> variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path >> to the compiler, or to the compiler name if it is in the PATH. >> and the same for the C and Fortran compilers. >> And in that folder, there is a CMakeCache.txt file, and it contains lines >> like: >> CMAKE_CXX_COMPILER:FILEPATH=/home/niflheim/schiotz/easybuild/broadwell/build/OpenKIMModels/20190221/intel-2018b/easybuild_obj/icpc >> I have no idea where it gets that idea from. Has anybody seen something >> like that before, or have any hint as to where I should be looking? >> Best regards >> Jakob >> -- >> Jakob Schiøtz, professor, Ph.D. >> Department of Physics >> Technical University of Denmark >> DK-2800 Kongens Lyngby, Denmark >> http://www.fysik.dtu.dk/~schiotz/ -- Jakob Schiøtz, professor, Ph.D. Department of Physics Technical University of Denmark DK-2800 Kongens Lyngby, Denmark http://www.fysik.dtu.dk/~schiotz/
OpenKIM-Models-20190221-intel-2018b.eb
Description: OpenKIM-Models-20190221-intel-2018b.eb
OpenKIM-API-2.0.1-intel-2018b.eb
Description: OpenKIM-API-2.0.1-intel-2018b.eb