Closed ouassimk closed 3 years ago
Hey @ouassimk ,
Could you try checking out the branch from https://github.com/GEOSX/thirdPartyLibs/pull/158 and clean-rebuilding CHAI? Something like
git fetch origin
git switch bugfix/klevzoff/llvm-clang
cd build-darwin-clang-release
rm -rf chai
cmake ..
make chai
should be sufficient (or you can just do a full rebuild from scratch). Let us know if it fixes the problem. If it does, you should then be able to continue building TPLs with just make
.
Long story short, seems none of the developers of CHAI or GEOSX have ever tried this combination (LLVM/Clang instead of AppleClang on OSX), and there's a CMake policy that needs to be set for this to work correctly.
Thank you Sergey, it worked perfectly 👍, I think we can close this issue.
Hi, I wasn't able to build chai library on a macos machine following the steps on Quick start guide. I also checked Third party dependencies. The error happens when I run
make
insidebuild--release
folder. The problem seems related to umpire library but I wasn't able to debug it. There is only one issue on the project (#149) that is related to umpaire but it dons't correspond to my case. I was able to build, run and debug GEOSX code on Linux machine (PopOs 20.10) without an issue, but I faced challenges to build TPL on macos in the past and now as well. Thank you for the help.Cmake error:
MacOs: ProductName: macOS ProductVersion: 11.2.3 BuildVersion: 20D91
clang: clang version 12.0.0 Target: x86_64-apple-darwin20.3.0 Thread model: posix InstalledDir: /usr/local/opt/llvm/bin
gfortran: GNU Fortran (Homebrew GCC 10.2.0_4) 10.2.0
cmak config: