[petsc-users] Compilation error

Jin, Shuangshuang Shuangshuang.Jin at pnnl.gov
Fri Jan 24 13:46:35 CST 2014


Hello, I successfully installed Petsc-dev on my cluster with the following configuration:

./configure --with-scalar-type=complex --with-clanguage=C++ --download-f-blas-lapack PETSC_ARCH=arch-complex --with-fortran-kernels=generic --download-superlu_dist --download-mumps --download-scalapack --download-parmetis --download-metis

The PETSc libraries were built correctly, and test examples were ran to verfy correct installation.

However, when I got to run the example in /Petsc-dev/src/ts/examples/tutorials/ex17.c, I got compilation an error as below:

[d3m956 at philo tutorials]$ make ex17
mpicxx -o ex17.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g   -fPIC    -I/pic/projects/ds/Powertech_Labs/petsc-dev.6.06.13/include -I/pic/projects/ds/Powertech_Labs/petsc-dev.6.06.13/arch-complex/include -I/share/apps/openmpi/1.6.5/gcc/4.6.2/include    -D__INSDIR__=src/ts/examples/tutorials/ ex17.c
/pic/projects/ds/Powertech_Labs/petsc-dev.6.06.13/include/petscsnes.h(585): error: invalid argument to attribute "deprecated"
  PETSC_DEPRECATED("Use SNESGetLineSearch()") PETSC_STATIC_INLINE PetscErrorCode SNESGetSNESLineSearch(SNES snes,SNESLineSearch *ls) {return SNESGetLineSearch(snes,ls);}
  ^

/pic/projects/ds/Powertech_Labs/petsc-dev.6.06.13/include/petscsnes.h(586): error: invalid argument to attribute "deprecated"
  PETSC_DEPRECATED("Use SNESSetLineSearch()") PETSC_STATIC_INLINE PetscErrorCode SNESSetSNESLineSearch(SNES snes,SNESLineSearch ls) {return SNESSetLineSearch(snes,ls);}
  ^

compilation aborted for ex17.c (code 2)
make: *** [ex17.o] Error 2

Can anyone tell me how to fix it?

Thanks,
Shuangshuang



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140124/1d1aa93f/attachment.html>


More information about the petsc-users mailing list