PETSc-Slepc not compiling

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

  1. make petsc-slepc
  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 (91.5 KB)
make.log (30.1 KB)
error.log (314 Bytes)

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?

Thanks a lot. It worked after moving!