<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">That’s a fun one.<div>BAMG is built after PETSc and SLEPc.</div><div>But slepc4py tries to import PETSc before BAMG has been built, so it’s chocking.</div><div>Could you please try to change --download-slepc-configure-arguments=--with-slepc4py=1 to --download-slepc-configure-arguments=--with-slepc4py=1\ --have-petsc4py=1</div><div><br></div><div>Thanks,</div><div>Pierre<br><div><br><blockquote type="cite"><div>On 17 Nov 2022, at 3:19 PM, Zongze Yang <yangzongze@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><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" class="gmail_signature" data-smartmail="gmail_signature"><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/">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">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>
<span id="cid:f_lal5r45h1"><make.log></span><span id="cid:f_lal5r44x0"><configure.log></span></div></blockquote></div><br></div></body></html>