<div dir="ltr"><div>I am sharing the log files while building petsc3.13.4 with matlab and also the log file while building libmesh with petsc3.17.5 and matlab. Building petsc 3.17.5 with matlab was done successfully. But libmesh is not able to find the petsc<br></div><div>Please find the attachments.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 29, 2023 at 7:31 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><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>
<br>
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>
<i><span><b>Disclaimer:</b><br>This message was sent from Vellore Institute of Technology. The contents of this email may contain legally protected confidential or privileged information of “Vellore Institute of Technology”. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. If you have received this email in error, please promptly notify the sender by reply email and delete the original email and any backup copies without reading them.</span></i><br>