<div dir="ltr">Thanks for all the suggestions. <div>Will try to build with `
--download-slepc-configure-arguments='--with-slepc4py=1 --have-petsc4py=1'`.<div><br></div><div>Thanks,</div><div>Zongze<br><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Pierre Jolivet <<a href="mailto:pierre@joliv.et">pierre@joliv.et</a>> 于2022年11月17日周四 23:23写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On 17 Nov 2022, at 4:11 PM, Satish Balay via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br>
> <br>
>> --download-bamg --download-slepc --download-slepc-configure-arguments=--with-slepc4py=1<br>
> <br>
> I guess this won't really work<br>
<br>
It does work.<br>
Just tried ./configure --download-slepc --download-bamg --with-petsc4py '--download-slepc-configure-arguments=--with-slepc4py=1 --have-petsc4py=1' --with-fc=0<br>
No issue whatsoever.<br>
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)<br>
<br>
Thanks,<br>
Pierre<br>
<br>
> as the order of build should be:<br>
> - petsc<br>
> - slepc<br>
> - bamg<br>
> - slepc4py<br>
> <br>
> And its not easy to do this via configure -without hacks. Currently the above build has the order (hence fails):<br>
> - petsc<br>
> - slepc<br>
> - slepc4py<br>
> - bamg<br>
> <br>
> I guess the alternative is: build slepc4py separately after petsc/slepc/bamg are built.<br>
> <br>
> Satish<br>
> <br>
> On Thu, 17 Nov 2022, Zongze Yang wrote:<br>
> <br>
>> Hello, I tried to build petsc with slepc. `make` give the following error<br>
>> information. How can I figure out the problem? The configure.log and<br>
>> make.log are attached.<br>
>> <br>
>> ```<br>
>> *** Building SLEPc ***<br>
>> Checking environment... done<br>
>> Checking PETSc installation... done<br>
>> Processing slepc4py... [0]PETSC ERROR: --------------------- Error Message<br>
>> --------------------------------------------------------------<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/" rel="noreferrer" target="_blank">https://petsc.org/release/faq/</a> for trouble shooting.<br>
>> [0]PETSC ERROR: Petsc Development GIT revision: v3.18.1-291-g89fba64eb45<br>
>> 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<br>
>> Nov 17 21:59:09 2022<br>
>> [0]PETSC ERROR: Configure options PETSC_ARCH=arch-main-debug<br>
>> --download-bamg --download-bison --download-chaco --download-ctetgen<br>
>> --download-egads --download-eigen --download-exodusii --download-fftw<br>
>> --download-hpddm --download-ks --download-libceed --download-metis<br>
>> --download-ml --download-mmg --download-mumps --download-netcdf<br>
>> --download-opencascade --download-p4est --download-parmetis<br>
>> --download-parmmg --download-pnetcdf --download-pragmatic<br>
>> --download-ptscotch --download-scalapack --download-slepc<br>
>> --download-slepc-configure-arguments=--with-slepc4py=1<br>
>> --download-suitesparse --download-superlu_dist --download-tetgen<br>
>> --download-triangle --download-cmake --download-hdf5 --download-mpich<br>
>> --download-mpi4py --download-slepc --download-zlib --download-libpng<br>
>> --download-muparser --with-petsc4py=1 --with-shared-libraries --with-x=1<br>
>> --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]"<br>
>> --with-x-lib="-L/home/z2yang/opt/spack/opt/spack/linux-ubuntu22.04-cascadelake/gcc-11.2.0/libx11-1.7.0-5c4ah77x6u7zfm6msg6hbkt23vmwjgkz/lib<br>
>> -lX11" --force<br>
>> [0]PETSC ERROR: #1 PetscInitialize_DynamicLibraries() at<br>
>> /home/z2yang/repos/petsc/src/sys/dll/reg.c:135<br>
>> [0]PETSC ERROR: #2 PetscInitialize_Common() at<br>
>> /home/z2yang/repos/petsc/src/sys/objects/pinit.c:1025<br>
>> [0]PETSC ERROR: #3 PetscInitialize() at<br>
>> /home/z2yang/repos/petsc/src/sys/objects/pinit.c:1267<br>
>> Traceback (most recent call last):<br>
>> File<br>
>> "/home/z2yang/repos/petsc/arch-main-debug/externalpackages/git.slepc/./configure",<br>
>> line 11, in <module><br>
>> exec(open(os.path.join(os.path.dirname(__file__), 'config',<br>
>> 'configure.py')).read())<br>
>> File "<string>", line 215, in <module><br>
>> File<br>
>> "/home/z2yang/repos/petsc/arch-main-debug/externalpackages/git.slepc/config/packages/slepc4py.py",<br>
>> line 53, in Process<br>
>> from petsc4py import PETSc<br>
>> File "/home/z2yang/repos/petsc/arch-main-debug/lib/petsc4py/PETSc.py",<br>
>> 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]: ***<br>
>> [/home/z2yang/repos/petsc/arch-main-debug/lib/petsc/conf/petscrules:29:<br>
>> 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<br>
>> <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>
>> ```<br>
>> <br>
> <br>
<br>
</blockquote></div>