GEOS-DEV / GEOS

GEOS Simulation Framework
GNU Lesser General Public License v2.1
222 stars 89 forks source link

Compilation issue #1945

Closed hari12125 closed 2 years ago

hari12125 commented 2 years ago

Please describe your issue here. Try to be as specific as possible. I attempted to configure and build third party libraries by using darwin-clang.cmake file. But the result is configuration incomplete. I have attached the error file at the end. error.txt

TotoGaz commented 2 years ago

Hello @hari12125 and welcome to GEOSX. Looks like MPI is not found. Do you have it installed or defined at the location of your darwin-clang.cmake?

hari12125 commented 2 years ago

Hello @TotoGaz Eventhough MPI is found, I am getting configuration to be incomplete with darwin-clang.cmake . However, with your-platform.cmake provided in the documentation,I could complete configuration but I got some errors when I entered the make command. I have attached the outputs of all three cases at the end. darwinclang.txt yourplatform.txt make.txt

TotoGaz commented 2 years ago

Are you trying to build on osx or on linux? Linux should be the easier at first. For OSX, it looks like you do not have blas installed. For linux, the error message brings nothing we can grab to elaborate a solution. Do you have any other log?

hari12125 commented 2 years ago

errormake.txt I am building on linux ( Ubuntu 20.04.4 LTS ). I have attached the log below CMakeOutput.log

TotoGaz commented 2 years ago

Hello, it looks like the log indicates to install flex. You can also have a glance at https://geosx-geosx.readthedocs-hosted.com/en/latest/docs/sphinx/buildGuide/Prerequisites.html where you'll find some additional information!

hari12125 commented 2 years ago

I have completed building TPL. Now, I am trying to build GEOSX. After running the command to configure via config-build.py, I got a error message to set UMPIRE_DIR to the Umpire installation directory. But I couldn't find any Umpire directory in install-your-platform-release directory of TPL directory. Error message is below. GEOSX_configure_error.txt

TotoGaz commented 2 years ago

Why does line in tpls.cmake GEOSX_TPL_DIR=/home/bharath/Pictures/Loan/SEM2/Dissertation/codes/thirdPartyLibs appear twice in the log? Does an umpire folder exist in /home/bharath/Pictures/Loan/SEM2/Dissertation/codes/thirdPartyLibs/install-your-platform-release?

hari12125 commented 2 years ago

By following the instructions under Building GEOSX , I added the line (include("/home/bharath/Pictures/Loan/SEM2/Dissertation/codes/GEOSX/host-configs/tpls.cmake") in your-platform.cmake. May be this line gives same result as the following line include(${CMAKE_CURRENT_LIST_DIR}/tpls.cmake)

I found few folders like hdf5,conduit and doxygen etc., but there is no folder like umpire in /home/bharath/Pictures/Loan/SEM2/Dissertation/codes/thirdPartyLibs/install-your-platform-release

TotoGaz commented 2 years ago

added the line

You need to include tpls.cmake only once.

I found few folders like hdf5,conduit and doxygen etc., but there is no folder like umpire in /home/bharath/Pictures/Loan/SEM2/Dissertation/codes/thirdPartyLibs/install-your-platform-release

You should get something like

adiak    conduit  hdf5        metis     raja         superlu_dist  vtk
caliper  doxygen  hypre       parmetis  silo         trilinos
chai     fmt      mathpresso  pugixml   suitesparse  uncrustify

If you don't then maybe the TPL phase did not run OK?

hari12125 commented 2 years ago

I have also got the same but the error message during GEOSX configuration asks about umpire directory. tpl

TotoGaz commented 2 years ago

it's there

root@def699f6d994:/opt/GEOSX_TPL # find . -name umpire -type d
./chai/include/umpire
./chai/share/umpire

and

root@def699f6d994:/opt/GEOSX_TPL # ls chai/include/umpire/
Allocator.hpp  ResourceManager.hpp  TypedAllocator.inl  config.hpp  strategy
Allocator.inl  ResourceManager.inl  Umpire.hpp          op          tpl
Replay.hpp     TypedAllocator.hpp   alloc               resource    util
hari12125 commented 2 years ago

Thank you @TotoGaz for your help. I have successfully completed the compilation and installation. I hope that I would also get an opportunity to solve your problems.