[Dune] how to force a rebuild from scratch with cmake build system ?
Benedikt Oswald
benedikt.oswald at lspr.ch
Thu Apr 24 16:40:24 CEST 2014
Hello Christoph,
thanks, forcing the rebuild now works.
However, I realise cmake picks up the wrong compilers, such as:
---- using default flags $CONFIGURE_FLAGS from /Users/oswald/gitwork/nanofactory/vulcain-pure-dune/vulcain.os.imac.lsprag.gcc481.cmake.opts -----
cmake -DCMAKE_MODULE_PATH="" -DUSE_MPI=ON -DCMAKE_CXX_FLAGS="-O2" -DBOOST_ROOT="/Users/oswald/extlib/boost/1.55.0/gcc/4.8.1" -DCMAKE_PREFIX_PATH="/Users/oswald/extlib/boost/1.55.0/gcc/4.8.1;/Users/oswald/extlib/alugrid/1.96/openmpi/1.6.5/gcc/4.8.1;/Users/oswald/extlib/metis/5.1.0/gcc/4.8.1;/Users/oswald/extlib/parmetis/4.0.3/openmpi/1.6.5/gcc/4.8.1" "/Users/oswald/gitwork/nanofactory/vulcain-pure-dune/dune-common"
-- The C compiler identification is Clang 5.1.0
-- The CXX compiler identification is Clang 5.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /Users/oswald/extlib/gcc/4.8.1/gcc/4.8.1/bin/gfortran
-- Check for working Fortran compiler: /Users/oswald/extlib/gcc/4.8.1/gcc/4.8.1/bin/gfortran -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /Users/oswald/extlib/gcc/4.8.1/gcc/4.8.1/bin/gfortran supports Fortran 90
-- Checking whether /Users/oswald/extlib/gcc/4.8.1/gcc/4.8.1/bin/gfortran supports Fortran 90 -- yes
-- Checking to see if CXX compiler accepts flag -std=c++11
-- Checking to see if CXX compiler accepts flag -std=c++11 - yes
I do not understand why it picks up /usr/bin/c++ ?
which is the cmake variable to specify the right compilers ? I use:
CMAKE_FLAGS="-DCMAKE_CXX_FLAGS=\"-O2\" -DBOOST_ROOT=\"$HOME/extlib/boost/1.55.0/gcc/4.8.1\" -DCMAKE_PREFIX_PATH=\"$HOME/extlib/boost/1.55.0/gcc/4.8.1;$HOME/extlib/alugrid/1.52/openmpi/1.6.5/gcc/4.8.1;$HOME/extlib/metis/5.1.0/gcc/4.8.1;$HOME/extlib/parmetis/4.0.3/openmpi/1.6.5/gcc/4.8.1\" "
CONFIGURE_FLAGS="--enable-parallel --enable-experimental-grid-extensions --enable-shared --enable-static”
Thanks, Benedikt
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone - +41 43 366 90 74
Technoparkstrasse 1, CH-8005 Zürich, benedikt.oswald at lspr.ch - labor vincit omnia improbus
--------------------------------------------------------------------------------------------------------------------------------------------------------------
On 24 Apr 2014, at 15:34, Christoph Grüninger <christoph.grueninger at iws.uni-stuttgart.de> wrote:
> Hi Benedikt,
> just remove the folder build-cmake/ below your module to force a
> rebuild. You can simply delete the build-cmake/CMakeCache.txt, but I go
> for sure and get rid of everything.
>
> To run in parallel, I added the following line to my opts file:
> CONFIGURE_FLAGS="--enable-parallel"
>
> I promise to finish the started very basic documentation about the CMake
> build system.
>
> Bye
> Christoph
>
> --
> ... as Sir Cyril Hinshelwood has observed ...fluid dynamicists
> were divided into hydraulic engineers who observed things that
> could not be explained and mathematicians who explained things
> that could not be observed. -- James Lighthill
> *********************************************
> CMWR 2014: 10th - 13th June 2014 in Stuttgart
> Please visit www.cmwr14.de
> *********************************************
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140424/024fb6cb/attachment.sig>
More information about the Dune
mailing list