Installation error, unable to configure with p4est

29 views
Skip to first unread message

vachan potluri

unread,
Oct 4, 2019, 8:44:41 AM10/4/19
to deal.II User Group
Hello all,

I had a working deal.II installation configured with PETSc for which, I unfortunately forgot the compile command. I now want to compile deal.II with p4est support. I tried doing

cmake -DDEAL_II_WITH_P4EST=ON -DP4EST_DIR=~/p4est-2.2/ -DDEAL_II_WITH_MPI=ON -DDEAL_II_WITH_PETSC=ON -DPETSC_DIR=$PETSC_DIR -DPETSC_ARCH=$PETSC_ARCH -DDEAL_II_WITH_ZLIB=ON -DCMAKE_INSTALL_PREFIX=$DEAL_II_DIR -DCMAKE_CXX_COMPILER="mpicxx" -DCMAKE_C_COMPILER="mpicc" ~/dealii-9.1.1/

but, the configuration failed (output and error logs attached).

I then tried a basic installation, but that too failed.

cmake -DCMAKE_INSTALL_PREFIX=$DEAL_II_DIR -DCMAKE_CXX_COMPILER="mpicxx" -DCMAKE_C_COMPILER="mpicc" ~/dealii-9.1.1/

As far as I noticed, there were 3 kinds of errors in the error log
  1. AVX related: error stating no AVX support
  2. Flag errors: " unrecognized command line option '-Wclass-memaccess' " for example
  3. Complex operator overload error: " no match for ‘operator*’ (operand types are ‘float’ and ‘std::complex<double>’) " for example
Please help me correct the issue

Thanks vachan
CMakeError.log
CMakeOutput.log

vachan potluri

unread,
Oct 4, 2019, 8:52:05 AM10/4/19
to deal.II User Group
Sorry for incomplete information, cmake exits with the following message.

###
#
#  deal.II configuration:
#        CMAKE_BUILD_TYPE:       DebugRelease
#        BUILD_SHARED_LIBS:      ON
#        CMAKE_INSTALL_PREFIX:   /home/vachan/bin/dealii
#        CMAKE_SOURCE_DIR:       /home/vachan/dealii-9.1.1
#                                (version 9.1.1)
#        CMAKE_BINARY_DIR:       /home/vachan/build/dealii
#        CMAKE_CXX_COMPILER:     GNU 7.4.0 on platform Linux x86_64
#                                /usr/local/bin/mpicxx
#
#  Configured Features (DEAL_II_ALLOW_BUNDLED = ON, DEAL_II_ALLOW_AUTODETECTION = ON):
#      ( DEAL_II_WITH_64BIT_INDICES = OFF )
#      ( DEAL_II_WITH_ADOLC = OFF )
#      ( DEAL_II_WITH_ARPACK = OFF )
#      ( DEAL_II_WITH_ASSIMP = OFF )
#        DEAL_II_WITH_BOOST set up with bundled packages
#      ( DEAL_II_WITH_COMPLEX_VALUES = OFF )
#      ( DEAL_II_WITH_CUDA = OFF )
#        DEAL_II_WITH_CXX14 = ON
#        DEAL_II_WITH_CXX17 = ON
#      ( DEAL_II_WITH_GINKGO = OFF )
#      ( DEAL_II_WITH_GMSH = OFF )
#      ( DEAL_II_WITH_GSL = OFF )
#      ( DEAL_II_WITH_HDF5 = OFF )
#      ( DEAL_II_WITH_LAPACK = OFF )
#      ( DEAL_II_WITH_METIS = OFF )
#        DEAL_II_WITH_MPI set up with external dependencies
#        DEAL_II_WITH_MUPARSER set up with bundled packages
#      ( DEAL_II_WITH_NANOFLANN = OFF )
#      ( DEAL_II_WITH_NETCDF = OFF )
#      ( DEAL_II_WITH_OPENCASCADE = OFF )
#        DEAL_II_WITH_P4EST set up with external dependencies
#        DEAL_II_WITH_PETSC set up with external dependencies
#      ( DEAL_II_WITH_SCALAPACK = OFF )
#      ( DEAL_II_WITH_SLEPC = OFF )
#      ( DEAL_II_WITH_SUNDIALS = OFF )
#      ( DEAL_II_WITH_SYMENGINE = OFF )
#        DEAL_II_WITH_THREADS set up with bundled packages
#      ( DEAL_II_WITH_TRILINOS = OFF )
#      ( DEAL_II_WITH_UMFPACK = OFF )
#        DEAL_II_WITH_ZLIB set up with external dependencies
#
#  Component configuration:
#      ( DEAL_II_COMPONENT_DOCUMENTATION = OFF )
#        DEAL_II_COMPONENT_EXAMPLES
#      ( DEAL_II_COMPONENT_PACKAGE = OFF )
#      ( DEAL_II_COMPONENT_PYTHON_BINDINGS = OFF )
#
#  Detailed information (compiler flags, feature configuration) can be found in detailed.log
#
#  Run  $ make info  to print a help message with a list of top level targets
#
###
-- Configuring incomplete, errors occurred!
See also "/home/vachan/build/dealii/CMakeFiles/CMakeOutput.log".
See also "/home/vachan/build/dealii/CMakeFiles/CMakeError.log".

vachan potluri

unread,
Oct 5, 2019, 1:34:55 AM10/5/19
to deal.II User Group
Okay, I found the error. Some time back, I noted changing
include/deal.II/base/config.h.in
to
include/deal.II/base/config.h
(removed the .in). I don't remember exactly, but the reason I did this was because some error popped up while compiling one of the initial tutorials. This was my mistake.

The complete error message of cmake (on the terminal) mentions that config.h.in file is missing. So now, I made a copy and, the configuration and installation went fine.

However,
make test
for p4est failed with the following message
There are not enough slots available in the system to satisfy the 10 slots
that were requested by the application:
  ./p4est.debug

Either request fewer slots for your application, or make more slots available
for use.
It is true that my PC has only 4 slots (8 with hyper threading). So can I ignore this error?

Daniel Arndt

unread,
Oct 5, 2019, 12:19:15 PM10/5/19
to dea...@googlegroups.com
Vachan,

[...]
However,
make test
for p4est failed with the following message
There are not enough slots available in the system to satisfy the 10 slots
that were requested by the application:
  ./p4est.debug

Either request fewer slots for your application, or make more slots available
for use.
It is true that my PC has only 4 slots (8 with hyper threading). So can I ignore this error?

Yes, you can likely ignore the error. If you really want to run this quicktest, you can change
make_quicktest("p4est" ${_mybuild} 10)
to
make_quicktest("p4est" ${_mybuild} 4)
in tests/quick_tests/CMakeLists.txt.

Best,
Daniel

vachan potluri

unread,
Oct 6, 2019, 12:01:58 AM10/6/19
to deal.II User Group
Yes, you can likely ignore the error. If you really want to run this quicktest, you can change
make_quicktest("p4est" ${_mybuild} 10)
to
make_quicktest("p4est" ${_mybuild} 4)
in tests/quick_tests/CMakeLists.txt.

This works. Thanks. 
Reply all
Reply to author
Forward
0 new messages