Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in installing OPM modules #566

Closed
muhammadirfanzafar opened this issue Jan 5, 2022 · 3 comments
Closed

Errors in installing OPM modules #566

muhammadirfanzafar opened this issue Jan 5, 2022 · 3 comments

Comments

@muhammadirfanzafar
Copy link

Hi,

While installing modules one by one in sequence given on the website, I have been facing issues. I have been able install opm-common, however for all the following modules I get this kind of error:

-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification 
[CMakeError.log](https://github.com/OPM/opm-grid/files/7818316/CMakeError.log)
[CMakeOutput.log](https://github.com/OPM/opm-grid/files/7818317/CMakeOutput.log)
is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - 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: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_C99
-- Performing Test HAVE_C99 - Success
-- Found C99: -std=c99  
-- Found Boost: /usr/local/lib/cmake/Boost-1.76.0/BoostConfig.cmake (found suitable version "1.76.0", minimum required is "1.44.0") found components: system unit_test_framework 
-- Performing Test HAVE_CJSON
-- Performing Test HAVE_CJSON - Failed
-- Could NOT find cjson (missing: cjson_INCLUDE_DIRS cjson_LIBRARIES HAVE_CJSON) 
CMake Warning at /Users/irfanzafar/opm-common/cmake/Modules/OpmFind.cmake:144 (find_package):
  By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "fmt", but
  CMake did not find one.

  Could not find a package configuration file provided by "fmt" (requested
  version 7.0.3) with any of the following names:

    fmtConfig.cmake
    fmt-config.cmake

  Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
  to a directory containing one of the above files.  If "fmt" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  /Users/irfanzafar/opm-common/cmake/Modules/OpmPackage.cmake:189 (find_and_append_package_to)
  /Users/irfanzafar/opm-common/opm-common-prereqs.cmake:25 (find_package_deps)
  /Users/irfanzafar/opm-common/build/opm-common-config.cmake:128 (include)
  CMakeLists.txt:50 (find_package)


CMake Deprecation Warning at /Users/irfanzafar/opm-common/cmake/Modules/OpmInit.cmake:26 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:53 (OpmSetPolicies)


CMake Error at /Users/irfanzafar/opm-common/cmake/Modules/OpmPackage.cmake:81 (find_package):
  Could not find a package configuration file provided by "dune-common" with
  any of the following names:

    dune-commonConfig.cmake
    dune-common-config.cmake

  Add the installation prefix of "dune-common" to CMAKE_PREFIX_PATH or set
  "dune-common_DIR" to a directory containing one of the above files.  If
  "dune-common" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /Users/irfanzafar/opm-common/cmake/Modules/Finddune-common.cmake:14 (find_opm_package)
  /Users/irfanzafar/opm-common/cmake/Modules/OpmFind.cmake:144 (find_package)
  /Users/irfanzafar/opm-common/cmake/Modules/OpmPackage.cmake:189 (find_and_append_package_to)
  opm-material-prereqs.cmake:22 (find_package_deps)
  CMakeLists.txt:67 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/irfanzafar/opm-material/build/CMakeFiles/CMakeOutput.log".
See also "/Users/irfanzafar/opm-material/build/CMakeFiles/CMakeError.log".

Help would be much appreciated.
Thanks.

@atgeirr
Copy link
Member

atgeirr commented Jan 6, 2022

I will assume that not finding the Dune libraries is the main problem here. How did you build and install the Dune libraries? On my system (also a mac) I have installed dune to a local directory on my user, then I pass that directory to opm when configuring. I.e. if Dune is installed to /Users/MyUserName/duneinstall then you should add

-DCMAKE_PREFIX_PATH="/Users/MyUserName/duneinstall"

to the cmake command line. I also install the Zoltan dependency (necessary for parallel runs) similarly, then the flag should be something like

-DCMAKE_PREFIX_PATH="/Users/MyUserName/duneinstall;/Users/MyUserName/zoltaninstall"

I think that is as far as I can help without more info.

@blattms
Copy link
Member

blattms commented Jun 8, 2022

@muhammadirfanzafar is this resolved and can we close the issue?

@muhammadirfanzafar
Copy link
Author

muhammadirfanzafar commented Jun 10, 2022 via email

@blattms blattms closed this as completed Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants