[Dune] compilation problem in dune-grid-howto: finitevolume.cc

Benedikt Oswald benedikt.oswald at psi.ch
Mon Jun 7 09:59:22 CEST 2010


Dear Dune, I have just updated my Dune to this version:

pcp029897:dune-trunk oswald$ svn info ./dune-common/
Path: dune-common
URL: https://svn.dune-project.org/svn/dune-common/trunk
Repository Root: https://svn.dune-project.org/svn/dune-common
Repository UUID: 419231ca-4411-0410-aba2-fc6cf8c4f609
Revision: 6033
Node Kind: directory
Schedule: normal
Last Changed Author: mblatt
Last Changed Rev: 6033
Last Changed Date: 2010-06-06 09:38:29 +0200 (Sun, 06 Jun 2010)

pcp029897:dune-trunk oswald$ svn info ./dune-grid
Path: dune-grid
URL: https://svn.dune-project.org/svn/dune-grid/trunk
Repository Root: https://svn.dune-project.org/svn/dune-grid
Repository UUID: f82f27de-4411-0410-b156-930a902cda50
Revision: 6753
Node Kind: directory
Schedule: normal
Last Changed Author: joe
Last Changed Rev: 6753
Last Changed Date: 2010-06-06 20:11:51 +0200 (Sun, 06 Jun 2010)

pcp029897:dune-trunk oswald$ svn info ./dune-istl/
Path: dune-istl
URL: https://svn.dune-project.org/svn/dune-istl/trunk
Repository Root: https://svn.dune-project.org/svn/dune-istl
Repository UUID: 8c7282f0-4411-0410-8e4f-cdd3e049afb8
Revision: 1221
Node Kind: directory
Schedule: normal
Last Changed Author: mblatt
Last Changed Rev: 1221
Last Changed Date: 2010-05-28 12:00:29 +0200 (Fri, 28 May 2010)

pcp029897:dune-trunk oswald$ svn info ./dune-grid
Path: dune-grid
URL: https://svn.dune-project.org/svn/dune-grid/trunk
Repository Root: https://svn.dune-project.org/svn/dune-grid
Repository UUID: f82f27de-4411-0410-b156-930a902cda50
Revision: 6753
Node Kind: directory
Schedule: normal
Last Changed Author: joe
Last Changed Rev: 6753
Last Changed Date: 2010-06-06 20:11:51 +0200 (Sun, 06 Jun 2010)

pcp029897:dune-trunk oswald$ svn info ./dune-grid-howto/
Path: dune-grid-howto
URL: https://svn.dune-project.org/svn/dune-grid-howto/trunk
Repository Root: https://svn.dune-project.org/svn/dune-grid-howto
Repository UUID: 971b7fa1-7d12-0410-b1b7-9c127676b1f7
Revision: 317
Node Kind: directory
Schedule: normal
Last Changed Author: joe
Last Changed Rev: 317
Last Changed Date: 2010-06-06 20:20:20 +0200 (Sun, 06 Jun 2010)


on platform:

pcp029897:dune-trunk oswald$ uname -a
Darwin pcp029897.psi.ch 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15  
16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

using compiler versions:

pcp029897:dune-trunk oswald$ mpicxx -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc_42/gcc_42-5574~1/src/configure --disable- 
checking --enable-werror --prefix=/usr --mandir=/usr/share/man -- 
enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg] 
[^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin9 -- 
with-gxx-include-dir=/usr/include/c++/4.0.0 --host=i686-apple-darwin9  
--target=i686-apple-darwin9
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5574)

and I get the following error, cf. below.

Could you have a look at this ?


Thanks and have a great day, Benedikt



=============================================


/bin/sh ./libtool --tag=CXX   --mode=link mpicxx -D_REENTRANT -I/Users/ 
oswald/extlib/openmpi-1.3.3/include -DMPIPP_H -DENABLE_MPI=1 - 
DMPICH_IGNORE_CXX_SEEK -O2  -I/Users/oswald/svnwork/dune-trunk/dune- 
common  -I/Users/oswald/svnwork/dune-trunk/dune-grid  -I/Users/oswald/ 
svnwork/dune-trunk/dune-istl   -D_REENTRANT -I/Users/oswald/extlib/ 
openmpi-1.3.3/include -DMPIPP_H -DENABLE_MPI=1 -I/Users/oswald/svnwork/ 
dune-trunk/dune-common -DGRIDDIM=2 -DWORLDDIM=2 -DYASPGRID -I/usr/X11/ 
include -D_THREAD_SAFE   -D_REENTRANT -I/Users/oswald/extlib/ 
openmpi-1.3.3/include -DMPIPP_H -DENABLE_MPI=1 -I/Users/oswald/extlib/ 
ALUGrid-1.22/include -I/Users/oswald/extlib/ALUGrid-1.22/include/ 
serial -I/Users/oswald/extlib/ALUGrid-1.22/include/duneinterface - 
DENABLE_ALUGRID -I/Users/oswald/extlib/ALUGrid-1.22/include/parallel - 
I/Users/oswald/svnwork/dune-trunk/dune-grid  -I/Users/oswald/svnwork/ 
dune-trunk/dune-istl -DMPICH_IGNORE_CXX_SEEK -O2   -o  
adaptiveintegration adaptiveintegration-adaptiveintegration.o  -L/ 
Users/oswald/svnwork/dune-trunk/dune-grid/lib -ldunegrid  -L/Users/ 
oswald/svnwork/dune-trunk/dune-common/lib -ldunecommon     - 
D_THREAD_SAFE        -L/Users/oswald/svnwork/dune-trunk/dune-grid/lib - 
ldunegrid -L/Users/oswald/extlib/ALUGrid-1.22/lib -lalugrid -L/Users/ 
oswald/extlib/openmpi-1.3.3/lib -lmpi -lopen-rte -lopen-pal -lutil  - 
lGL -L/usr/X11/lib -lX11  -lm  -L/Users/oswald/svnwork/dune-trunk/dune- 
common/lib -ldunecommon -L/Users/oswald/extlib/openmpi-1.3.3/lib -lmpi  
-lopen-rte -lopen-pal -lutil   -L/Users/oswald/svnwork/dune-trunk/dune- 
grid/lib -ldunegrid -L/Users/oswald/svnwork/dune-trunk/dune-common/lib  
-ldunecommon  -L/Users/oswald/svnwork/dune-trunk/dune-common/lib - 
ldunecommon   -L/Users/oswald/svnwork/dune-trunk/dune-grid/lib - 
ldunegrid  -L/Users/oswald/svnwork/dune-trunk/dune-common/lib - 
ldunecommon    -lm   -L/Users/oswald/extlib/openmpi-1.3.3/lib -lmpi - 
lopen-rte -lopen-pal -lutil -lm
mpicxx -D_REENTRANT -I/Users/oswald/extlib/openmpi-1.3.3/include - 
DMPIPP_H -DENABLE_MPI=1 -DMPICH_IGNORE_CXX_SEEK -O2 -I/Users/oswald/ 
svnwork/dune-trunk/dune-common -I/Users/oswald/svnwork/dune-trunk/dune- 
grid -I/Users/oswald/svnwork/dune-trunk/dune-istl -D_REENTRANT -I/ 
Users/oswald/extlib/openmpi-1.3.3/include -DMPIPP_H -DENABLE_MPI=1 -I/ 
Users/oswald/svnwork/dune-trunk/dune-common -DGRIDDIM=2 -DWORLDDIM=2 - 
DYASPGRID -I/usr/X11/include -D_THREAD_SAFE -D_REENTRANT -I/Users/ 
oswald/extlib/openmpi-1.3.3/include -DMPIPP_H -DENABLE_MPI=1 -I/Users/ 
oswald/extlib/ALUGrid-1.22/include -I/Users/oswald/extlib/ALUGrid-1.22/ 
include/serial -I/Users/oswald/extlib/ALUGrid-1.22/include/ 
duneinterface -DENABLE_ALUGRID -I/Users/oswald/extlib/ALUGrid-1.22/ 
include/parallel -I/Users/oswald/svnwork/dune-trunk/dune-grid -I/Users/ 
oswald/svnwork/dune-trunk/dune-istl -DMPICH_IGNORE_CXX_SEEK -O2 -o  
adaptiveintegration adaptiveintegration-adaptiveintegration.o - 
D_THREAD_SAFE -Wl,-bind_at_load  -L/Users/oswald/svnwork/dune-trunk/ 
dune-grid/lib -L/Users/oswald/svnwork/dune-trunk/dune-common/lib -L/ 
Users/oswald/extlib/ALUGrid-1.22/lib -L/Users/oswald/extlib/metis-4.0 - 
L/Users/oswald/extlib/openmpi-1.3.3/lib -lGL -L/usr/X11/lib /usr/X11/ 
lib/libX11.dylib /usr/X11/lib/libXau.dylib /usr/X11/lib/ 
libXdmcp.dylib /Users/oswald/svnwork/dune-trunk/dune-grid/lib/.libs/ 
libdunegrid.a /Users/oswald/extlib/ALUGrid-1.22/lib/libalugrid.a - 
lmetis /Users/oswald/svnwork/dune-trunk/dune-common/lib/.libs/ 
libdunecommon.a /Users/oswald/extlib/openmpi-1.3.3/lib/libmpi.dylib / 
Users/oswald/extlib/openmpi-1.3.3/lib/libopen-rte.dylib /Users/oswald/ 
extlib/openmpi-1.3.3/lib/libopen-pal.dylib -lutil -lm
mpicxx -DHAVE_CONFIG_H -I.  -I/Users/oswald/svnwork/dune-trunk/dune- 
common -I/Users/oswald/svnwork/dune-trunk/dune-grid -I/Users/oswald/ 
svnwork/dune-trunk/dune-istl -I. -DMPICH_IGNORE_CXX_SEEK -O2 - 
D_REENTRANT -I/Users/oswald/extlib/openmpi-1.3.3/include -DMPIPP_H - 
DENABLE_MPI=1 -DMPICH_IGNORE_CXX_SEEK -O2  -I/Users/oswald/svnwork/ 
dune-trunk/dune-common  -I/Users/oswald/svnwork/dune-trunk/dune-grid  - 
I/Users/oswald/svnwork/dune-trunk/dune-istl   -D_REENTRANT -I/Users/ 
oswald/extlib/openmpi-1.3.3/include -DMPIPP_H -DENABLE_MPI=1 -I/Users/ 
oswald/svnwork/dune-trunk/dune-common -DGRIDDIM=2 -DWORLDDIM=2 - 
DYASPGRID -I/usr/X11/include -D_THREAD_SAFE   -D_REENTRANT -I/Users/ 
oswald/extlib/openmpi-1.3.3/include -DMPIPP_H -DENABLE_MPI=1 -I/Users/ 
oswald/extlib/ALUGrid-1.22/include -I/Users/oswald/extlib/ALUGrid-1.22/ 
include/serial -I/Users/oswald/extlib/ALUGrid-1.22/include/ 
duneinterface -DENABLE_ALUGRID -I/Users/oswald/extlib/ALUGrid-1.22/ 
include/parallel -I/Users/oswald/svnwork/dune-trunk/dune-grid  -I/ 
Users/oswald/svnwork/dune-trunk/dune-istl -DMPICH_IGNORE_CXX_SEEK -O2 - 
MT finitevolume-finitevolume.o -MD -MP -MF .deps/finitevolume- 
finitevolume.Tpo -c -o finitevolume-finitevolume.o `test -f  
'finitevolume.cc' || echo './'`finitevolume.cc
finitevolume.cc: In function 'void timeloop(const G&, double)':
finitevolume.cc:22: error: 'MCMGElementMapper' is not a member of 'Dune'
finitevolume.cc:22: error: 'MCMGElementMapper' is not a member of 'Dune'
finitevolume.cc:22: error: template argument 2 is invalid
finitevolume.cc:23: error: invalid type in declaration before '(' token
finitevolume.cc:26: error: request for member 'size' in 'mapper',  
which is of non-class type 'int'
finitevolume.cc: In function 'void timeloop(const G&, double) [with G  
= Dune::YaspGrid<2>]':
finitevolume.cc:104:   instantiated from here
finitevolume.cc:23: error: cannot convert 'const Dune::YaspGrid<2>' to  
'int' in initialization
initialize.hh: In function 'void initialize(const G&, const M&, V&)  
[with G = Dune::YaspGrid<2>, M = int, V = std::vector<double,  
std::allocator<double> >]':
finitevolume.cc:29:   instantiated from 'void timeloop(const G&,  
double) [with G = Dune::YaspGrid<2>]'
finitevolume.cc:104:   instantiated from here
initialize.hh:40: error: request for member 'map' in 'mapper', which  
is of non-class type 'const int'
evolve.hh: In function 'void evolve(const G&, const M&, V&, double,  
double&) [with G = Dune::YaspGrid<2>, M = int, V = std::vector<double,  
std::allocator<double> >]':
finitevolume.cc:45:   instantiated from 'void timeloop(const G&,  
double) [with G = Dune::YaspGrid<2>]'
finitevolume.cc:104:   instantiated from here
evolve.hh:56: error: request for member 'map' in 'mapper', which is of  
non-class type 'const int'
finitevolume.cc:45:   instantiated from 'void timeloop(const G&,  
double) [with G = Dune::YaspGrid<2>]'
finitevolume.cc:104:   instantiated from here
evolve.hh:90: error: request for member 'map' in 'mapper', which is of  
non-class type 'const int'
/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/dgfparser/ 
dgfyasp.hh: In member function 'int  
Dune::DGFGridFactory<Dune::YaspGrid<dim> >::boundaryId(const  
Intersection&) const [with Intersection = Dune::Intersection<const  
Dune::YaspGrid<2>, Dune::YaspIntersection>, int dim = 2]':
/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/dgfparser/ 
dgfparser.hh:539:   instantiated from 'void  
Dune::GridPtr<GridType>::initialize(Dune::DGFGridFactory<GridType>&)  
[with GridType = Dune::YaspGrid<2>]'
/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/dgfparser/ 
dgfparser.hh:355:   instantiated from  
'Dune::GridPtr<GridType>::GridPtr(const std::string&,  
ompi_communicator_t*) [with GridType = Dune::YaspGrid<2>]'
finitevolume.cc:92:   instantiated from here
/Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/dgfparser/ 
dgfyasp.hh:104: warning: 'boundaryId' is deprecated (declared at / 
Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/common/ 
intersection.hh:223)
make[2]: *** [finitevolume-finitevolume.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
--- Failed to build dune-grid-howto ---
Terminating dunecontrol due to previous errors!


--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, www.psi.ch,  
Computational Accelerator Scientist, http://amas.web.psi.ch
Paul Scherrer  Institute (PSI), CH-5232 Villigen, Suisse, benedikt.oswald at psi.ch 
, +41(0)56 310 32 12

"Passion is required for any great work, and for the revolution  
passion and audacity are required in big doses.",
  Ernesto 'Che' Guevara, Letter to his parents.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------





More information about the Dune mailing list