[Dune] Dune install issue

Eike Mueller E.Mueller at bath.ac.uk
Wed Nov 4 11:20:23 CET 2015


Hi Tim (I copied this also to the DUNE list),

DUNE doesn’t find the c++ compiler that you set in the opts file. There you specified that it is "gcc-mp-4.9/g++-mp-4.9”, i.e. the gnu compiler. gcc is probably not part of your MAC installation (default compiler is clang), so you will have to re-install it e.g. via homebrew.

Having said that, I actually compile DUNE with clang on my macbook, and that worked fine. I currently use:

-DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_Fortran_COMPILER=gfortran

You might not need the last line - maybe someone from the DUNE list can comment on this?

Thanks,

Eike

> On 4 Nov 2015, at 09:57, Dodwell, Timothy <T.Dodwell at exeter.ac.uk> wrote:
> 
> <release.opts>

Hi Eike,

Hope you are well. I had some issues with my mac, which required me to reinstall OS-X. I am now trying to reinstall dune. I save my .opts file (Which I have attached). But get the following error.

Any Ideas?

Cheers

Tim

CMAKE_FLAGS="  -DDUNE_SYMLINK_TO_SOURCE_TREE=1"  # add symlinks back to source directory (called src_dir)
CMAKE_FLAGS+=" -DCMAKE_C_COMPILER=gcc-mp-4.9"
CMAKE_FLAGS+=" -DCMAKE_CXX_COMPILER=g++-mp-4.9"
CMAKE_FLAGS+=" -DCMAKE_C_FLAGS='-Wall -march=native -Wa,-q'"
CMAKE_FLAGS+=" -DCMAKE_CXX_FLAGS='-Wall -march=native -Wa,-q -fvisibility-inlines-hidden'"
CMAKE_FLAGS+=" -DCMAKE_C_FLAGS_DEBUG='-O0 -g3'"
CMAKE_FLAGS+=" -DCMAKE_CXX_FLAGS_DEBUG='-O0 -g3'"
CMAKE_FLAGS+=" -DCMAKE_C_FLAGS_RELEASE='-O3 -g0 -ffast-math -funroll-loops'"
CMAKE_FLAGS+=" -DCMAKE_CXX_FLAGS_RELEASE='-O3 -g0 -ffast-math -funroll-loops'"
CMAKE_FLAGS+=" -DCMAKE_BUILD_TYPE=Release" # set this to Debug for debugging
CMAKE_FLAGS+=" -DUG_ROOT=$HOME/git_workspace/ug"
CMAKE_FLAGS+=" -DCMAKE_DISABLE_FIND_PACKAGE_UMFPack=1"


Tims-MBP:dune timdodwell$ ./dune-common/bin/dunecontrol --builddir=$PWD/build/release --opts=release.opts all
WARNING: could not find module dune-alugrid,
       module is also unknown to pkg-config.
       Maybe you need to adjust PKG_CONFIG_PATH!
       dune-alugrid is suggested by dune-pdelab
Skipping dune-alugrid!
--- going to build dune-common dune-geometry dune-grid dune-istl dune-localfunctions dune-typetree dune-pdelab dune-pdelab-howto  ---
--- calling all for dune-common ---
--- calling vcsetup for dune-common ---
--- calling autogen for dune-common ---
Skipping dune-autogen because of CMake
--- calling configure for dune-common ---
find: dune: No such file or directory
 cmake -DCMAKE_MODULE_PATH=""  -DCMAKE_DISABLE_FIND_PACKAGE_MPI=FALSE -DDUNE_SYMLINK_TO_SOURCE_TREE=1 -DCMAKE_C_COMPILER=gcc-mp-4.9 -DCMAKE_CXX_COMPILER=g++-mp-4.9 -DCMAKE_C_FLAGS='-Wall -march=native -Wa,-q' -DCMAKE_CXX_FLAGS='-Wall -march=native -Wa,-q -fvisibility-inlines-hidden' -DCMAKE_C_FLAGS_DEBUG='-O0 -g3' -DCMAKE_CXX_FLAGS_DEBUG='-O0 -g3' -DCMAKE_C_FLAGS_RELEASE='-O3 -g0 -ffast-math -funroll-loops' -DCMAKE_CXX_FLAGS_RELEASE='-O3 -g0 -ffast-math -funroll-loops' -DCMAKE_BUILD_TYPE=Release -DUG_ROOT=/Users/timdodwell/git_workspace/ug -DCMAKE_DISABLE_FIND_PACKAGE_UMFPack=1 "/Users/timdodwell/git_workspace/dune/dune-common"
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
  The CMAKE_C_COMPILER:

    gcc-mp-4.9

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:2 (project):
  The CMAKE_CXX_COMPILER:

    g++-mp-4.9

  is not a full path and was not found in the PATH.

  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.


-- Configuring incomplete, errors occurred!
See also "/Users/timdodwell/git_workspace/dune/build/release/dune-common/CMakeFiles/CMakeOutput.log".
See also "/Users/timdodwell/git_workspace/dune/build/release/dune-common/CMakeFiles/CMakeError.log".
--- Failed to build dune-common ---
Terminating dunecontrol due to previous errors!
Tims-MBP:dune timdodwell$ 






More information about the Dune mailing list