<div dir="ltr">I tried with petsc-3.17.5. During building of libmesh, the error shows petsc was not found<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 28, 2023 at 9:43 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"><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 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 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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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>
> /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] 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>
</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>