<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;"><div><br></div>   This is fine. Just an over-enthusiastic compiler <div><br></div><div>   Barry</div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Sep 3, 2024, at 9:43 PM, Bodhinanda Chandra <bodhinandach@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr">Dear PETSc community,<div><br></div><div>I recently tried to install PETSc in Ubuntu 24.04. All seems to work fine, but one of the check tests ex5f thow the following errors:</div><div><br></div><div>----------------------------------------------------------------------------------------------------</div><div><br></div><div>Running PETSc check examples to verify correct installation<br>Using PETSC_DIR=/home/bchandra/Program/petsc and PETSC_ARCH=arch-linux-c-opt<br>C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process<br>C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes<br>C/C++ example src/snes/tutorials/ex19 run successfully with HYPRE<br>*******************Error detected during compile or link!*******************<br>See <a href="https://urldefense.us/v3/__https://petsc.org/release/faq/__;!!G_uCfscf7eWS!bNBtvML4qAKu9WGzBH2kRjtiP8AwN3ijY4qZngu7nvl_TUwz8pQ6WGyCJh0AtIEOqLHU5NHUJRL1oWg2FeTR0Oz6868$">https://petsc.org/release/faq/</a><br>/home/bchandra/Program/petsc/src/snes/tutorials ex5f<br>*********************************************************<br>/usr/local/openmpi-4.1.5/bin/mpif90 -fPIC -Wall -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -Wno-unused-dummy-argument -Wall -ffree-line-length-none -ffree-line-length-0 -Wno-lto-type-mismatch -Wno-unused-dummy-argument -O3 -march=native -mtune=native   -I/home/bchandra/Program/petsc/include -I/home/bchandra/Program/petsc/arch-linux-c-opt/include -I/usr/local/openmpi-4.1.5/include     ex5f.F90  -Wl,-rpath,/home/bchandra/Program/petsc/arch-linux-c-opt/lib -L/home/bchandra/Program/petsc/arch-linux-c-opt/lib -Wl,-rpath,/usr/local/openmpi-4.1.5/lib -L/usr/local/openmpi-4.1.5/lib -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/13 -L/usr/lib/gcc/x86_64-linux-gnu/13 -lpetsc -lHYPRE -lflapack -lfblas -lm -lX11 -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath -lstdc++ -lquadmath -o ex5f<br>ex5f.F90:439:52:<br><br>  439 |       PetscInt  row,col(5),i,j,i1,i5<br>      |                                                    ^<br>Warning: ‘col[1]’ may be used uninitialized [-Wmaybe-uninitialized]<br>ex5f.F90:439:52: Warning: ‘col[2]’ may be used uninitialized [-Wmaybe-uninitialized]<br>ex5f.F90:439:52: Warning: ‘col[3]’ may be used uninitialized [-Wmaybe-uninitialized]<br>ex5f.F90:476:83:<br><br>  476 |                call MatSetValuesLocal(jac,i1,[row],i1,[col],[v],INSERT_VALUES,ierr)<br>      |                                                                                   ^<br>Warning: ‘col[4]’ may be used uninitialized [-Wmaybe-uninitialized]<br>ex5f.F90:439:52:<br><br>  439 |       PetscInt  row,col(5),i,j,i1,i5<br>      |                                                    ^<br>note: ‘col[4]’ was declared here<br>ex5f.F90:476:83:<br><br>  476 |                call MatSetValuesLocal(jac,i1,[row],i1,[col],[v],INSERT_VALUES,ierr)<br>      |                                                                                   ^<br>Warning: ‘v[1]’ may be used uninitialized [-Wmaybe-uninitialized]<br>ex5f.F90:440:58:<br><br>  440 |       PetscScalar two,one,hx,hy,v(5)<br>      |                                                          ^<br>note: ‘v[1]’ was declared here<br>ex5f.F90:476:83:<br><br>  476 |                call MatSetValuesLocal(jac,i1,[row],i1,[col],[v],INSERT_VALUES,ierr)<br>      |                                                                                   ^<br>Warning: ‘v[2]’ may be used uninitialized [-Wmaybe-uninitialized]<br>ex5f.F90:440:58:<br><br>  440 |       PetscScalar two,one,hx,hy,v(5)<br>      |                                                          ^<br>note: ‘v[2]’ was declared here<br>ex5f.F90:476:83:<br><br>  476 |                call MatSetValuesLocal(jac,i1,[row],i1,[col],[v],INSERT_VALUES,ierr)<br>      |                                                                                   ^<br>Warning: ‘v[3]’ may be used uninitialized [-Wmaybe-uninitialized]<br>ex5f.F90:440:58:<br><br>  440 |       PetscScalar two,one,hx,hy,v(5)<br>      |                                                          ^<br>note: ‘v[3]’ was declared here<br>ex5f.F90:476:83:<br><br>  476 |                call MatSetValuesLocal(jac,i1,[row],i1,[col],[v],INSERT_VALUES,ierr)<br>      |                                                                                   ^<br>Warning: ‘v[4]’ may be used uninitialized [-Wmaybe-uninitialized]<br>ex5f.F90:440:58:<br><br>  440 |       PetscScalar two,one,hx,hy,v(5)<br>      |                                                          ^<br>note: ‘v[4]’ was declared here<br>Fortran example src/snes/tutorials/ex5f run successfully with 1 MPI process<br>Completed PETSc check examples<br></div><div><br class="gmail-Apple-interchange-newline">----------------------------------------------------------------------------------------------------<br></div><div><br></div><div>Any ideas what happened and how to fix it? Many thanks in advance.</div><div><br></div><div>Kind regards,</div><div>Nanda<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"></div></div></div></div>
</div></blockquote></div><br></div></body></html>