[Getdp] Error building getdp 2.0.0

Davide Rondini davide.rondini at gmail.com
Mon Aug 30 11:02:11 CEST 2010


Hello,

I'm trying to build GetDP 2.0.0 from sources, using PETSc 3.0.0 with complex 
arithmetics. It configured fine, but during build, I get the following error in 
DofData.cpp.

g++ -g -O2  -I/home/davide/Programmi/PETSc/petsc-3.0.0-p10_debug_cmplx//linux-
gnu-c-debug/include -I/home/davide/Programmi/PETSc/petsc-3.0.0-
p10_debug_cmplx//include -I/usr/include/openmpi-x86_64 -
I/usr/lib64/openmpi/lib    -I. -I../Common -I../Interface -I../Numeric -
I../contrib/NR -I../contrib/Sparskit   -c DofData.cpp
DofData.cpp: In function ‘void Dof_WriteFileRES_WithEntityNum(char*, DofData*, 
Group*, bool)’:
DofData.cpp:523: error: template argument 2 is invalid
DofData.cpp:523: error: template argument 4 is invalid
DofData.cpp:523: error: invalid type in declaration before ‘;’ token
DofData.cpp:537: error: invalid types ‘int[int]’ for array subscript
DofData.cpp:540: error: invalid types ‘int[int]’ for array subscript
DofData.cpp:545: error: template argument 2 is invalid
DofData.cpp:545: error: template argument 4 is invalid
DofData.cpp:545: error: expected initializer before ‘it’
DofData.cpp:546: error: ‘it’ was not declared in this scope
DofData.cpp:546: error: request for member ‘end’ in ‘unknowns’, which is of 
non-class type ‘int’
DofData.cpp:558: error: request for member ‘count’ in ‘unknowns’, which is of 
non-class type ‘int’
DofData.cpp:559: error: expected unqualified-id before ‘__complex__’
DofData.cpp:559: error: expected ‘;’ before ‘__complex__’
DofData.cpp:560: error: ‘s’ was not declared in this scope
make[1]: *** [DofData.o] Error 1

It looks like the compiler dislikes something in std::complex, but the code 
syntax seems ok to me.

I'm using Linux Fedora 12 x86_64, gcc 4.4.4, OpenMPI 1.4.1 and PETSc 3.0.0-
p10.

Regards,
Davide Rondini