Problem Trying to Configure CMAKE Using Python Scripts #1884
Replies: 11 comments 41 replies
-
Hi @ironsmines, It appears that with
and let us know if the command is successful? Also could you please post the output of
|
Beta Was this translation helpful? Give feedback.
-
@ironsmines What version of cmake are you using? @klevzoff perhaps the new version of blt that is in the merge queue will help this. |
Beta Was this translation helpful? Give feedback.
-
I was able to get the third party libraries to configure. I am compiling now. To get things to work, I had to make a specific environmental variable for each error I was getting. This worked. I will try that with the main program as well. Larry |
Beta Was this translation helpful? Give feedback.
-
Well I wrote too soon. The compile failed as it needed some sort of MPI defined. I went back to define MPICH. I now get the following errors: sudo python scripts/config-build.py -hc ../GEOSX/host-configs//host-configs.cmake -bt Release -- Configuring incomplete, errors occurred! |
Beta Was this translation helpful? Give feedback.
-
If I remove all references to MPI, i.e, MPI OFF, then the scripts build the cmake files. The make builds the third party programs. So if I can get the cmake scripts to find MPI files, everything will be fine. That is where I need some help. Larry Irons |
Beta Was this translation helpful? Give feedback.
-
@ironsmines, what's the latest status on this? are you still struggling with your MPI installation? |
Beta Was this translation helpful? Give feedback.
-
At this point I have gone through the cmake modules in /usr/share/cmake to see what environment variables need to be defined. But I can't understand what I am missiing with the following errors. This is for the thirdparty libs. I am giving up. -- Could NOT find MPI_C (missing: MPI_/usr/lib64/mpich/lib/libmpi.so_LIBRARY MPI_C_WORKS) -- Configuring incomplete, errors occurred! |
Beta Was this translation helpful? Give feedback.
-
Sorry to hear you struggle with the installation process @ironsmines |
Beta Was this translation helpful? Give feedback.
-
Se definitely a problem with your
which is enough. Plus you should not define
since the |
Beta Was this translation helpful? Give feedback.
-
Output from verbose is below.
|
Beta Was this translation helpful? Give feedback.
-
Which distribution of Linux are you using? Perhaps RHEL has some strange issue. I could not find any solutions on the Red Hat website.
I would have to check with CompSci or the IT Department folks to see if they have any ideas, in particular the HPC group.
Larry
|
Beta Was this translation helpful? Give feedback.
-
I am using the Python Scripts to configure cmake. I am running on Red Hat Enterprise Linux (RHEL) 8.5. I set the module to mpi/mpich-x86_64. I used the following command -
sudo python scripts/config-build.py --hostconfig=/usr/local/src/codes/GEOSX/host-configs/host-configs.cmake --buildtype=Release --installpath=/usr/local/src/codes/GEOSX/install
I have also tried it without sudo and it works the same.
I get the following output -
[config-build.py]:[INFO]: Using host config file: '/usr/local/src/codes/GEOSX/host-configs/host-configs.cmake'.
[config-build.py]:[INFO]: Build path is: build-host-configs-release
[config-build.py]:[INFO]: Build directory '/usr/local/src/codes/GEOSX/build-host-configs-release' already exists. Deleting...
[config-build.py]:[INFO]: Creating build directory '/usr/local/src/codes/GEOSX/build-host-configs-release'...
[config-build.py]:[INFO]: Install directory '/usr/local/src/codes/GEOSX/install' already exists. Deleting...
[config-build.py]:[INFO]: Creating install path '/usr/local/src/codes/GEOSX/install'...
[config-build.py]:[INFO]: Extracting cmake entry from host config file /usr/local/src/codes/GEOSX/host-configs/host-configs.cmake
[config-build.py]:[INFO]: Could not find a cmake entry in host config file. Using ${PATH}.
[config-build.py]:[INFO]: Changing to build directory '/usr/local/src/codes/GEOSX/build-host-configs-release'
[config-build.py]:[INFO]: Executing cmake line: 'cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/src/codes/GEOSX/install -C/usr/local/src/codes/GEOSX/host-configs/host-configs.cmake /usr/local/src/codes/GEOSX/src'
loading initial cache file /usr/local/src/codes/GEOSX/host-configs/host-configs.cmake
-- GEOSX_LA_INTERFACE = Hypre
in tpls.cmake GEOSX_TPL_DIR=/usr/local/src/codes/thirdPartyLibs/install-
-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- BLT Version: 0.4.1
-- CMake Version: 3.20.2
-- CMake Executable: /usr/bin/cmake
-- The Fortran compiler identification is GNU 8.5.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /bin/gfortran - skipped
-- Checking whether /bin/gfortran supports Fortran 90
-- Checking whether /bin/gfortran supports Fortran 90 - yes
-- Found Git: /bin/git (found version "2.27.0")
-- Git Support is ON
-- Git Executable: /bin/git
-- Git Version: 2.27.0
-- MPI Support is ON
-- FindMPI Enabled (ENABLE_FIND_MPI == ON)
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_WORKS)
-- Could NOT find MPI_Fortran (missing: MPI_Fortran_LIB_NAMES MPI_Fortran_F77_HEADER_DIR MPI_Fortran_MODULE_DIR MPI_Fortran_WORKS)
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND MPI_Fortran_FOUND)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake/Modules/FindMPI.cmake:1742 (find_package_handle_standard_args)
cmake/blt/cmake/thirdparty/SetupMPI.cmake:43 (find_package)
cmake/blt/cmake/thirdparty/SetupThirdParty.cmake:29 (include)
cmake/blt/SetupBLT.cmake:112 (include)
CMakeLists.txt:20 (include)
-- Configuring incomplete, errors occurred!
See also "/usr/local/src/codes/GEOSX/build-host-configs-release/CMakeFiles/CMakeOutput.log".
See also "/usr/local/src/codes/GEOSX/build-host-configs-release/CMakeFiles/CMakeError.log".
I am not sure what needs to be done for the MPI files to be found.
Thanks in advance -
Larry Irons
Beta Was this translation helpful? Give feedback.
All reactions