[Dune] Problem with installation

Lars Diening ldiening at uni-osnabrueck.de
Thu Aug 4 10:32:25 CEST 2016


Hi Christoph,

thanks for your fast answer (at bottom).

I already installed gcc-4.9 yesterday as follows:

--

|sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update 
sudo apt-get install gcc-4.9 g++-4.9 sudo update-alternatives --install 
/usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ 
/usr/bin/g++-4.9|

--

The command "gcc --version" gives

--
gcc (Ubuntu 4.9.3-8ubuntu2~14.04) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--

Then I run:
dune-common/bin/dunecontrol all

I still get the same error:

-------------------
diening at tpdiening:~/dune$ dune-common/bin/dunecontrol all
WARNING: could not find module dune-uggrid,
        module is also unknown to pkg-config.
        Maybe you need to adjust PKG_CONFIG_PATH!
        dune-uggrid is suggested by dune-grid
Skipping dune-uggrid!
WARNING: could not find module dune-uggrid,
        module is also unknown to pkg-config.
        Maybe you need to adjust PKG_CONFIG_PATH!
        dune-uggrid is suggested by dune-grid
Skipping dune-uggrid!
--- going to build dune-common dune-geometry dune-localfunctions 
dune-istl dune-grid dune-typetree dune-alugrid dune-pdelab 
dune-pdelab-howto dune-grid-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 ---
  cmake -DCMAKE_MODULE_PATH="" -DCMAKE_DISABLE_FIND_PACKAGE_MPI=FALSE 
"/home/diening/dune/dune-common"
-- I could not find the biber command.
-- Could NOT find Sphinx (missing:  SPHINX_EXECUTABLE)
-- Performing tests specific to dune-common from file 
/home/diening/dune/dune-common/cmake/modules/DuneCommonMacros.cmake.
-- A library with BLAS API found.
-- A library with LAPACK API found.
CMake Warning at cmake/modules/DuneCommonMacros.cmake:29 (find_package):
   By not providing "FindVc.cmake" in CMAKE_MODULE_PATH this project has 
asked
   CMake to find a package configuration file provided by "Vc", but 
CMake did
   not find one.

   Could not find a package configuration file provided by "Vc" with any of
   the following names:

     VcConfig.cmake
     vc-config.cmake

   Add the installation prefix of "Vc" to CMAKE_PREFIX_PATH or set 
"Vc_DIR" to
   a directory containing one of the above files.  If "Vc" provides a 
separate
   development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
   cmake/modules/DuneMacros.cmake:570 (include)
   cmake/modules/DuneMacros.cmake:714 (dune_process_dependency_macros)
   CMakeLists.txt:17 (dune_project)


-- Using scripts from /home/diening/dune/dune-common/cmake/scripts for 
creating doxygen stuff.
-- using /home/diening/dune/dune-common/doc/doxygen/Doxystyle to create 
doxystyle file
-- Skipping building CMake API documentation (Sphinx was not found!)
-- Not adding custom target for config.h generation
-- 
-- The following OPTIONAL packages have been found:

  * MPI
  * PythonInterp
  * Doxygen
  * PkgConfig
  * BLAS
  * Threads
  * LAPACK
  * GMP
  * Inkscape

-- The following OPTIONAL packages have not been found:

  * ThreadsCMake31
  * LATEX
  * UnixCommands
  * Sphinx
  * Vc , C++ Vectorization library , <https://github.com/VcDevel/Vc>

-- Configuring done
-- Generating done
-- Build files have been written to: 
/home/diening/dune/dune-common/build-cmake
--- calling make for dune-common ---
build directory: build-cmake
cmake --build . --
[  7%] Building CXX object 
dune/common/CMakeFiles/dunecommon.dir/parametertree.cc.o
In file included from 
/home/diening/dune/dune-common/dune/common/fvector.hh:16:0,
                  from 
/home/diening/dune/dune-common/dune/common/parametertree.hh:26,
                  from 
/home/diening/dune/dune-common/dune/common/parametertree.cc:18:
/home/diening/dune/dune-common/dune/common/typetraits.hh:521:62: error: 
‘decay_t’ is not a member of ‘std’
    struct IsIntegralConstant : public 
Imp::IsIntegralConstant<std::decay_t<T>>
                                                               ^
/home/diening/dune/dune-common/dune/common/typetraits.hh:521:62: error: 
‘decay_t’ is not a member of ‘std’
/home/diening/dune/dune-common/dune/common/typetraits.hh:521:75: error: 
template argument 1 is invalid
    struct IsIntegralConstant : public 
Imp::IsIntegralConstant<std::decay_t<T>>
^
/home/diening/dune/dune-common/dune/common/typetraits.hh:521:76: error: 
expected ‘{’ before ‘>’ token
    struct IsIntegralConstant : public 
Imp::IsIntegralConstant<std::decay_t<T>>
^
/home/diening/dune/dune-common/dune/common/typetraits.hh:521:76: error: 
expected unqualified-id before ‘>’ token
make[2]: *** [dune/common/CMakeFiles/dunecommon.dir/parametertree.cc.o] 
Error 1
make[1]: *** [dune/common/CMakeFiles/dunecommon.dir/all] Error 2
make: *** [all] Error 2
--- Failed to build dune-common ---
Terminating dunecontrol due to previous errors!
---------------------

What should I do?

Best wishes,

Lars



On 08/03/2016 05:16 PM, Christoph Grüninger wrote:
> Hi Lars,
> your compiler is too old, is does not support C++14.
> GCC 4.9 or Clang 3.8 (or 3.5 with a libc++ and not
> libstdcxx) is sufficient.
>
> We (Dune) should add a check to warn properly about too
> old compilers instead of leaving you like that.
>
> Bye
> Christoph
>

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


More information about the Dune mailing list