<div dir="ltr"><div dir="ltr">On Tue, Aug 29, 2023 at 9:08 AM Satish Balay via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send configure.log, make.log from both petsc-3.13 and 3.17 [or 3.19].<br>
<br>
[you can gzip them to make the logs friendly to mailing list - or send them to petsc-maint]<br>
<br>
And does test suite work with 3.17? [or 3.19?]<br></blockquote><div><br></div><div>David Wells is working on this. The change is that petscversion.h now includes petscconf.h which means you need all the include flags, but Libmesh does not get the flags right.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Satish<br>
<br>
On Tue, 29 Aug 2023, INTURU SRINIVAS 20PHD0548 via petsc-users wrote:<br>
<br>
> I am sharing the make.log file while building petsc-3.13.4 with Matlab.<br>
> Please find the attachment and do the needful.<br>
> <br>
> On Tue, Aug 29, 2023 at 10:19 AM INTURU SRINIVAS 20PHD0548 <<br>
> <a href="mailto:inturu.srinivas2020@vitstudent.ac.in" target="_blank">inturu.srinivas2020@vitstudent.ac.in</a>> wrote:<br>
> <br>
> > I tried with petsc-3.17.5. During building of libmesh, the error shows<br>
> > petsc was not found<br>
> ><br>
> > On Mon, Aug 28, 2023 at 9:43 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> ><br>
> >> <a href="https://ibamr.github.io/linux" rel="noreferrer" target="_blank">https://ibamr.github.io/linux</a> says petsc-3.17<br>
> >><br>
> >> Here you are using 3.13<br>
> >><br>
> >> Can you retry with petsc-3.17.5?<br>
> >><br>
> >> Satish<br>
> >><br>
> >> On Mon, 28 Aug 2023, INTURU SRINIVAS 20PHD0548 via petsc-users wrote:<br>
> >><br>
> >> > Hello,<br>
> >> ><br>
> >> > I want to build PETSc with MATLAB for working on the simulation using<br>
> >> IBAMR<br>
> >> > open software. While building the PETSc, using the following<br>
> >> ><br>
> >> > export PETSC_DIR=$PWD<br>
> >> > export PETSC_ARCH=linux-debug<br>
> >> > ./configure \<br>
> >> > --CC=$HOME/sfw/linux/openmpi/4.1.4/bin/mpicc \<br>
> >> > --CXX=$HOME/sfw/linux/openmpi/4.1.4/bin/mpicxx \<br>
> >> > --FC=$HOME/sfw/linux/openmpi/4.1.4/bin/mpif90 \<br>
> >> > --with-debugging=1 \<br>
> >> > --download-hypre=1 \<br>
> >> > --download-fblaslapack=1 \<br>
> >> > --with-x=0 \<br>
> >> > --with-matlab-dir=/usr/local/MATLAB/R2020b/<br>
> >> > --with-matlab-engine=1<br>
> >> > --with-matlab-engine-dir=/usr/local/MATLAB/R2020b/extern/engines/<br>
> >> ><br>
> >> > make -j4<br>
> >> > make -j4 test<br>
> >> ><br>
> >> > I got the following error<br>
> >> > CLINKER<br>
> >> linux-debug/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test<br>
> >> > /usr/bin/ld:<br>
> >> > linux-debug/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test.o: in<br>
> >> > function `EvaluateResidual':<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:32:<br>
> >> > undefined reference to `PetscMatlabEnginePut'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:33:<br>
> >> > undefined reference to `PetscMatlabEngineEvaluate'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:35:<br>
> >> > undefined reference to `PetscMatlabEngineGet'<br>
> >> > /usr/bin/ld:<br>
> >> > linux-debug/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test.o: in<br>
> >> > function `EvaluateJacobian':<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:46:<br>
> >> > undefined reference to `PetscMatlabEnginePut'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:47:<br>
> >> > undefined reference to `PetscMatlabEngineEvaluate'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:49:<br>
> >> > undefined reference to `PetscMatlabEngineGet'<br>
> >> > /usr/bin/ld:<br>
> >> > linux-debug/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test.o: in<br>
> >> > function `TaoPounders':<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:75:<br>
> >> > undefined reference to `PetscMatlabEngineGet'<br>
> >> > /usr/bin/ld:<br>
> >> > linux-debug/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test.o: in<br>
> >> > function `main':<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:126:<br>
> >> > undefined reference to `PetscMatlabEngineCreate'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:127:<br>
> >> > undefined reference to `PetscMatlabEngineEvaluate'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:139:<br>
> >> > undefined reference to `PetscMatlabEngineEvaluate'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:140:<br>
> >> > undefined reference to `PetscMatlabEngineGetArray'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:142:<br>
> >> > undefined reference to `PetscMatlabEngineGetArray'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:144:<br>
> >> > undefined reference to `PetscMatlabEngineGetArray'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:146:<br>
> >> > undefined reference to `PetscMatlabEngineGetArray'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:148:<br>
> >> > undefined reference to `PetscMatlabEngineGetArray'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:154:<br>
> >> > undefined reference to `PetscMatlabEngineEvaluate'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:157:<br>
> >> > undefined reference to `PetscMatlabEngineEvaluate'<br>
> >> > /usr/bin/ld:<br>
> >> ><br>
> >> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c:158:<br>
> >> > undefined reference to `PetscMatlabEngineDestroy'<br>
> >> ><br>
> >> > collect2: error: ld returned 1 exit status<br>
> >> > make: *** [gmakefile.test:185:<br>
> >> > linux-debug/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test]<br>
> >> Error 1<br>
> >> > make: *** Waiting for unfinished jobs....<br>
> >> ><br>
> >> > Please help me to solve this issue<br>
> >> ><br>
> >> > Thank you<br>
> >> > Srinivas<br>
> >> ><br>
> >> ><br>
> >><br>
> >><br>
> <br>
> <br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>