[petsc-users] Compilation error

Satish Balay balay at mcs.anl.gov
Fri Jan 24 13:52:21 CST 2014


There shouldn't be anything like
'-D__INSDIR__=src/ts/examples/tutorials/' in the compile command with
latest petsc-dev

6.06.13 suggests its more than 6months old. Perhaps you can update to
latest petsc-dev - and see if the problem persists?

Satish

On Fri, 24 Jan 2014, Jin, Shuangshuang wrote:

> 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
> 
> 
> 
> 



More information about the petsc-users mailing list