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

Christophe Geuzaine cgeuzaine at ulg.ac.be
Sun May 22 11:09:38 CEST 2011


Hi Gheorghe - Can you try with a recent nightly svn snapshot?



On 20/05/11 11:42, Ardelean Gheorghe wrote:
> 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 |
>
> +-------------------------------------------------------------+
>
>
>
> _______________________________________________
> getdp mailing list
> getdp at geuz.org
> http://www.geuz.org/mailman/listinfo/getdp


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine