← Back to team overview

dolfin team mailing list archive

Re: MTL4 errors when building DOLFIN

 



Kristian Oelgaard wrote:
Quoting Harish Narayanan <harish.mlists@xxxxxxxxx>:

Garth N. Wells wrote:
You need to use the development version,

     svn co https://svn.osl.iu.edu/tlc/trunk/mtl4/trunk mtl4
I too see the same errors, and I use the development version from their
svn repository. Is there something else that needs to be done to
"install" MTL4 apart from copying the header files in its boost folder
to the system boost tree?

I just installed it locally and set the variable

MTL4_DIR = /home/oelgaard/local/lib/mtl4


That's the way to do it. I wouldn't put it in the system tree.

Garth

Kristian
Garth

Kristian Oelgaard wrote:
Hi,
I get a ton of errors when building DOLFIN

mpicxx -o dolfin/la/MTL4Vector.os -c -Wall -pipe -ansi -DDEBUG -g -Werror
-DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK
-DPACKAGE_VERSION=\"0.8.0\"
-DHAS_UMFPACK=1 -DHAS_GTS=1 -DHAS_CHOLMOD=1 -DHAS_MTL4=1 -fPIC -I.
-I/home/oelgaard/local/include -I/usr/include/libxml2
-I/usr/include/suitesparse
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/suitesparse
-I/home/oelgaard/local/lib/mtl4 dolfin/la/MTL4Vector.cpp
In file included from dolfin/la/MTL4Factory.h:15,
                 from dolfin/la/DefaultFactory.cpp:11:
dolfin/la/MTL4Vector.h: In member function ‘virtual const dolfin::real*
dolfin::MTL4Vector::data() const’:
dolfin/la/MTL4Vector.h:124: error: ‘const class dolfin::mtl4_vector’ has
no
member named ‘address_data’
dolfin/la/MTL4Vector.h: In member function ‘virtual dolfin::real*
dolfin::MTL4Vector::data()’:
dolfin/la/MTL4Vector.h:128: error: ‘class dolfin::mtl4_vector’ has no
member
named ‘address_data’
In file included from ./dolfin/la/KrylovSolver.h:24,
                 from dolfin/la/CholmodCholeskySolver.cpp:11:
./dolfin/la/MTL4Vector.h: In member function ‘virtual const dolfin::real*
dolfin::MTL4Vector::data() const’:
./dolfin/la/MTL4Vector.h:124: error: ‘const class dolfin::mtl4_vector’ has
no
member named ‘address_data’
./dolfin/la/MTL4Vector.h: In member function ‘virtual dolfin::real*
dolfin::MTL4Vector::data()’:
./dolfin/la/MTL4Vector.h:128: error: ‘class dolfin::mtl4_vector’ has no
member
named ‘address_data’
scons: *** [dolfin/la/CholmodCholeskySolver.os] Error 1
scons: *** [dolfin/la/DefaultFactory.os] Error 1
In file included from dolfin/la/ITLKrylovSolver.cpp:15:
dolfin/la/MTL4Vector.h: In member function ‘virtual const dolfin::real*
dolfin::MTL4Vector::data() const’:
dolfin/la/MTL4Vector.h:124: error: ‘const class dolfin::mtl4_vector’ has
no
member named ‘address_data’
dolfin/la/MTL4Vector.h: In member function ‘virtual dolfin::real*
dolfin::MTL4Vector::data()’:
dolfin/la/MTL4Vector.h:128: error: ‘class dolfin::mtl4_vector’ has no
member
named ‘address_data’
In file included from dolfin/la/MTL4Factory.h:15,
                 from dolfin/la/MTL4Factory.cpp:11:
dolfin/la/MTL4Vector.h: In member function ‘virtual const dolfin::real*
dolfin::MTL4Vector::data() const’:
dolfin/la/MTL4Vector.h:124: error: ‘const class dolfin::mtl4_vector’ has
no
member named ‘address_data’
dolfin/la/MTL4Vector.h: In member function ‘virtual dolfin::real*
dolfin::MTL4Vector::data()’:
dolfin/la/MTL4Vector.h:128: error: ‘class dolfin::mtl4_vector’ has no
member
named ‘address_data’
scons: *** [dolfin/la/MTL4Factory.os] Error 1
In file included from dolfin/la/MTL4Matrix.cpp:14:
dolfin/la/MTL4Vector.h: In member function ‘virtual const dolfin::real*
dolfin::MTL4Vector::data() const’:
dolfin/la/MTL4Vector.h:124: error: ‘const class dolfin::mtl4_vector’ has
no
member named ‘address_data’
dolfin/la/MTL4Vector.h: In member function ‘virtual dolfin::real*
dolfin::MTL4Vector::data()’:
dolfin/la/MTL4Vector.h:128: error: ‘class dolfin::mtl4_vector’ has no
member
named ‘address_data’
scons: *** [dolfin/la/ITLKrylovSolver.os] Error 1
dolfin/la/MTL4Matrix.cpp: In member function ‘virtual
boost::tuples::tuple<const
size_t*, const size_t*, const double*, int, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type>
dolfin::MTL4Matrix::data()
const’:
dolfin/la/MTL4Matrix.cpp:280: error: ‘const class
dolfin::mtl4_sparse_matrix’
has no member named ‘address_major’
dolfin/la/MTL4Matrix.cpp:280: error: ‘const class
dolfin::mtl4_sparse_matrix’
has no member named ‘address_minor’
dolfin/la/MTL4Matrix.cpp:280: error: ‘const class
dolfin::mtl4_sparse_matrix’
has no member named ‘address_data’
In file included from dolfin/la/MTL4Vector.cpp:19:
dolfin/la/MTL4Vector.h: In member function ‘virtual const dolfin::real*
dolfin::MTL4Vector::data() const’:
dolfin/la/MTL4Vector.h:124: error: ‘const class dolfin::mtl4_vector’ has
no
member named ‘address_data’
dolfin/la/MTL4Vector.h: In member function ‘virtual dolfin::real*
dolfin::MTL4Vector::data()’:
dolfin/la/MTL4Vector.h:128: error: ‘class dolfin::mtl4_vector’ has no
member
named ‘address_data’
scons: *** [dolfin/la/MTL4Vector.os] Error 1
scons: *** [dolfin/la/MTL4Matrix.os] Error 1
In file included from dolfin/la/LUSolver.h:28,
                 from dolfin/la/LinearSolver.cpp:7:
dolfin/la/MTL4Vector.h: In member function ‘virtual const dolfin::real*
dolfin::MTL4Vector::data() const’:
dolfin/la/MTL4Vector.h:124: error: ‘const class dolfin::mtl4_vector’ has
no
member named ‘address_data’
dolfin/la/MTL4Vector.h: In member function ‘virtual dolfin::real*
dolfin::MTL4Vector::data()’:
dolfin/la/MTL4Vector.h:128: error: ‘class dolfin::mtl4_vector’ has no
member
named ‘address_data’
scons: *** [dolfin/la/LinearSolver.os] Error 1
scons: building terminated because of errors.

configure picks up mtl4, but I haven't updated it for a while though.

Checking for libxml-2.0... yes
Resolving compiler... done
Found optional package: umfpack
Found optional package: gts
Found optional package: cholmod
Found optional package: mtl4
Unable to find optional package: petsc
Unable to find optional package: slepc
Unable to find optional package: scotch
Unable to find optional package: trilinos
Enabling compilation of PyDOLFIN
scons: done reading SConscript files.

configure options:
./scons.local enablePetsc=0 -j8

Kristian
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev






Follow ups

References