[dune-pdelab] [Dune] Problems with building pdelab-howto

Steffen Müthing steffen.muething at ipvs.uni-stuttgart.de
Wed Nov 21 13:03:35 CET 2012


Hi Jared,

what version of PDELab and the Howto are you using? It might be possible that you now have a newer compiler that is more
strict w.r.t. to the C++ standard and that recognizes some problems which older compilers didn't…

With Dune 2.2 you should upgrade to at least PDELab 1.0.1 and the accompanying Howto. I think the trunk will be fine as well
(it might even be that you have to use the trunk - I think some fixes for the kind of problems you describe went in after the release).

Hope that helps,

Steffen


Am 21.11.2012 um 13:48 schrieb Jared Okiro:

> Dear dune-list,
> 
> I recently upgraded my openSUSE OS to 12.2, then updated DUNE. I am using dune-svn version 2.2.
> I am now unable to build pdelab-howto. Also, I can't compile my codes which were compiling earlier before the update. My compiler version is g++ -4.7.1 . My configure flags for the Dune Opts file are as follows:
> 
> CONFIGURE_FLAGS="CXX=g++ F77=gfortran CXXFLAGS=\"-g\"
> --disable-documentation --without-gmp --enable-fieldvector-size-is-method --enable-parallel --with-grid-dim=2
> --with-grid-type=YASPGRID \--with-superlu='$EXTMODDIR/SuperLU_4.1'
> --with-superlu-lib='libsuperlu_4.1.a'
> --with-ug='$EXTMODDIR/UG/ug'
> "
> The error message I get (attached also as a txt file) is as follows:
> 
> Making all in course-examples
> make[3]: Entering directory `/home/jared/DUNE/dune-svn/dune-pdelab-howto/src/course-examples'
> g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../.. -I/home/jared/DUNE/dune-svn/dune-common -I/home/jared/DUNE/dune-svn/dune-geometry -I/home/jared/DUNE/dune-svn/dune-grid -I/home/jared/DUNE/dune-svn/dune-istl -I/home/jared/DUNE/dune-svn/dune-localfunctions -I/home/jared/DUNE/dune-svn/dune-pdelab -I/home/jared/DUNE/dune-externs/SuperLU_4.1/SRC -DENABLE_SUPERLU -I/home/jared/DUNE/dune-svn/dune-common -I/home/jared/DUNE/dune-svn/dune-geometry -I/home/jared/DUNE/dune-svn/dune-grid -I/home/jared/DUNE/dune-svn/dune-istl -I/home/jared/DUNE/dune-svn/dune-localfunctions -I/home/jared/DUNE/dune-svn/dune-pdelab -I/home/jared/DUNE/dune-externs/SuperLU_4.1/SRC -DENABLE_SUPERLU -I/usr/lib64/mpi/gcc/openmpi/include -I/usr/lib64/mpi/gcc/openmpi/include/openmpi -pthread -DMPIPP_H -DENABLE_MPI=1 -I/home/jared/DUNE/dune-externs/UG/ug/include/ug -DENABLE_UG -g -MT example02-example02.o -MD -MP -MF .deps/example02-example02.Tpo -c -o example02-example02.o `test -f 'example02.cc' || echo './'`example02.cc
> In file included from /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/gridfunctionspace/gridfunctionspaceutilities.hh:19:0,
> from /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/gridfunctionspace/gridfunctionspace.hh:30,
> from /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/finiteelementmap/conformingconstraints.hh:21,
> from example02.cc:53:
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/gridfunctionspace/localfunctionspace.hh: In instantiation of ‘void Dune::PDELab::LeafLocalFunctionSpaceNode<GFS, MultiIndex>::mwrite(const LC&, GC&) const [with GC = Dune::PDELab::ConstraintsTransformation<long unsigned int, double>; LC = Dune::PDELab::ConstraintsTransformation<long unsigned int, double>; GFS = Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::Q1LocalFiniteElementMap<double, double, 2>, Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::ISTLVectorBackend<1>, Dune::PDELab::GridFunctionGeneralMapper>; MultiIndex = Dune::PDELab::MultiIndex<long unsigned int, 1ul>]’:
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/constraints/constraints.hh:293:11: required from ‘void Dune::PDELab::{anonymous}::VolumeConstraints<EG, CG>::leaf(const LFS&, TreePath) const [with LFS = Dune::PDELab::LocalFunctionSpace<Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::Q1LocalFiniteElementMap<double, double, 2>, Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::ISTLVectorBackend<1>, Dune::PDELab::GridFunctionGeneralMapper>, Dune::PDELab::AnySpaceTag>; TreePath = Dune::PDELab::TypeTree::DynamicTreePath; EG = Dune::PDELab::ElementGeometry<Dune::Entity<0, 2, const Dune::YaspGrid<2>, Dune::YaspEntity> >; CG = Dune::PDELab::ConstraintsTransformation<long unsigned int, double>]’
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/common/typetree/traversal.hh:109:11: required from ‘static void Dune::PDELab::TypeTree::ApplyToTree<tpType, Dune::PDELab::TypeTree::LeafNodeTag, true>::apply(N&&, V&&, TreePath) [with N = Dune::PDELab::LocalFunctionSpace<Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::Q1LocalFiniteElementMap<double, double, 2>, Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::ISTLVectorBackend<1>, Dune::PDELab::GridFunctionGeneralMapper>, Dune::PDELab::AnySpaceTag>&; V = Dune::PDELab::{anonymous}::VolumeConstraints<Dune::PDELab::ElementGeometry<Dune::Entity<0, 2, const Dune::YaspGrid<2>, Dune::YaspEntity> >, Dune::PDELab::ConstraintsTransformation<long unsigned int, double> >; TreePath = Dune::PDELab::TypeTree::MutableDynamicTreePath; Dune::PDELab::TypeTree::TreePathType::Type tpType = (Dune::PDELab::TypeTree::TreePathType::Type)2u]’
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/common/typetree/traversal.hh:44:11: required from ‘static void Dune::PDELab::TypeTree::ApplyToTree<tpType, Dune::PDELab::TypeTree::StartTag, doApply>::apply(Node&&, Visitor&&) [with Node = Dune::PDELab::LocalFunctionSpace<Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::Q1LocalFiniteElementMap<double, double, 2>, Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::ISTLVectorBackend<1>, Dune::PDELab::GridFunctionGeneralMapper>, Dune::PDELab::AnySpaceTag>&; Visitor = Dune::PDELab::{anonymous}::VolumeConstraints<Dune::PDELab::ElementGeometry<Dune::Entity<0, 2, const Dune::YaspGrid<2>, Dune::YaspEntity> >, Dune::PDELab::ConstraintsTransformation<long unsigned int, double> >; Dune::PDELab::TypeTree::TreePathType::Type tpType = (Dune::PDELab::TypeTree::TreePathType::Type)2u; bool doApply = true]’
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/common/typetree/traversal.hh:345:9: required from ‘void Dune::PDELab::TypeTree::applyToTree(Tree&&, Visitor&&) [with Tree = Dune::PDELab::LocalFunctionSpace<Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::Q1LocalFiniteElementMap<double, double, 2>, Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::ISTLVectorBackend<1>, Dune::PDELab::GridFunctionGeneralMapper>, Dune::PDELab::AnySpaceTag>&; Visitor = Dune::PDELab::{anonymous}::VolumeConstraints<Dune::PDELab::ElementGeometry<Dune::Entity<0, 2, const Dune::YaspGrid<2>, Dune::YaspEntity> >, Dune::PDELab::ConstraintsTransformation<long unsigned int, double> >]’
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/constraints/constraints.hh:621:11: required from ‘static void Dune::PDELab::ConstraintsAssemblerHelper<P, GFS, CG, isFunction>::assemble(const P&, const GFS&, CG&, bool) [with P = BCTypeParam; GFS = Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::Q1LocalFiniteElementMap<double, double, 2>, Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::ISTLVectorBackend<1>, Dune::PDELab::GridFunctionGeneralMapper>; CG = Dune::PDELab::ConstraintsTransformation<long unsigned int, double>; bool isFunction = false]’
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/constraints/constraints.hh:737:7: required from ‘void Dune::PDELab::constraints(const P&, const GFS&, CG&, bool) [with P = BCTypeParam; GFS = Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::Q1LocalFiniteElementMap<double, double, 2>, Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::ISTLVectorBackend<1>, Dune::PDELab::GridFunctionGeneralMapper>; CG = Dune::PDELab::ConstraintsTransformation<long unsigned int, double>]’
> example02_Q1.hh:19:3: required from ‘void example02_Q1(const GV&) [with GV = Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >]’
> example02.cc:109:22: required from here
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/gridfunctionspace/localfunctionspace.hh:716:65: error: ‘globalIndex’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/gridfunctionspace/localfunctionspace.hh:716:65: note: declarations in dependent base ‘Dune::PDELab::LocalFunctionSpaceBaseNode<Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::Q1LocalFiniteElementMap<double, double, 2>, Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::ISTLVectorBackend<1>, Dune::PDELab::GridFunctionGeneralMapper>, Dune::PDELab::MultiIndex<long unsigned int, 1ul> >’ are not found by unqualified lookup
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/gridfunctionspace/localfunctionspace.hh:716:65: note: use ‘this->globalIndex’ instead
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/gridfunctionspace/localfunctionspace.hh:724:15: error: ‘globalIndex’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/gridfunctionspace/localfunctionspace.hh:724:15: note: declarations in dependent base ‘Dune::PDELab::LocalFunctionSpaceBaseNode<Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, Dune::PDELab::Q1LocalFiniteElementMap<double, double, 2>, Dune::PDELab::ConformingDirichletConstraints, Dune::PDELab::ISTLVectorBackend<1>, Dune::PDELab::GridFunctionGeneralMapper>, Dune::PDELab::MultiIndex<long unsigned int, 1ul> >’ are not found by unqualified lookup
> /home/jared/DUNE/dune-svn/dune-pdelab/dune/pdelab/gridfunctionspace/localfunctionspace.hh:724:15: note: use ‘this->globalIndex’ instead
> make[3]: *** [example02-example02.o] Error 1
> make[3]: Leaving directory `/home/jared/DUNE/dune-svn/dune-pdelab-howto/src/course-examples'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/jared/DUNE/dune-svn/dune-pdelab-howto/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/jared/DUNE/dune-svn/dune-pdelab-howto'
> make: *** [all] Error 2
> --- Failed to build dune-pdelab-howto ---
> Terminating dunecontrol due to previous errors!
> 
> I will appreciate some tip!.
> Thank you.
> 
> <error.txt>_______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune

Steffen Müthing
Universität Stuttgart
Institut für Parallele und Verteilte Systeme
Universitätsstr. 38
70569 Stuttgart
Tel: +49 711 685 88429
Fax: +49 711 685 88340
Email: steffen.muething at ipvs.uni-stuttgart.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20121121/c61e9a80/attachment.sig>


More information about the dune-pdelab mailing list