[Dune] dune-localfunctions does not want to build using cmake

Aleksejs Fomins aleksejs.fomins at lspr.ch
Tue Nov 25 15:33:24 CET 2014


Dear Duners,

I just tried building the whole project using CMAKE

time ./dune-common/bin/dunecontrol --use-cmake
--opts=af.debian7.lsprag.cmakebuild.minimalistic.opts all

and it stopped at dune-localfunctions with the following claim:

---------------------------------------------------------------------
CMake Error at dune/localfunctions/test/CMakeLists.txt:27 (add_executable):
  Cannot find source file:

    monomshapefunctiontest.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
---------------------------------------------------------------------

I have just run dunecontrol update all, so I think I am at the latest
version, and the problem persists. I attach the complete output and the
opts file.

Regards,
Aleksejs
-------------- next part --------------
----- using default flags $CONFIGURE_FLAGS from /home/fomins/gitwork/hades-github-lspr-ag/af.debian7.lsprag.cmakebuild.minimalistic.opts -----
--- going to build dune-common dune-geometry dune-grid dune-localfunctions dune-alugrid dune-curvilineargeometry dune-istl dune-grid-howto dune-curvilineargrid  ---
No build directory provided. Defaulting to the sub directory build-cmake
--- 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 ---
----- using default flags $CONFIGURE_FLAGS from /home/fomins/gitwork/hades-github-lspr-ag/af.debian7.lsprag.cmakebuild.minimalistic.opts -----
 CXX=mpicxx CC=mpicc cmake -DCMAKE_MODULE_PATH=""  -DUSE_MPI=ON -DCXXFLAGS="-O2 -Wall" -DCMAKE_PREFIX_PATH="/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0;/opt/extlib/metis/5.1.0/gcc/4.9.0;" -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE "/home/fomins/gitwork/hades-github-lspr-ag/dune-common"
-- I could not find the latex2html command.
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Performing tests specific to dune-common from file /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneCommonMacros.cmake.
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Could NOT find GMP (missing:  GMP_INCLUDE_DIR GMP_LIB GMPXX_LIB GMP_HEADER_WORKS GMPXX_LIB_WORKS) 
-- Could NOT find Boost
-- Using scripts from /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/scripts for creating doxygen stuff.
-- Not adding custom target for config.h generation
-- 
-- The following OPTIONAL packages have been found:

 * PkgConfig
 * BLAS
 * LAPACK
 * Inkscape
 * MPI
 * Threads

-- The following OPTIONAL packages have not been found:

 * LATEX
 * UnixCommands
 * Doxygen
 * GMP
 * Boost

-- Configuring done
-- Generating done
-- Build files have been written to: /home/fomins/gitwork/hades-github-lspr-ag/dune-common/build-cmake
--- calling make for dune-common ---
make 
[ 66%] Built target dunecommon
[ 83%] Built target indexset
[ 83%] Built target poosc08
[100%] Built target poosc08_test
--- dune-common done ---
No build directory provided. Defaulting to the sub directory build-cmake
--- calling all for dune-geometry ---
--- calling vcsetup for dune-geometry ---
--- calling autogen for dune-geometry ---
Skipping dune-autogen because of CMake
--- calling configure for dune-geometry ---
----- using default flags $CONFIGURE_FLAGS from /home/fomins/gitwork/hades-github-lspr-ag/af.debian7.lsprag.cmakebuild.minimalistic.opts -----
/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry/lib/dunegeometryam2cmake.lib for converting options does not exist
 CXX=mpicxx CC=mpicc cmake -DCMAKE_MODULE_PATH=""  -DUSE_MPI=ON "-Ddune-common_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-common/build-cmake" -DCXXFLAGS="-O2 -Wall" -DCMAKE_PREFIX_PATH="/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0;/opt/extlib/metis/5.1.0/gcc/4.9.0;" -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE "/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry"
-- Dependencies for dune-geometry: dune-common (>= 2.4)
-- I could not find the latex2html command.
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Performing tests specific to dune-common from file /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneCommonMacros.cmake.
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Could NOT find GMP (missing:  GMP_INCLUDE_DIR GMP_LIB GMPXX_LIB GMP_HEADER_WORKS GMPXX_LIB_WORKS) 
-- Could NOT find Boost
-- Setting dune-common_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-common
-- Setting dune-common_LIBRARIES=dunecommon
-- Using scripts from /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/scripts for creating doxygen stuff.
-- Adding custom target for config.h generation
-- 
-- The following OPTIONAL packages have been found:

 * MPI
 * PkgConfig
 * BLAS
 * Threads
 * LAPACK
 * Inkscape

-- The following REQUIRED packages have been found:

 * dune-common

-- The following OPTIONAL packages have not been found:

 * LATEX
 * UnixCommands
 * Doxygen
 * GMP
 * Boost

-- Configuring done
-- Generating done
-- Build files have been written to: /home/fomins/gitwork/hades-github-lspr-ag/dune-geometry/build-cmake
--- calling make for dune-geometry ---
make 
[100%] Built target dunegeometry
--- dune-geometry done ---
No build directory provided. Defaulting to the sub directory build-cmake
--- calling all for dune-grid ---
--- calling vcsetup for dune-grid ---
--- calling autogen for dune-grid ---
Skipping dune-autogen because of CMake
--- calling configure for dune-grid ---
----- using default flags $CONFIGURE_FLAGS from /home/fomins/gitwork/hades-github-lspr-ag/af.debian7.lsprag.cmakebuild.minimalistic.opts -----
/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry/lib/dunegeometryam2cmake.lib for converting options does not exist
 CXX=mpicxx CC=mpicc cmake -DCMAKE_MODULE_PATH=""  -DUSE_MPI=ON "-Ddune-common_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-common/build-cmake" "-Ddune-geometry_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry/build-cmake" -DENABLE_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE -DCXXFLAGS="-O2 -Wall" -DCMAKE_PREFIX_PATH="/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0;/opt/extlib/metis/5.1.0/gcc/4.9.0;" -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE "/home/fomins/gitwork/hades-github-lspr-ag/dune-grid"
-- Dependencies for dune-grid: dune-common (>= 2.4);dune-geometry (>= 2.4)
-- Dependencies for dune-geometry: dune-common (>= 2.4)
-- I could not find the latex2html command.
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Performing tests specific to dune-common from file /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneCommonMacros.cmake.
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Could NOT find GMP (missing:  GMP_INCLUDE_DIR GMP_LIB GMPXX_LIB GMP_HEADER_WORKS GMPXX_LIB_WORKS) 
-- Could NOT find Boost
-- Setting dune-common_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-common
-- Setting dune-common_LIBRARIES=dunecommon
-- Setting dune-geometry_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry
-- Setting dune-geometry_LIBRARIES=dunegeometry
-- Performing tests specific to dune-grid from file /home/fomins/gitwork/hades-github-lspr-ag/dune-grid/cmake/modules/DuneGridMacros.cmake.
-- checking for module 'alugrid'
--   package 'alugrid' not found
-- checking for module 'alugrid'
--   package 'alugrid' not found
-- Could NOT find ALUGrid (missing:  ALUGRID_VERSION ALUGRID_INCLUDE_PATH ALUGRID_LIB ALUGRID_LIB_PATH ALULIB_FUNCTIONAL HAVE_ALUGRID_SERIAL_H) 
CMake Warning at cmake/modules/UseUG.cmake:27 (find_package):
  Could not find a package configuration file provided by "UG" (requested
  version 3.11.0) with any of the following names:

    UGConfig.cmake
    ug-config.cmake

  Add the installation prefix of "UG" to CMAKE_PREFIX_PATH or set "UG_DIR" to
  a directory containing one of the above files.  If "UG" provides a separate
  development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  cmake/modules/DuneGridMacros.cmake:11 (include)
  /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneMacros.cmake:505 (include)
  /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneMacros.cmake:634 (dune_process_dependency_macros)
  CMakeLists.txt:22 (dune_project)


-- Could NOT find UG (missing:  UG_DIR HAVE_UG) 
-- Could NOT find Grape (missing:  GRAPE_INCLUDE_DIR GRAPE_LIBRARY _GRAPE_LIB_FUNCTIONAL _GRAPE_HEADER_USABLE) 
-- checking for one of the modules 'psurface'
-- checking for module 'psurface'
--   package 'psurface' not found
-- Could NOT find psurface (missing:  PSURFACE_INCLUDE_DIR PSURFACE_LIBRARY) 
-- Could NOT find AmiraMesh (missing:  AMIRAMESH_INCLUDE_DIR AMIRAMESH_LIBRARY) 
-- Using scripts from /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/scripts for creating doxygen stuff.
-- Adding custom target for config.h generation
-- 
-- The following features have been enabled:

 * Experimental grid extensions , Enables additional grid features.

-- The following OPTIONAL packages have been found:

 * MPI
 * PkgConfig
 * BLAS
 * Threads
 * LAPACK
 * Inkscape
 * X11
 * OpenGL

-- The following REQUIRED packages have been found:

 * dune-common
 * dune-geometry

-- The following OPTIONAL packages have not been found:

 * LATEX
 * UnixCommands
 * Doxygen
 * GMP
 * Boost
 * ALUGrid
 * Alberta
 * UG (required version >= 3.11.0)
 * Grape
 * Psurface
 * AmiraMesh

-- Configuring done
-- Generating done
-- Build files have been written to: /home/fomins/gitwork/hades-github-lspr-ag/dune-grid/build-cmake
--- calling make for dune-grid ---
make 
[100%] Built target dunegrid
--- dune-grid done ---
No build directory provided. Defaulting to the sub directory build-cmake
--- calling all for dune-localfunctions ---
--- calling vcsetup for dune-localfunctions ---
--- calling autogen for dune-localfunctions ---
Skipping dune-autogen because of CMake
--- calling configure for dune-localfunctions ---
----- using default flags $CONFIGURE_FLAGS from /home/fomins/gitwork/hades-github-lspr-ag/af.debian7.lsprag.cmakebuild.minimalistic.opts -----
/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry/lib/dunegeometryam2cmake.lib for converting options does not exist
/home/fomins/gitwork/hades-github-lspr-ag/dune-localfunctions/lib/dunelocalfunctionsam2cmake.lib for converting options does not exist
 CXX=mpicxx CC=mpicc cmake -DCMAKE_MODULE_PATH=""  -DUSE_MPI=ON "-Ddune-common_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-common/build-cmake" "-Ddune-geometry_DIR=/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry/build-cmake" -DCXXFLAGS="-O2 -Wall" -DCMAKE_PREFIX_PATH="/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0;/opt/extlib/metis/5.1.0/gcc/4.9.0;" -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE "/home/fomins/gitwork/hades-github-lspr-ag/dune-localfunctions"
-- Dependencies for dune-localfunctions: dune-geometry (>= 2.4)
-- Dependencies for dune-geometry: dune-common (>= 2.4)
-- I could not find the latex2html command.
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 
-- Performing tests specific to dune-common from file /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/modules/DuneCommonMacros.cmake.
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Could NOT find GMP (missing:  GMP_INCLUDE_DIR GMP_LIB GMPXX_LIB GMP_HEADER_WORKS GMPXX_LIB_WORKS) 
-- Could NOT find Boost
-- Setting dune-common_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-common
-- Setting dune-common_LIBRARIES=dunecommon
-- Setting dune-geometry_INCLUDE_DIRS=/home/fomins/gitwork/hades-github-lspr-ag/dune-geometry
-- Setting dune-geometry_LIBRARIES=dunegeometry
-- Performing tests specific to dune-localfunctions from file /home/fomins/gitwork/hades-github-lspr-ag/dune-localfunctions/cmake/modules/DuneLocalfunctionsMacros.cmake.
-- Using scripts from /home/fomins/gitwork/hades-github-lspr-ag/dune-common/cmake/scripts for creating doxygen stuff.
-- Adding custom target for config.h generation
-- 
-- The following OPTIONAL packages have been found:

 * MPI
 * PkgConfig
 * BLAS
 * Threads
 * LAPACK
 * Inkscape

-- The following REQUIRED packages have been found:

 * dune-common
 * dune-geometry

-- The following OPTIONAL packages have not been found:

 * LATEX
 * UnixCommands
 * Doxygen
 * GMP
 * Boost

-- Configuring done
CMake Error at dune/localfunctions/test/CMakeLists.txt:27 (add_executable):
  Cannot find source file:

    monomshapefunctiontest.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


-- Build files have been written to: /home/fomins/gitwork/hades-github-lspr-ag/dune-localfunctions/build-cmake
--- Failed to build dune-localfunctions ---
Terminating dunecontrol due to previous errors!
-------------- next part --------------
#################################################################################################################
## objective - opts file for building vulcain, based on Dune, with cmake
##
## history - 2014 apr 16, created
##
## usage - time ./dune-common/bin/dunecontrol --use-cmake --opts=vulcain.os.imac.lsprag.gcc481.cmake.opts all
##
##################################################################################################################


USE_CMAKE=yes

CONFIGURE_FLAGS="--enable-parallel --enable-experimental-grid-extensions CC=mpicc CXX=mpicxx" 

CMAKE_PREFIX_PATH="\
/opt/extlib/parmetis/4.0.3/openmpi/1.8.1/gcc/4.9.0;\
/opt/extlib/metis/5.1.0/gcc/4.9.0;\
"

CMAKE_FLAGS="\
-DCXXFLAGS=\"-O2 -Wall\" \
-DCMAKE_PREFIX_PATH=\"$CMAKE_PREFIX_PATH\" \
-DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE \
"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141125/19a61b8c/attachment.sig>


More information about the Dune mailing list