# PETSc-Slepc not compiling

**URL:** <https://community.freefem.org/t/petsc-slepc-not-compiling/1460>\
**Category:** FreeFEM installation\
**Created:** [January 29, 2022, 4:50pm UTC](https://community.freefem.org/t/petsc-slepc-not-compiling/1460 "2022-01-29T16:50:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajinks](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/ajinks/32/816_2.png) [@Ajinks](https://community.freefem.org/u/Ajinks)\
**Post date:** [January 29, 2022, 4:50pm UTC](https://community.freefem.org/t/petsc-slepc-not-compiling/1460/1 "2022-01-29T16:50:22Z")

</div>

I am trying to compile PETSc with Slepc. Following steps in the mentioned in documentation but finding the following error.

1. make petsc-slepc

```auto
  Error during compile, check installed-arch-linux2-c-opt/lib/slepc/conf/make.log
  Send all contents of ./installed-arch-linux2-c-opt/lib/slepc/conf to slepc-maint@upv.es
************************************************************************
make[5]: *** [makefile:37: all] Error 1
make[4]: *** [GNUmakefile:4: all] Error 2
**************************ERROR*************************************
Error building SLEPc.
********************************************************************
make[3]: *** [/home/ajinkya/FreeFEM/FreeFEM/FreeFem-sources/3rdparty/ff-petsc/petsc-3.16.1/fr/lib/petsc/conf/petscrules:29: slepcbuild] Error 1
make[2]: *** [makefile:300: install] Error 2
make[1]: *** [GNUmakefile:17: install] Error 2
make[1]: Leaving directory '/home/ajinkya/FreeFEM/FreeFEM/FreeFem-sources/3rdparty/ff-petsc/petsc-3.16.1'
make: *** [Makefile:211: petsc-
[configure.log|attachment](upload://dB8Xf8x9Z7xIGxDjZdvzmgq5D7x.log) (91.5 KB)
[make.log|attachment](upload://t2EUr1IpVfwLRXoUkkzHlu2heij.log) (30.1 KB)
[error.log|attachment](upload://15jfLIzF89rkZ6DysjYGuzqKiSf.log) (314 Bytes)
3.16.1/tag-install-real] Error 2

```

I have attached the log files. Any suggestion will definitely help.

[configure.log](https://community.freefem.org/uploads/short-url/dB8Xf8x9Z7xIGxDjZdvzmgq5D7x.log) (91.5 KB)  
[make.log](https://community.freefem.org/uploads/short-url/t2EUr1IpVfwLRXoUkkzHlu2heij.log) (30.1 KB)  
[error.log](https://community.freefem.org/uploads/short-url/15jfLIzF89rkZ6DysjYGuzqKiSf.log) (314 Bytes)

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [January 29, 2022, 4:55pm UTC](https://community.freefem.org/t/petsc-slepc-not-compiling/1460/2 "2022-01-29T16:55:47Z")

</div>

```auto
Error processing line 3 of /usr/lib/python3/dist-packages/mshr.pth:

  Traceback (most recent call last):
    File "/usr/lib/python3.8/site.py", line 175, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
  FileNotFoundError: [Errno 2] No such file or directory: '/home/ajinkya/FreeFEM/freefem-install/ff-petsc/r/installed-arch-linux2-c-opt/include/petscconf.h'

```

You have a FEniCS (I think?) installation messing up your filesystem. Any chance you could move those files?

---

<div class="post-metadata">

**Author:** ![Ajinks](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/ajinks/32/816_2.png) [@Ajinks](https://community.freefem.org/u/Ajinks)\
**Post date:** [January 29, 2022, 5:01pm UTC](https://community.freefem.org/t/petsc-slepc-not-compiling/1460/3 "2022-01-29T17:01:24Z")

</div>

Thanks a lot. It worked after moving!

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [January 31, 2022, 4:06pm UTC](https://community.freefem.org/t/petsc-slepc-not-compiling/1460/4 "2022-01-31T16:06:00Z")

</div>


