<div dir="ltr">Your make.log is partial. It looks like you tried to build things and it failed, and then you tried again, but<div>things were in a broken state. I would remove the whole source directory and start over.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 17, 2022 at 9:21 AM Zongze Yang <<a href="mailto:yangzongze@gmail.com">yangzongze@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, I tried to build petsc with slepc. `make` give the following error information. How can I figure out the problem?  The configure.log and make.log are attached.<div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr">```</div><div dir="ltr">*** Building SLEPc ***<br>Checking environment... done<br>Checking PETSc installation... done<br>Processing slepc4py... [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>[0]PETSC ERROR: Unable to open file<br>[0]PETSC ERROR: Unable to locate PETSc BAMG dynamic library<br> You cannot move the dynamic libraries!<br>[0]PETSC ERROR: See <a href="https://petsc.org/release/faq/" target="_blank">https://petsc.org/release/faq/</a> for trouble shooting.<br>[0]PETSC ERROR: Petsc Development GIT revision: v3.18.1-291-g89fba64eb45  GIT Date: 2022-11-15 14:31:39 +0000<br>[0]PETSC ERROR: Unknown Name on a arch-main-debug named ws6 by z2yang Thu Nov 17 21:59:09 2022<br>[0]PETSC ERROR: Configure options PETSC_ARCH=arch-main-debug --download-bamg --download-bison --download-chaco --download-ctetgen --download-egads --download-eigen --download-exodusii --download-fftw --download-hpddm --download-ks --download-libceed --download-metis --download-ml --download-mmg --download-mumps --download-netcdf --download-opencascade --download-p4est --download-parmetis --download-parmmg --download-pnetcdf --download-pragmatic --download-ptscotch --download-scalapack --download-slepc --download-slepc-configure-arguments=--with-slepc4py=1 --download-suitesparse --download-superlu_dist --download-tetgen --download-triangle --download-cmake --download-hdf5 --download-mpich --download-mpi4py --download-slepc --download-zlib --download-libpng --download-muparser --with-petsc4py=1 --with-shared-libraries --with-x=1 --with-x-include="[/home/z2yang/opt/spack/opt/spack/linux-ubuntu22.04-cascadelake/gcc-11.2.0/libx11-1.7.0-5c4ah77x6u7zfm6msg6hbkt23vmwjgkz/include,/home/z2yang/opt/spack/opt/spack/linux-ubuntu22.04-cascadelake/gcc-11.2.0/xproto-7.0.31-z33ate5bew7b7xrpj3pv6nb3towcfimo/include,/home/z2yang/opt/spack/opt/spack/linux-ubuntu22.04-cascadelake/gcc-11.2.0/kbproto-1.0.7-ea2l5e2kp43i2b423eotqxseywjvqis6/include,/home/z2yang/opt/spack/opt/spack/linux-ubuntu22.04-cascadelake/gcc-11.2.0/libxcb-1.14-e2ea2x3zga5xipq5wvcgsw25ilq5yo63/include,/home/z2yang/opt/spack/opt/spack/linux-ubuntu22.04-cascadelake/gcc-11.2.0/libxau-1.0.8-gmwxeffxcbkmxvwawtndhutiwficmxwv/include,/home/z2yang/opt/spack/opt/spack/linux-ubuntu22.04-cascadelake/gcc-11.2.0/libxdmcp-1.1.2-bsggzn5pf6pu5guwbooi3riu5uhaqgee/include]" --with-x-lib="-L/home/z2yang/opt/spack/opt/spack/linux-ubuntu22.04-cascadelake/gcc-11.2.0/libx11-1.7.0-5c4ah77x6u7zfm6msg6hbkt23vmwjgkz/lib -lX11" --force<br>[0]PETSC ERROR: #1 PetscInitialize_DynamicLibraries() at /home/z2yang/repos/petsc/src/sys/dll/reg.c:135<br>[0]PETSC ERROR: #2 PetscInitialize_Common() at /home/z2yang/repos/petsc/src/sys/objects/pinit.c:1025<br>[0]PETSC ERROR: #3 PetscInitialize() at /home/z2yang/repos/petsc/src/sys/objects/pinit.c:1267<br>Traceback (most recent call last):<br>  File "/home/z2yang/repos/petsc/arch-main-debug/externalpackages/git.slepc/./configure", line 11, in <module><br>    exec(open(os.path.join(os.path.dirname(__file__), 'config', 'configure.py')).read())<br>  File "<string>", line 215, in <module><br>  File "/home/z2yang/repos/petsc/arch-main-debug/externalpackages/git.slepc/config/packages/slepc4py.py", line 53, in Process<br>    from petsc4py import PETSc<br>  File "/home/z2yang/repos/petsc/arch-main-debug/lib/petsc4py/PETSc.py", line 4, in <module><br>    PETSc._initialize()<br>  File "PETSc/PETSc.pyx", line 509, in petsc4py.PETSc._initialize<br>  File "PETSc/PETSc.pyx", line 402, in petsc4py.PETSc.initialize<br>petsc4py.PETSc.Error: error code 65<br>**************************ERROR*************************************<br>Error building SLEPc.<br>********************************************************************<br>gmake[2]: *** [/home/z2yang/repos/petsc/arch-main-debug/lib/petsc/conf/petscrules:29: slepcbuild] Error 1<br>**************************ERROR*************************************<br>  Error during compile, check arch-main-debug/lib/petsc/conf/make.log<br>  Send it and arch-main-debug/lib/petsc/conf/configure.log to <a href="mailto:petsc-maint@mcs.anl.gov" target="_blank">petsc-maint@mcs.anl.gov</a><br>********************************************************************<br>Finishing make run at Thu, 17 Nov 2022 21:59:09 +0800<br></div><div dir="ltr">```</div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div>