← Back to team overview

dolfin team mailing list archive

problem compiling modules

 

Hi,

I'm trying to compile the a fresh dolfin version with --enable-petsc as
an option for configure:

CPPFLAGS="-I$PETSC_DIR/externalpackages/UMFPACKv4.3/AMD/Include"
./configure --prefix=$INSTALL_PATH --enable-static --enable-optimization
--enable-petsc --enable-mpi --with-petsc-dir=$PETSC_DIR
--with-boost=$INSTALL_PATH
--with-umfpack-lib=$PETSC_DIR/externalpackages/UMFPACKv4.3/$PETSC_ARCH/UMFPACK/Lib
--with-amd-lib=$PETSC_DIR/externalpackages/UMFPACKv4.3/$PETSC_ARCH/AMD/Lib
--with-umfpack-include=$PETSC_DIR/externalpackages/UMFPACKv4.3/$PETSC_ARCH/UMFPACK/Include
--disable-pydolfin

 
I get the following errors with make:

.....
.....
PETScMatrix.cpp:257: error: reinterpret_cast from type 'const
dolfin::uint*' to type 'int*' casts away constnes
PETScMatrix.cpp:258: error: reinterpret_cast from type 'const
dolfin::uint*' to type 'int*' casts away constness
PETScMatrix.cpp: In member function 'virtual void
dolfin::PETScMatrix::set(const dolfin::real*, dolfin::uint, const
dolfin::uint*, dolfin::uint, const dolfin::uint*)':
PETScMatrix.cpp:268: error: reinterpret_cast from type 'const
dolfin::uint*' to type 'int*' casts away constness
PETScMatrix.cpp:269: error: reinterpret_cast from type 'const
dolfin::uint*' to type 'int*' casts away constness
.....
.....

angelo