[Getdp] error in Post_Format.c while trying to compile on Linux

Ardelean Gheorghe Gheorghe.Ardelean at iisb.fraunhofer.de
Fri May 20 11:42:35 CEST 2011


Hello,

I am trying to compile getdp under openSuSE 11.1 and I am getting some errors.
First, I have compiled and installed PETSC with the following parameters:

export PETSC_DIR=$PWD

./configure \
--prefix=/opt/petsc/petsc-3.1-p8 \
--with-mpi=1 \
--with-mpi-include=/opt/mpich/ch-p4/include \
--with-mpi-lib=[/opt/mpich/ch-p4/lib64/libmpich.a,/opt/mpich/ch-p4/lib64/libfmpich.a,/opt/mpich/ch-p4/lib64/libmpichf90.a] \
--with-mpiexec=/usr/bin/mpiexec \
--with-debugging=0 \
--with-clanguage=cxx \
--with-c-support=1 \
--with-shared=0 \
--with-x=0 \
--download-mumps=ifneeded \
--download-parmetis=ifneeded \
--download-scalapack=ifneeded \
--download-blacs=ifneeded \
--download-umfpack=ifneeded

#--with-scalar-type=complex  <-- I had to disable this because of the -with-c-support (without C  support getdp gives errors).

Now I a configure getdp as follows:

./configure --prefix=/opt/getdp/getdp-1.2.1 --enable-petsc --with-petsc-prefix=/opt/petsc/petsc-3.1-p8 --with-petsc-arch=linux-gnu-cxx-opt --disable-arpack --enable-gsl

After that make gives an error if you do not edit the variables according to the following diff:

--- variables~  2011-05-20 11:29:08.000000000 +0200
+++ variables   2011-05-20 11:29:08.000000000 +0200
@@ -48,7 +48,7 @@
# PETSc stuff
PETSC_DIR=/opt/petsc/petsc-3.1-p8
PETSC_ARCH=linux-gnu-cxx-opt
-include ${PETSC_DIR}/bmake/common/variables
+include ${PETSC_DIR}/conf/variables
 # How you create a static library on this machine
AR=/usr/bin/ar ruvs

=== END oft he diff ====

Now I try to compile everything with make:

make[1]: Entering directory `/root/getdp-1.2.1/Main'
make[1]: `../lib/libMain.a' is up to date.
make[1]: Leaving directory `/root/getdp-1.2.1/Main'
make[1]: Entering directory `/root/getdp-1.2.1/Parser'
make[1]: `../lib/libParser.a' is up to date.
make[1]: Leaving directory `/root/getdp-1.2.1/Parser'
make[1]: Entering directory `/root/getdp-1.2.1/Post'
gcc -g -O2  -DHAVE_BLAS_LAPACK -DHAVE_GSL -DHAVE_PETSC  -I/opt/petsc/petsc-3.1-p8/include -I/opt/petsc/petsc-3.1-p8/include -I/opt/petsc/petsc-3.1-p8/include -I/opt/mpich/ch-p4/include   -I. -I../include -I../DataStr -I../DofData -I../GeoData -I../Main -I../Numeric -I../Sparskit -I../Function    -c -o Pos_Format.o Pos_Format.c
Pos_Format.c:57: error: 'TS' redeclared as different kind of symbol
/opt/petsc/petsc-3.1-p8/include/petscts.h:19: error: previous declaration of 'TS' was here
make[1]: *** [Pos_Format.o] Error 1

Please help!

Best regards,

Gheorghe Ardelean.

+--
Dr. Gheorghe ARDELEAN
+--------------------------------------------------------------+
| Fraunhofer Institut fuer Integrierte Systeme und  |
| Bauelementetechnologie                                                 |
| Schottky str. 10                                                                       |
| D-91058 Erlangen, Germany                                             |
| Tel. +49-(0)9131-761265, Fax. +49-(0)9131-761280  |
| Email:                                                                                        |
|              ardelean at iisb.fraunhofer.de                           |
|     gheorghe.ardelean at iisb.fraunhofer.de               |
+-------------------------------------------------------------+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/getdp/attachments/20110520/47a4ad19/attachment.html>


More information about the getdp mailing list