<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I try to install petsc, I got the following error. Can you help me with that?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sijie</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">================================================================================================</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Running check examples to verify correct installation</p>
<p class="MsoNormal">Using PETSC_DIR=/home/tools/a/zhan2355/petsc-3.18.1 and PETSC_ARCH=arch-linux-c-debug</p>
<p class="MsoNormal">*******************Error detected during compile or link!*******************</p>
<p class="MsoNormal">See https://petsc.org/release/faq/</p>
<p class="MsoNormal">/home/tools/a/zhan2355/petsc-3.18.1/src/snes/tutorials ex19</p>
<p class="MsoNormal">*********************************************************************************</p>
<p class="MsoNormal">mpicc -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch -fstack-protector -fvisibility=hidden -g3 -O0  -I/home/tools/a/zhan2355/petsc-3.18.1/include -I/home/tools/a/zhan2355/petsc-3.18.1/arch-linux-c-debug/include    
 -export-dynamic ex19.c  -Wl,-rpath,/home/tools/a/zhan2355/petsc-3.18.1/arch-linux-c-debug/lib -L/home/tools/a/zhan2355/petsc-3.18.1/arch-linux-c-debug/lib -Wl,-rpath,/usr/lib64/openmpi3/lib -L/usr/lib64/openmpi3/lib -Wl,-rpath,/package/gcc/8.3.0/lib/gcc/x86_64-pc-linux-gnu/8.3.0
 -L/package/gcc/8.3.0/lib/gcc/x86_64-pc-linux-gnu/8.3.0 -Wl,-rpath,/package/gcc/8.3.0/lib/gcc -L/package/gcc/8.3.0/lib/gcc -Wl,-rpath,/package/gcc/8.3.0/lib64 -L/package/gcc/8.3.0/lib64 -Wl,-rpath,/package/gcc/8.3.0/lib -L/package/gcc/8.3.0/lib -lpetsc -llapack
 -lblas -lm -lX11 -lstdc++ -ldl -lmpi_usempi -lmpi_mpifh -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath -lpthread -lquadmath -lstdc++ -ldl -o ex19</p>
<p class="MsoNormal">/usr/bin/ld: warning: libgfortran.so.3, needed by /lib/../lib64/liblapack.so, may conflict with libgfortran.so.5</p>
<p class="MsoNormal">/usr/bin/ld: warning: libgfortran.so.3, needed by /lib/../lib64/liblapack.so, may conflict with libgfortran.so.5</p>
<p class="MsoNormal">Possible error running C/C++ src/snes/tutorials/ex19 with 1 MPI process</p>
<p class="MsoNormal">See https://petsc.org/release/faq/</p>
<p class="MsoNormal">[1669441660.650232] [nut:40436:0]            sys.c:618  UCX  ERROR shmget(size=2097152 flags=0xfb0) for mm_recv_desc failed: Operation not permitted, please check shared memory limits by 'ipcs -l'</p>
<p class="MsoNormal">lid velocity = 0.0016, prandtl # = 1., grashof # = 1.</p>
<p class="MsoNormal">Number of SNES iterations = 2</p>
<p class="MsoNormal">Possible error running C/C++ src/snes/tutorials/ex19 with 2 MPI processes</p>
<p class="MsoNormal">See https://petsc.org/release/faq/</p>
<p class="MsoNormal">[1669441661.708168] [nut:40467:0]            sys.c:618  UCX  ERROR shmget(size=2097152 flags=0xfb0) for mm_recv_desc failed: Operation not permitted, please check shared memory limits by 'ipcs -l'</p>
<p class="MsoNormal">[1669441661.713950] [nut:40466:0]            sys.c:618  UCX  ERROR shmget(size=2097152 flags=0xfb0) for mm_recv_desc failed: Operation not permitted, please check shared memory limits by 'ipcs -l'</p>
<p class="MsoNormal">lid velocity = 0.0016, prandtl # = 1., grashof # = 1.</p>
<p class="MsoNormal">Number of SNES iterations = 2</p>
<p class="MsoNormal">*******************Error detected during compile or link!*******************</p>
<p class="MsoNormal">See https://petsc.org/release/faq/</p>
<p class="MsoNormal">/home/tools/a/zhan2355/petsc-3.18.1/src/snes/tutorials ex5f</p>
<p class="MsoNormal">*********************************************************</p>
<p class="MsoNormal">mpif90 -fPIC -Wall -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -Wno-unused-dummy-argument -g -O0   -I/home/tools/a/zhan2355/petsc-3.18.1/include -I/home/tools/a/zhan2355/petsc-3.18.1/arch-linux-c-debug/include    
 ex5f.F90  -Wl,-rpath,/home/tools/a/zhan2355/petsc-3.18.1/arch-linux-c-debug/lib -L/home/tools/a/zhan2355/petsc-3.18.1/arch-linux-c-debug/lib -Wl,-rpath,/usr/lib64/openmpi3/lib -L/usr/lib64/openmpi3/lib -Wl,-rpath,/package/gcc/8.3.0/lib/gcc/x86_64-pc-linux-gnu/8.3.0
 -L/package/gcc/8.3.0/lib/gcc/x86_64-pc-linux-gnu/8.3.0 -Wl,-rpath,/package/gcc/8.3.0/lib/gcc -L/package/gcc/8.3.0/lib/gcc -Wl,-rpath,/package/gcc/8.3.0/lib64 -L/package/gcc/8.3.0/lib64 -Wl,-rpath,/package/gcc/8.3.0/lib -L/package/gcc/8.3.0/lib -lpetsc -llapack
 -lblas -lm -lX11 -lstdc++ -ldl -lmpi_usempi -lmpi_mpifh -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath -lpthread -lquadmath -lstdc++ -ldl -o ex5f</p>
<p class="MsoNormal">/usr/bin/ld: warning: libgfortran.so.3, needed by /lib/../lib64/liblapack.so, may conflict with libgfortran.so.5</p>
<p class="MsoNormal">/usr/bin/ld: warning: libgfortran.so.3, needed by /lib/../lib64/liblapack.so, may conflict with libgfortran.so.5</p>
<p class="MsoNormal">/usr/bin/ld: warning: libgfortran.so.3, needed by /lib/../lib64/liblapack.so, may conflict with libgfortran.so.5</p>
<p class="MsoNormal">/usr/bin/ld: warning: libgfortran.so.3, needed by /lib/../lib64/liblapack.so, may conflict with libgfortran.so.5</p>
<p class="MsoNormal">Possible error running Fortran example src/snes/tutorials/ex5f with 1 MPI process</p>
<p class="MsoNormal">See https://petsc.org/release/faq/</p>
<p class="MsoNormal">[1669441665.341407] [nut:40669:0]            sys.c:618  UCX  ERROR shmget(size=2097152 flags=0xfb0) for mm_recv_desc failed: Operation not permitted, please check shared memory limits by 'ipcs -l'</p>
<p class="MsoNormal">Number of SNES iterations =     3</p>
<p class="MsoNormal">Completed test examples</p>
<p class="MsoNormal">Error while running make check</p>
<p class="MsoNormal">make[1]: *** [check] Error 1</p>
<p class="MsoNormal">make: *** [check] Error 2</p>
</div>
</body>
</html>