[Dune] dune-grid and gcc-4.3

Yufei Cao iwsycao at iws.uni-stuttgart.de
Fri Feb 27 14:07:17 CET 2009


Dear all,

When I use gcc-4.3, g++-4.3 and gfortran-4.3 to compile 
the latest Developing version of DUNE, I got the following 
error. But if I use such as gcc-4.2, g++-4.2, then DUNE 
can be well compiled. Does anyone know what's wrong and 
how to solve the problem? Thank you in advance!

Best regards,
Yufei

PS: error

Making all in 3d
make[4]: Entering directory 
`/afs/.mathe/home/ians2/cao/DUMUX/dune-grid/grid/alugrid/3d'
/bin/sh ../../../libtool --tag=CXX   --mode=compile g++ 
-std=c++0x -DHAVE_CONFIG_H -I. -I../../.. 
 -I/afs/.mathe/home/ians2/cao/DUMUX/dune-common -I../../.. 
 -I/afs/.mathe/home/ians2/cao/DUMUX/dune-common -I../../.. 
-I/afs/.mathe/home/ians2/cao/DUMUX/external/ALUGrid-1.12/include 
-I/afs/.mathe/home/ians2/cao/DUMUX/external/ALUGrid-1.12/include/serial 
-I/afs/.mathe/home/ians2/cao/DUMUX/external/ALUGrid-1.12/include/duneinterface 
-DENABLE_ALUGRID 
-I/afs/.mathe/home/ians2/cao/DUMUX/external/ALUGrid-1.12/include/parallel 
 -Wall -g -MT libalu3d_la-mappings.lo -MD -MP -MF 
.deps/libalu3d_la-mappings.Tpo -c -o 
libalu3d_la-mappings.lo `test -f 'mappings.cc' || echo 
'./'`mappings.cc
  g++ -std=c++0x -DHAVE_CONFIG_H -I. -I../../.. 
-I/afs/.mathe/home/ians2/cao/DUMUX/dune-common -I../../.. 
-I/afs/.mathe/home/ians2/cao/DUMUX/dune-common -I../../.. 
-I/afs/.mathe/home/ians2/cao/DUMUX/external/ALUGrid-1.12/include 
-I/afs/.mathe/home/ians2/cao/DUMUX/external/ALUGrid-1.12/include/serial 
-I/afs/.mathe/home/ians2/cao/DUMUX/external/ALUGrid-1.12/include/duneinterface 
-DENABLE_ALUGRID 
-I/afs/.mathe/home/ians2/cao/DUMUX/external/ALUGrid-1.12/include/parallel 
-Wall -g -MT libalu3d_la-mappings.lo -MD -MP -MF 
.deps/libalu3d_la-mappings.Tpo -c mappings.cc -o 
libalu3d_la-mappings.o
/usr/include/c++/4.3/bits/stl_pair.h: In constructor 
'std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = int, 
_U2 = int, _T1 = ALUGridSpace::Gitter::helement*, _T2 = 
int]':
/afs/.mathe/home/ians2/cao/DUMUX/external/ALUGrid-1.12/include/serial/gitter_impl.h:114: 
  instantiated from here
/usr/include/c++/4.3/bits/stl_pair.h:95: error: invalid 
conversion from 'int' to 'ALUGridSpace::Gitter::helement*'
mappings.hh: At global scope:
mappings.hh:16: warning: 'Dune::ALUnumericEpsilon' defined 
but not used
make[4]: *** [libalu3d_la-mappings.lo] Error 1
make[4]: Leaving directory 
`/afs/.mathe/home/ians2/cao/DUMUX/dune-grid/grid/alugrid/3d'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/afs/.mathe/home/ians2/cao/DUMUX/dune-grid/grid/alugrid'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/afs/.mathe/home/ians2/cao/DUMUX/dune-grid/grid'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/afs/.mathe/home/ians2/cao/DUMUX/dune-grid'
make: *** [all] Error 2
--- Failed to build dune-grid ---
Execution of dunecontrol terminated due to errors!
  




More information about the Dune mailing list