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

Pierre Jolivet pierre at joliv.et
Thu Nov 17 09:23:39 CST 2022



> On 17 Nov 2022, at 4:11 PM, Satish Balay via petsc-users <petsc-users at mcs.anl.gov> wrote:
> 
>> --download-bamg --download-slepc  --download-slepc-configure-arguments=--with-slepc4py=1
> 
> I guess this won't really work

It does work.
Just tried ./configure --download-slepc --download-bamg --with-petsc4py '--download-slepc-configure-arguments=--with-slepc4py=1 --have-petsc4py=1' --with-fc=0
No issue whatsoever.
Matt, you should probably force that flag (--have-petsc4py=1) in bamg.py (and you should change '+carg+'./configure to '+carg+self.python.pyexe+' ./configure as in slepc.py)

Thanks,
Pierre

> as the order of build should be:
> - petsc
> - slepc
> - bamg
> - slepc4py
> 
> And its not easy to do this via configure -without hacks. Currently the above build has the order (hence fails):
> - petsc
> - slepc
> - slepc4py
> - bamg
> 
> I guess the alternative is: build slepc4py separately after petsc/slepc/bamg are built.
> 
> Satish
> 
> On Thu, 17 Nov 2022, Zongze Yang 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
>> ```
>> 
> 



More information about the petsc-users mailing list