[petsc-users] SLEPc in PETSc 3.11.0

Eda Oktay eda.oktay at metu.edu.tr
Thu Apr 25 06:16:13 CDT 2019


Hello everyone,

I am trying to run my program in petsc 3.11.0. It is currently working in
petsc 3.10.3.

I am using slepc in the program, so when I used 3.10.3 the slepc library is
in petsc-3.10.3/arch-linux2-c-debug. However, in 3.11.0, it is only in
petsc-3.11.0/arch-linux2-c-debug/externalpackages/git.slepc. I think that
is why, my program can not be compiled. I get the following error when I
type "make asil" to make the program asil.c:

/home/edaoktay/petsc-3.11.0/arch-linux2-c-debug/bin/mpicc -o asil.o -c
-Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas
-fstack-protector -fvisibility=hidden -g3
 -I/home/edaoktay/petsc-3.11.0/arch-linux2-c-debug/externalpackages/git.slepc/include
-I/home/edaoktay/petsc-3.11.0/arch-linux2-c-debug/externalpackages/git.slepc/arch-linux2-c-debug/include
-I/home/edaoktay/petsc-3.11.0/include
-I/home/edaoktay/petsc-3.11.0/arch-linux2-c-debug/include    `pwd`/asil.c
In file included from
/home/edaoktay/petsc-3.11.0/arch-linux2-c-debug/externalpackages/git.slepc/include/slepcsys.h:45:0,
                 from
/home/edaoktay/petsc-3.11.0/arch-linux2-c-debug/externalpackages/git.slepc/include/slepcst.h:16,
                 from
/home/edaoktay/petsc-3.11.0/arch-linux2-c-debug/externalpackages/git.slepc/include/slepceps.h:16,
                 from /home/edaoktay/petsc-3.11.0/src/eda/asil.c:10:
/home/edaoktay/petsc-3.11.0/arch-linux2-c-debug/externalpackages/git.slepc/arch-linux2-c-debug/include/slepcconf.h:1:0:
error: unterminated #if
 #if !defined(__SLEPCCONF_H)

/home/edaoktay/petsc-3.11.0/lib/petsc/conf/rules:359: recipe for target
'asil.o' failed
make: *** [asil.o] Error 1


How can I get rid of this error? I have never get this when I used 3.10.3.

Thanks!

Eda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190425/437b4132/attachment.html>


More information about the petsc-users mailing list