[Dune] building dune-python
Ziad Boutanios
ziad.boutanios at gmail.com
Sat Mar 7 20:07:23 CET 2020
Hi,
*OS*:
debian stable
*Dune modules built*:
dune-fem dune-geometry dune-localfunctions dune-spgrid dune-alugrid
dune-fempy dune-grid dune-pdelab dune-typetree dune-common
dune-functions dune-istl dune-python dune-uggrid
*Options*: (in config.opts)
BUILDDIR=build-cmake
USE_CMAKE=yes
MAKE_FLAGS=-j4
CXXFLAGS="-O3 -DNDEBUG -funroll-loops -finline-functions -Wall
-ftree-vectorize -fno-stack-protector -mtune=native"
CMAKE_FLAGS="-DCMAKE_CXX_FLAGS='$CXXFLAGS' \
-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
-DALLOW_CXXFLAGS_OVERWRITE=ON \
-DENABLE_HEADERCHECK=OFF \
-DUSE_PTHREADS=ON \
-DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE \
-DCMAKE_DISABLE_DOCUMENTATION=TRUE \
-DADDITIONAL_PIP_PARAMS="-upgrade" \
-DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS=TRUE \
-DPYTHON_INSTALL_LOCATION="system"
"
I'm also working within a python3 virtual environment. The build
completed without errors following this command:
/ ./dune-common/bin/dunecontrol --opts=config.opts all/
but when trying to complete the dune-python installation with:
/ ./dune-python/bin/setup-dunepy.py --opts=config.opts install/
I get the following errors:
/Failed building wheel for dune.python//
// Cache entry deserialization failed, entry ignored//
// Cache entry deserialization failed, entry ignored//
// Cache entry deserialization failed, entry ignored//
// Failed building wheel for dune.fem//
// Failed building wheel for UFL//
// Failed building wheel for dune.spgrid//
// Failed building wheel for dune.alugrid/
Running /python test.py/ in dune-python/demo returns the following:
/configuration did not work: CMake Error at CMakeLists.txt:8
(find_package)://
// By not providing "Finddune-common.cmake" in CMAKE_MODULE_PATH this
project//
// has asked CMake to find a package configuration file provided by//
// "dune-common", but CMake did not find one.//
//
// Could not find a package configuration file provided by
"dune-common" with//
// any of the following names://
//
// dune-commonConfig.cmake//
// dune-common-config.cmake//
//
// Add the installation prefix of "dune-common" to CMAKE_PREFIX_PATH or
set//
// "dune-common_DIR" to a directory containing one of the above files.
If//
// "dune-common" provides a separate development package or SDK, be
sure it//
// has been installed./
Tried setting CMAKE_PREFIX_PATH to the installation prefix of
dune-common and configuring again but still the same errors.
I'm surprised the configuration script is not finding the dune-common
location automatically. Also, the two files dune-commonConfig.cmake and
dune-common-config.cmake are nowhere to be found in the modules folders.
Is there more to it than the official instructions on the website?
Strangely enough some of the dependency checks of setup-dunepy.py ask
for module versions >=2.8
Thanks in advance,
Ziad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20200307/cb8dcf7f/attachment.htm>
More information about the Dune
mailing list