I am trying to compile dolfin 2019.1 from source (master of the
bitbucket repo) on my archlinux laptop. The dependencies were installed
from the arch repositories, in particular current PETSc (petsc-git,
3.14.4), openmpi, lapack+openblas, boost (current version 1.75 prompts a
cmake warning?).
Compiling dolfin gives the following error:
[ 23%] Building CXX object dolfin/CMakeFiles/dolfin.dir/fem/solve.cpp.o
/home/david/work/dev/build/fenics-master-2021-02-04/dolfin/dolfin/fem/PETScDMCollection.cpp:
In static member function ‘static std::shared_ptr<dolfin::PETScMatrix>
dolfin::PETScDMCollection::create_transfer_matrix(const
dolfin::FunctionSpace&, const dolfin::FunctionSpace&)’:
/home/david/work/dev/build/fenics-master-2021-02-04/dolfin/dolfin/fem/PETScDMCollection.cpp:596:46:
error: cannot convert ‘double*’ to ‘const PetscScalar*’ {aka ‘const
std::complex<double>*’}
596 | values[fine_row].data(), INSERT_VALUES);
| ~~~~~~~~~~~~~~~~~~~~~^~
| |
| double*
In file included from
/home/david/work/dev/build/fenics-master-2021-02-04/dolfin/dolfin/la/PETScMatrix.h:37,
from
/home/david/work/dev/build/fenics-master-2021-02-04/dolfin/dolfin/fem/PETScDMCollection.cpp:24:
/usr/local/petsc/linux-c-opt/include/petscmat.h:368:98: note:
initializing argument 6 of ‘PetscErrorCode MatSetValues(Mat, PetscInt,
const PetscInt*, PetscInt, const PetscInt*, const PetscScalar*, InsertMode)’
368 | PETSC_EXTERN PetscErrorCode MatSetValues(Mat,PetscInt,const
PetscInt[],PetscInt,const PetscInt[],const PetscScalar[],InsertMode);
|
^~~~~~~~~~~~~~~~~~~
make[2]: *** [dolfin/CMakeFiles/dolfin.dir/build.make:745:
dolfin/CMakeFiles/dolfin.dir/fem/PETScDMCollection.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1730:
dolfin/CMakeFiles/dolfin.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
The full log is attached.
I'd very much appreciate any hints and comments. Thank you in advance!
Best wishes
David
--
You received this message because you are subscribed to the Google Groups "fenics-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fenics-suppor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fenics-support/262ebaa14db0abef0594f742cacc20eaaebc3b41.camel%40gmail.com.