I tried to look into this. but am getting these errors now: c++ -o demo/function/eval/cpp/demo demo/function/eval/cpp/main.o -Ldolfin -L/usr/lib/atlas -ldolfin -lxml2 -llapack -lblas -lcholmod -lamd -lcolamd dolfin/libdolfin.so: undefined reference to `dolfin::IntersectionDetector::intersection(dolfin::Mesh&, dolfin::Array<unsigned int>&)' collect2: ld returned 1 exit status scons: *** [demo/function/eval/cpp/demo] Error 1 scons: building terminated because of errors.
ilmar Garth N. Wells wrote: > > > Ilmar Wilbers wrote: >> Both Linux buildbots: http://fenics.org:8010/dolfin/ >> > > Not sure what we can do about this. It looks like a compiler issue, > and the code causing the problem is in MTL/ITL so we can't just change > it. It works fine for me with both gcc 4.3.2 and gcc 4.2.3. > > We could add the offending code to the test for MTL, so if the MTL > will be disabled if the compiler has trouble. > > Garth > >> The Mac gives an error for SLEPcEigenSolver >> >> ilmar >> >> Garth N. Wells skrev: >>> Which compiler and OS are you having trouble with? >>> >>> Garth >>> >>> Ilmar Wilbers wrote: >>>> That did help, but now I am getting the following: >>>> c++ -o dolfin/la/MTL4Factory.os -c -Wall -pipe -ansi -Werror >>>> -DDEBUG -g -DNDEBUG -O2 -DPACKAGE_VERSION=\"0.8.0\" -DHAS_UMFPACK=1 >>>> -DHAS_TRILINOS=1 -DHAS_CHOLMOD=1 -DHAS_MTL4=1 -fPIC -I. >>>> -I/scratch/buildbot/local/include -I/usr/include/libxml2 >>>> -I/usr/include/suitesparse -I/simula/include >>>> -I/usr/include/suitesparse -I/scratch/buildbot/local/mtl4 >>>> dolfin/la/MTL4Factory.cpp >>>> cc1plus: warnings being treated as errors >>>> /scratch/buildbot/local/mtl4/boost/numeric/itl/iteration/basic_iteration.hpp: >>>> >>>> In instantiation of 'itl::basic_iteration<double>': >>>> dolfin/la/ITLKrylovSolver.cpp:59: instantiated from here >>>> /scratch/buildbot/local/mtl4/boost/numeric/itl/iteration/basic_iteration.hpp:23: >>>> >>>> warning: 'class itl::basic_iteration<double>' has virtual functions >>>> but non-virtual destructor >>>> scons: *** [dolfin/la/ITLKrylovSolver.os] Error 1 >>>> scons: building terminated because of errors. >>>> >>>> >>>> ilmar >>>> >>>> Garth N. Wells wrote: >>>>> Update MTL4. There have been same changes to the namespaces. >>>>> >>>>> Garth >>>>> >>>>> Ilmar Wilbers wrote: >>>>>> This is the same error as all the buildbots are giving. >>>>>> >>>>>> ilamr >>>>>> >>>>>> Ola Skavhaug wrote: >>>>>>> Hi, >>>>>>> >>>>>>> when trying to compile a fresh version of hg dolfin, I get the >>>>>>> following error(s): >>>>>>> >>>>>>> mpic++ -o dolfin/la/MTL4Matrix.os -c -Wall -pipe -ansi -Werror >>>>>>> -DDEBUG -g -DNDEBUG -O2 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK >>>>>>> -DPACKAGE_VERSION=\"0.8.0\" -DHAS_PETSC=1 -DHAS_SLEPC=1 >>>>>>> -DHAS_SCOTCH=1 -DHAS_UMFPACK=1 -DHAS_GTS=1 -DHAS_CHOLMOD=1 >>>>>>> -DHAS_MTL4=1 -fPIC -I. -I/usr/include/libxml2 >>>>>>> -I/home/skavhaug/extsoft/petsc-2.3.3-p8/bmake/linux-gnu-cxx-debug >>>>>>> -I/home/skavhaug/extsoft/petsc-2.3.3-p8/include >>>>>>> -I/usr/local/include -I/usr/local/lib -Idolfin >>>>>>> -I/home/skavhaug/extsoft/slepc-2.3.3 >>>>>>> -I/home/skavhaug/extsoft/slepc-2.3.3/include >>>>>>> -I/home/skavhaug/extsoft/petsc-2.3.3-p8/bmake/linux-gnu-cxx-debug >>>>>>> -I/home/skavhaug/extsoft/petsc-2.3.3-p8/include >>>>>>> -I/usr/local/include -I/usr/local/lib -Idolfin >>>>>>> -I/usr/local/include -I/usr/include/suitesparse >>>>>>> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include >>>>>>> -I/usr/include/suitesparse -I/home/skavhaug/extsoft/mtl4 >>>>>>> dolfin/la/MTL4Matrix.cpp >>>>>>> dolfin/la/MTL4Matrix.cpp: In member function «virtual >>>>>>> dolfin::uint dolfin::MTL4Matrix::size(dolfin::uint) const»: >>>>>>> dolfin/la/MTL4Matrix.cpp:77: error: no matching function for >>>>>>> call to «num_rows(const dolfin::mtl4_sparse_matrix&)» >>>>>>> dolfin/la/MTL4Matrix.cpp:79: error: no matching function for >>>>>>> call to «num_cols(const dolfin::mtl4_sparse_matrix&)» >>>>>>> dolfin/la/MTL4Matrix.cpp: In function «dolfin::LogStream& >>>>>>> dolfin::operator<<(dolfin::LogStream&, const dolfin::MTL4Matrix&)»: >>>>>>> dolfin/la/MTL4Matrix.cpp:316: error: no matching function for >>>>>>> call to «num_rows(const mtl::compressed2D<double, >>>>>>> mtl::matrix::parameters<mtl::tag::row_major, >>>>>>> mtl::index::c_index, mtl::non_fixed::dimensions, false> >&)» >>>>>>> dolfin/la/MTL4Matrix.cpp:317: error: no matching function for >>>>>>> call to «num_cols(const mtl::compressed2D<double, >>>>>>> mtl::matrix::parameters<mtl::tag::row_major, >>>>>>> mtl::index::c_index, mtl::non_fixed::dimensions, false> >&)» >>>>>>> scons: *** [dolfin/la/MTL4Matrix.os] Error 1 >>>>>>> scons: building terminated because of errors. >>>>>>> >>>>>>> >>>>>>> Does anyone know that causes this problem? >>>>>>> >>>>>>> Thanks, >>>>>>> -- >>>>>>> Ola Skavhaug >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> DOLFIN-dev mailing list >>>>>>> [email protected] >>>>>>> http://www.fenics.org/mailman/listinfo/dolfin-dev >>>>>> _______________________________________________ >>>>>> DOLFIN-dev mailing list >>>>>> [email protected] >>>>>> http://www.fenics.org/mailman/listinfo/dolfin-dev >>>>> > _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
