#1521 test-alberta does not compile
Metadata
Property | Value |
---|---|
Reported by | Oliver Sander (oliver.sander@tu-dresden.de) |
Reported at | Oct 31, 2014 16:31 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Oliver Sander (oliver.sander@tu-dresden.de) |
Last edited at | Mar 5, 2015 19:07 |
Closed by | Oliver Sander (oliver.sander@tu-dresden.de) |
Closed at | Mar 5, 2015 19:07 |
Closed in version | Unknown |
Resolution | Not a bug |
Comment | I cannot reproduce this anymore. |
Description
I get a compiler error when trying to build test-alberta. The system is an up-to-date Debian Jessie with g++ (Debian 4.9.1-16). My Alberta is
~/dune-parallel/dune-grid/dune/grid/test(master)> aptitude show libalberta-dev
Paket: libalberta-dev
Neu: ja
Zustand: Installiert
Automatisch installiert: ja
Multi-Arch: same
Version: 3.0.1-1
The compiler error is:
~/dune/dune-grid/dune/grid/test(master)> make check CXXFLAGS="-w"
make test-sgrid test-oned test-yaspgrid test-geogrid test-identitygrid test-mcmg-geogrid test-alberta-1-1 test-alberta-1-2 test-alberta-2-2 test-alberta-1-3 test-alberta-2-3 test-alberta-3-3 test-alberta-generic test-ug test-parallel-ug testiteratorranges
make[1]: Entering directory '/home/sander/dune/dune-grid/dune/grid/test'
make[1]: 'test-sgrid' is up to date.
make[1]: 'test-oned' is up to date.
make[1]: 'test-yaspgrid' is up to date.
make[1]: 'test-geogrid' is up to date.
make[1]: 'test-identitygrid' is up to date.
make[1]: 'test-mcmg-geogrid' is up to date.
g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../../.. -DGRIDDIM=1 -DWORLDDIM=1 -I/usr/include -I/usr/include/alberta -DALBERTA_DIM=1 -DENABLE_ALBERTA -I/home/sander/dune/dune-common -I/home/sander/dune/dune-common -I/home/sander/dune/dune-geometry -I/home/sander/dune/dune-geometry -I../../.. -DHAVE_DUNE_GRID=1 -DDUNE_GRID_EXAMPLE_GRIDS_PATH="../../../doc/grids/" -w -MT test_alberta_1_1-test-alberta.o -MD -MP -MF .deps/test_alberta_1_1-test-alberta.Tpo -c -o test_alberta_1_1-test-alberta.o test -f 'test-alberta.cc' || echo './'
test-alberta.cc
In file included from ../../../dune/grid/common/entity.hh:12:0,
from ../../../dune/grid/common/grid.hh:1402,
from ../../../dune/grid/albertagrid/agrid.hh:26,
from ../../../dune/grid/albertagrid.hh:5,
from test-alberta.cc:12:
../../../dune/grid/common/entitypointer.hh: In instantiation of ‘Dune::EntityPointer<GridImp, EntityPointerImp>::EntityPointer() [with GridImp = const Dune::AlbertaGrid<1, 1>; IteratorImp = Dune::AlbertaGridLeafIterator<1, (Dune::PartitionIteratorType)4u, const Dune::AlbertaGrid<1, 1> >]’:
../../../dune/grid/common/entityiterator.hh:67:5: required from ‘Dune::EntityIterator<codim, Grid, IteratorImp>::EntityIterator() [with int codim = 1; Grid = const Dune::AlbertaGrid<1, 1>; IteratorImp = Dune::AlbertaGridLeafIterator<1, (Dune::PartitionIteratorType)4u, const Dune::AlbertaGrid<1, 1> >]’
/home/sander/dune/dune-common/dune/common/test/iteratortest.hh:29:8: required from ‘int testForwardIterator(Iter, Iter, Opt&) [with Iter = Dune::EntityIterator<1, const Dune::AlbertaGrid<1, 1>, Dune::AlbertaGridLeafIterator<1, (Dune::PartitionIteratorType)4u, const Dune::AlbertaGrid<1, 1> > >; Opt = NoopFunctor<Dune::Entity<1, 1, const Dune::AlbertaGrid<1, 1>, Dune::AlbertaGridEntity> >]’
checkiterators.cc:117:66: required from ‘static void CheckCodimIterators<GridView, codim, true>::apply(const GridView&) [with GridView = Dune::GridView<Dune::AlbertaLeafGridViewTraits<const Dune::AlbertaGrid<1, 1>, (Dune::PartitionIteratorType)4u> >; int codim = 1]’
checkiterators.cc:66:68: required from ‘static void CheckIterators::CheckCodim::apply(const GridView&) [with int codim = 1; GridView = Dune::GridView<Dune::AlbertaLeafGridViewTraits<const Dune::AlbertaGrid<1, 1>, (Dune::PartitionIteratorType)4u> >]’
checkiterators.cc:52:74: required from ‘static void CheckIterators::apply(const GridView&) [with GridView = Dune::GridView<Dune::AlbertaLeafGridViewTraits<const Dune::AlbertaGrid<1, 1>, (Dune::PartitionIteratorType)4u> >]’
checkiterators.cc:127:47: required from ‘void checkIterators(const GridView&) [with GridView = Dune::GridView<Dune::AlbertaLeafGridViewTraits<const Dune::AlbertaGrid<1, 1>, (Dune::PartitionIteratorType)4u> >]’
test-alberta.cc:130:41: required from here
../../../dune/grid/common/entitypointer.hh:145:5: error: no matching function for call to ‘Dune::AlbertaGridLeafIterator<1, (Dune::PartitionIteratorType)4u, const Dune::AlbertaGrid<1, 1> >::AlbertaGridLeafIterator()’
{}
^
../../../dune/grid/common/entitypointer.hh:145:5: note: candidates are:
In file included from ../../../dune/grid/albertagrid/agrid.hh:57:0,
from ../../../dune/grid/albertagrid.hh:5,
from test-alberta.cc:12:
../../../dune/grid/albertagrid/leafiterator.hh:35:5: note: Dune::AlbertaGridLeafIterator<codim, pitype, GridImp>::AlbertaGridLeafIterator(const GridImp&, const MarkerVector*, int) [with int codim = 1; Dune::PartitionIteratorType pitype = (Dune::PartitionIteratorType)4u; GridImp = const Dune::AlbertaGrid<1, 1>; Dune::AlbertaGridLeafIterator<codim, pitype, GridImp>::MarkerVector = Dune::AlbertaMarkerVector<1, 1>]
AlbertaGridLeafIterator ( const GridImp &grid,
^
../../../dune/grid/albertagrid/leafiterator.hh:35:5: note: candidate expects 3 arguments, 0 provided
../../../dune/grid/albertagrid/leafiterator.hh:30:5: note: Dune::AlbertaGridLeafIterator<codim, pitype, GridImp>::AlbertaGridLeafIterator(const GridImp&, int) [with int codim = 1; Dune::PartitionIteratorType pitype = (Dune::PartitionIteratorType)4u; GridImp = const Dune::AlbertaGrid<1, 1>]
AlbertaGridLeafIterator ( const GridImp &grid, int level )
^
../../../dune/grid/albertagrid/leafiterator.hh:30:5: note: candidate expects 2 arguments, 0 provided
../../../dune/grid/albertagrid/leafiterator.hh:19:9: note: Dune::AlbertaGridLeafIterator<1, (Dune::PartitionIteratorType)4u, const Dune::AlbertaGrid<1, 1> >::AlbertaGridLeafIterator(const Dune::AlbertaGridLeafIterator<1, (Dune::PartitionIteratorType)4u, const Dune::AlbertaGrid<1, 1> >&)
class AlbertaGridLeafIterator
^
../../../dune/grid/albertagrid/leafiterator.hh:19:9: note: candidate expects 1 argument, 0 provided
../../../dune/grid/albertagrid/leafiterator.hh:19:9: note: Dune::AlbertaGridLeafIterator<1, (Dune::PartitionIteratorType)4u, const Dune::AlbertaGrid<1, 1> >::AlbertaGridLeafIterator(Dune::AlbertaGridLeafIterator<1, (Dune::PartitionIteratorType)4u, const Dune::AlbertaGrid<1, 1> >&&)
../../../dune/grid/albertagrid/leafiterator.hh:19:9: note: candidate expects 1 argument, 0 provided
Makefile:1266: recipe for target 'test_alberta_1_1-test-alberta.o' failed
make[1]: *** [test_alberta_1_1-test-alberta.o] Error 1
make[1]: Leaving directory '/home/sander/dune/dune-grid/dune/grid/test'
Makefile:1867: recipe for target 'check-am' failed
make: *** [check-am] Error 2
~/dune/dune-grid/dune/grid/test(master)>