[Dune] Dune install issue

Dodwell, Timothy T.Dodwell at exeter.ac.uk
Wed Nov 4 12:13:53 CET 2015


Hi Eike,

Thanks for your reply. I have install gcc with home-brew, (but the name had changed in /usr/bin). However if I take your suggestion or use the correct name, I get the following error

Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- broken
CMake Error at /usr/local/Cellar/cmake/3.3.2/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/bin/clang" is not able to compile a simple test
  program.

This suggest that the C compiler is not working correctly, but if I test it with a little hello world c file it works fine.

Cheers

Tim


Dr Tim Dodwell
Lecturer in Engineering Mathematics
Rm 221 - Harrison Building
College of Engineering, Mathematics & Physical Sciences
University of Exeter
Exeter
Devon
EX4 4PY

mail: t.dodwell(at)exeter.ac.uk
tel: +44 (0)1392 725899
mob: +44 (0)7745 622870
web: http://emps.exeter.ac.uk/engineering/staff/td336
Papers and Pre-prints: @Research-Gate
Citations: @Google-Scholar

This email and any attachment may contain information that is confidential, privileged, or subject to copyright, and which may be exempt from disclosure under applicable legislation. It is intended for the addressee only. If you received this message in error, please let me know and delete the email and any attachments immediately. The University will not accept responsibility for the accuracy/completeness of this email and its attachments.

________________________________________
From: Eike Mueller <E.Mueller at bath.ac.uk>
Sent: 04 November 2015 10:20
To: Dodwell, Timothy
Cc: DUNE Liste
Subject: Re: Dune install issue

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$

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20151104/ac01e2c8/attachment.htm>


More information about the Dune mailing list