[petsc-users] Build error with slepc: Unable to locate PETSc BAMG dynamic library

Matthew Knepley knepley at gmail.com
Thu Nov 17 09:08:51 CST 2022


Your make.log is partial. It looks like you tried to build things and it
failed, and then you tried again, but
things were in a broken state. I would remove the whole source directory
and start over.

  Thanks,

     Matt

On Thu, Nov 17, 2022 at 9:21 AM Zongze Yang <yangzongze at gmail.com> wrote:

> 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.
>
> ```
> *** Building SLEPc ***
> Checking environment... done
> Checking PETSc installation... done
> Processing slepc4py... [0]PETSC ERROR: --------------------- Error Message
> --------------------------------------------------------------
> [0]PETSC ERROR: Unable to open file
> [0]PETSC ERROR: Unable to locate PETSc BAMG dynamic library
>  You cannot move the dynamic libraries!
> [0]PETSC ERROR: See https://petsc.org/release/faq/ for trouble shooting.
> [0]PETSC ERROR: Petsc Development GIT revision: v3.18.1-291-g89fba64eb45
>  GIT Date: 2022-11-15 14:31:39 +0000
> [0]PETSC ERROR: Unknown Name on a arch-main-debug named ws6 by z2yang Thu
> Nov 17 21:59:09 2022
> [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
> [0]PETSC ERROR: #1 PetscInitialize_DynamicLibraries() at
> /home/z2yang/repos/petsc/src/sys/dll/reg.c:135
> [0]PETSC ERROR: #2 PetscInitialize_Common() at
> /home/z2yang/repos/petsc/src/sys/objects/pinit.c:1025
> [0]PETSC ERROR: #3 PetscInitialize() at
> /home/z2yang/repos/petsc/src/sys/objects/pinit.c:1267
> Traceback (most recent call last):
>   File
> "/home/z2yang/repos/petsc/arch-main-debug/externalpackages/git.slepc/./configure",
> line 11, in <module>
>     exec(open(os.path.join(os.path.dirname(__file__), 'config',
> 'configure.py')).read())
>   File "<string>", line 215, in <module>
>   File
> "/home/z2yang/repos/petsc/arch-main-debug/externalpackages/git.slepc/config/packages/slepc4py.py",
> line 53, in Process
>     from petsc4py import PETSc
>   File "/home/z2yang/repos/petsc/arch-main-debug/lib/petsc4py/PETSc.py",
> line 4, in <module>
>     PETSc._initialize()
>   File "PETSc/PETSc.pyx", line 509, in petsc4py.PETSc._initialize
>   File "PETSc/PETSc.pyx", line 402, in petsc4py.PETSc.initialize
> petsc4py.PETSc.Error: error code 65
> **************************ERROR*************************************
> Error building SLEPc.
> ********************************************************************
> gmake[2]: ***
> [/home/z2yang/repos/petsc/arch-main-debug/lib/petsc/conf/petscrules:29:
> slepcbuild] Error 1
> **************************ERROR*************************************
>   Error during compile, check arch-main-debug/lib/petsc/conf/make.log
>   Send it and arch-main-debug/lib/petsc/conf/configure.log to
> petsc-maint at mcs.anl.gov
> ********************************************************************
> Finishing make run at Thu, 17 Nov 2022 21:59:09 +0800
> ```
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221117/a0359dde/attachment.html>


More information about the petsc-users mailing list