<div dir="ltr"><div>Hi Matthew,</div><div><br></div><div>I am using PETSc to simulate the problems using IBAMR. I do not have any separate test files to test PETSc alone. Can you please help me how to define this DATAFILESPATH?</div><div><br></div><div>Thanks and regards</div><div>Srinivas.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 3, 2023 at 6:06 PM Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</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"><div dir="ltr"><div dir="ltr">On Sun, Sep 3, 2023 at 3:04 AM INTURU SRINIVAS 20PHD0548 via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">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"><div dir="ltr"><div>Hi Sathish,</div><div><br></div><div>Thank you so much for your efforts and the support you are giving me to sort this out.<br></div><div><br></div><div>I tried to follow the same procedure which you followed to build Petsc 3.13.4 with Matlab-R2020b on Ubuntu20.04.</div><div><br></div><div><b>$./configure --with-mpi-dir=/home/vit/sfw/linux/openmpi/4.1.4 COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 PETSC_ARCH=linux-opt --with-debugging=0 --with-x=0 --with-matlab-dir=/usr/local/MATLAB/R2020b --with-blaslapack-dir=/usr/local/MATLAB/R2020b --known-64-bit-blas-indices=1 --with-matlab-engine=1</b><br>Using python3 for Python<br>===============================================================================<br> Configuring PETSc to compile on your system <br>===============================================================================<br>=============================================================================== It appears you do not have valgrind installed on your system. We HIGHLY recommend you install it from <a href="http://www.valgrind.org" target="_blank">www.valgrind.org</a> Or install valgrind-devel or equivalent using your package manager. Then rerun ./configure =============================================================================== Compilers: <br> C Compiler: /home/vit/sfw/linux/openmpi/4.1.4/bin/mpicc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3 <br> Version: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0<br> C++ Compiler: /home/vit/sfw/linux/openmpi/4.1.4/bin/mpicxx -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3 -fPIC <br> Version: g++ (Ubuntu 11.4.0-2ubuntu1~20.04) 11.4.0<br> Fortran Compiler: /home/vit/sfw/linux/openmpi/4.1.4/bin/mpif90 -fPIC -Wall -ffree-line-length-0 -Wno-unused-dummy-argument -O3 <br> Version: GNU Fortran (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0<br>Linkers:<br> Shared linker: /home/vit/sfw/linux/openmpi/4.1.4/bin/mpicc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3<br> Dynamic linker: /home/vit/sfw/linux/openmpi/4.1.4/bin/mpicc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3<br> Libraries linked against: -lquadmath -lstdc++ -ldl <br>make:<br> Version: 4.2<br> /usr/bin/make<br>BlasLapack:<br> Library: /usr/local/MATLAB/R2020b/bin/glnxa64/mkl.so -Wl,-rpath,/usr/local/MATLAB/R2020b/sys/os/glnxa64 -L/usr/local/MATLAB/R2020b/sys/os/glnxa64 -liomp5 -lpthread<br> uses OpenMP; use export OMP_NUM_THREADS=<p> or -omp_num_threads <p> to control the number of threads<br> uses 8 byte integers<br>MPI:<br> Version: 3<br> Includes: -I/home/vit/sfw/linux/openmpi/4.1.4/include<br> Mpiexec: /home/vit/sfw/linux/openmpi/4.1.4/bin/mpiexec --oversubscribe<br> OMPI_VERSION: 4.1.4<br>pthread:<br>cmake:<br> Version: 3.16.3<br> /usr/bin/cmake<br>regex:<br>Matlab:<br> Includes: -I/usr/local/MATLAB/R2020b/extern/include<br> /usr/local/MATLAB/R2020b<br>MatlabEngine:<br> Library: -Wl,-rpath,/usr/local/MATLAB/R2020b/sys/os/glnxa64:/usr/local/MATLAB/R2020b/bin/glnxa64:/usr/local/MATLAB/R2020b/extern/lib/glnxa64 -L/usr/local/MATLAB/R2020b/bin/glnxa64 -L/usr/local/MATLAB/R2020b/extern/lib/glnxa64 -leng -lmex -lmx -lmat -lut -licudata -licui18n -licuuc<br> Language used to compile PETSc: C<br>PETSc:<br> PETSC_ARCH: linux-opt<br> PETSC_DIR: /home/vit/sfw/petsc/3.13.4<br> Scalar type: real<br> Precision: double<br> Support for __float128<br> Integer size: 4 bytes<br> shared libraries: enabled<br> Memory alignment from malloc(): 16 bytes<br>xxx=========================================================================xxx<br> Configure stage complete. Now build PETSc libraries with:<br> make PETSC_DIR=/home/vit/sfw/petsc/3.13.4 PETSC_ARCH=linux-opt all<br>xxx=========================================================================xxx<br></div><div><br></div><div>Then I removed all occurrences of -lut -licudata -licui18n -licuuc as you suggested earlier.</div><div><br></div><div><b>$make</b></div><div> FC linux-opt/obj/tao/f90-mod/petsctaomod.o<br> CLINKER linux-opt/lib/libpetsc.so.3.13.4<br>BEGINNING TO COMPILE MATLAB INTERFACE<br>Building with 'gcc'.<br>/home/vit/sfw/petsc/3.13.4/src/sys/classes/viewer/impls/socket/matlab/bread.c: In function ‘PetscBinaryWrite’:<br>/home/vit/sfw/petsc/3.13.4/src/sys/classes/viewer/impls/socket/matlab/bread.c:167:6: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]<br> 167 | if (err < 0) PETSC_MEX_ERROR("Error writing to socket\n");<br> | ^<br><br>MEX completed successfully.<br>Building with 'gcc'.<br>MEX completed successfully.<br>Building with 'gcc'.<br>MEX completed successfully.<br>Building with 'gcc'.<br>/home/vit/sfw/petsc/3.13.4/src/sys/classes/viewer/impls/socket/matlab/bread.c: In function ‘PetscBinaryWrite’:<br>/home/vit/sfw/petsc/3.13.4/src/sys/classes/viewer/impls/socket/matlab/bread.c:167:6: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]<br> 167 | if (err < 0) PETSC_MEX_ERROR("Error writing to socket\n");<br> | ^<br><br>MEX completed successfully.<br>=========================================<br>Now to check if the libraries are working do:<br>make PETSC_DIR=/home/vit/sfw/petsc/3.13.4 PETSC_ARCH=linux-opt check</div><div>===============================================</div><div><br></div><div><b>$make test query=requires queryval=matlab</b><br>Using MAKEFLAGS: -- queryval=matlab query=requires<br> CC linux-opt/tests/ksp/ksp/tutorials/ex72.o<br> CLINKER linux-opt/tests/ksp/ksp/tutorials/ex72<br> TEST linux-opt/tests/counts/ksp_ksp_tutorials-ex72_12.counts<br>not ok ksp_ksp_tutorials-ex72_12 # Error code: 169<br># [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br># [0]PETSC ERROR: Unable to open file<br># [0]PETSC ERROR: Cannot locate file: /matrices/arco1<br></div></div></blockquote><div><br></div><div>No, the problem is that you do not have DATAFILESPATH defined, so it cannot find the matrix to test. Try running some test of yours.</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"><div dir="ltr"><div># [0]PETSC ERROR: See <a href="https://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">https://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.<br># [0]PETSC ERROR: Petsc Release Version 3.13.4, Aug 01, 2020 <br># [0]PETSC ERROR: ../ex72 on a linux-opt named MB108SMEC028 by vit Sun Sep 3 11:51:03 2023<br># [0]PETSC ERROR: Configure options --with-mpi-dir=/home/vit/sfw/linux/openmpi/4.1.4 COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 PETSC_ARCH=linux-opt --with-debugging=0 --with-x=0 --with-matlab-dir=/usr/local/MATLAB/R2020b --with-blaslapack-dir=/usr/local/MATLAB/R2020b --known-64-bit-blas-indices=1 --with-matlab-engine=1<br># [0]PETSC ERROR: #1 PetscViewerFileSetUp_BinarySTDIO() line 1444 in /home/vit/sfw/petsc/3.13.4/src/sys/classes/viewer/impls/binary/binv.c<br># [0]PETSC ERROR: #2 PetscViewerSetUp_Binary() line 1511 in /home/vit/sfw/petsc/3.13.4/src/sys/classes/viewer/impls/binary/binv.c<br># [0]PETSC ERROR: #3 PetscViewerSetUp() line 328 in /home/vit/sfw/petsc/3.13.4/src/sys/classes/viewer/interface/view.c<br># [0]PETSC ERROR: #4 MatLoad_SeqAIJ() line 4563 in /home/vit/sfw/petsc/3.13.4/src/mat/impls/aij/seq/aij.c<br># [0]PETSC ERROR: #5 MatLoad() line 1225 in /home/vit/sfw/petsc/3.13.4/src/mat/interface/matrix.c<br># [0]PETSC ERROR: #6 main() line 113 in /home/vit/sfw/petsc/3.13.4/src/ksp/ksp/tutorials/ex72.c<br># [0]PETSC ERROR: PETSc Option Table entries:<br># [0]PETSC ERROR: -f0 /matrices/arco1<br># [0]PETSC ERROR: -pc_factor_mat_solver_type matlab<br># [0]PETSC ERROR: -pc_type lu<br># [0]PETSC ERROR: ----------------End of Error Message -------send entire error message to petsc-maint@mcs.anl.gov----------<br># --------------------------------------------------------------------------<br># MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_SELF<br># with errorcode 113065.<br># <br># NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.<br># You may or may not see output from other processes, depending on<br># exactly when Open MPI kills them.<br># --------------------------------------------------------------------------<br> ok ksp_ksp_tutorials-ex72_12 # SKIP Command failed so no diff<br> CC linux-opt/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test.o<br> CLINKER linux-opt/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test<br> TEST linux-opt/tests/counts/tao_leastsquares_tutorials_matlab-matlab_ls_test.counts<br>not ok tao_leastsquares_tutorials_matlab-matlab_ls_test # Error code: 124<br># Running problem 5<br># [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br># [0]PETSC ERROR: Error in external library<br># [0]PETSC ERROR: Unable to start MATLAB engine on <br># [0]PETSC ERROR: See <a href="https://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">https://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.<br># [0]PETSC ERROR: Petsc Release Version 3.13.4, Aug 01, 2020 <br># [0]PETSC ERROR: ../matlab_ls_test on a linux-opt named MB108SMEC028 by vit Sun Sep 3 11:51:05 2023<br># [0]PETSC ERROR: Configure options --with-mpi-dir=/home/vit/sfw/linux/openmpi/4.1.4 COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 PETSC_ARCH=linux-opt --with-debugging=0 --with-x=0 --with-matlab-dir=/usr/local/MATLAB/R2020b --with-blaslapack-dir=/usr/local/MATLAB/R2020b --known-64-bit-blas-indices=1 --with-matlab-engine=1<br># [0]PETSC ERROR: #1 PetscMatlabEngineCreate() line 67 in /home/vit/sfw/petsc/3.13.4/src/sys/classes/matlabengine/matlab.c<br># [0]PETSC ERROR: #2 main() line 126 in /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c<br># [0]PETSC ERROR: PETSc Option Table entries:<br># [0]PETSC ERROR: -prob_id 5<br># [0]PETSC ERROR: -tao_smonitor<br># [0]PETSC ERROR: ----------------End of Error Message -------send entire error message to petsc-maint@mcs.anl.gov----------<br># --------------------------------------------------------------------------<br># MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_SELF<br># with errorcode 126076.<br># <br># NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.<br># You may or may not see output from other processes, depending on<br># exactly when Open MPI kills them.<br># --------------------------------------------------------------------------<br> ok tao_leastsquares_tutorials_matlab-matlab_ls_test # SKIP Command failed so no diff<br><br># -------------<br># Summary <br># -------------<br># FAILED ksp_ksp_tutorials-ex72_12 tao_leastsquares_tutorials_matlab-matlab_ls_test<br># success 0/2 tests (0.0%)<br># failed 2/2 tests (100.0%)<br># todo 0/2 tests (0.0%)<br># skip 0/2 tests (0.0%)<br>#<br># Wall clock time for tests: 3 sec<br># Approximate CPU time (not incl. build time): 0.05 sec<br>#<br># To rerun failed tests: <br># /usr/bin/make -f gmakefile test test-fail=1<br>#<br># Timing summary (actual test time / total CPU time): <br># ksp_ksp_tutorials-ex72_12: 0.02 sec / 0.03 sec<br># tao_leastsquares_tutorials_matlab-matlab_ls_test: 0.02 sec / 0.02 sec</div><div><br></div><div><b>How to sort out this error?</b></div><div><br></div><div><b>$cd src/tao/leastsquares/tutorials/matlab/</b></div><div><b>$make matlab_ls_test</b></div><div><b></b></div><div>/home/vit/sfw/linux/openmpi/4.1.4/bin/mpicc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3 -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3 -I/home/vit/sfw/petsc/3.13.4/include -I/home/vit/sfw/petsc/3.13.4/linux-opt/include -I/usr/local/MATLAB/R2020b/extern/include -I/home/vit/sfw/linux/openmpi/4.1.4/include matlab_ls_test.c -Wl,-rpath,/home/vit/sfw/petsc/3.13.4/linux-opt/lib -L/home/vit/sfw/petsc/3.13.4/linux-opt/lib /usr/local/MATLAB/R2020b/bin/glnxa64/mkl.so -Wl,-rpath,/usr/local/MATLAB/R2020b/sys/os/glnxa64 -L/usr/local/MATLAB/R2020b/sys/os/glnxa64 -Wl,-rpath,/usr/local/MATLAB/R2020b/sys/os/glnxa64:/usr/local/MATLAB/R2020b/bin/glnxa64:/usr/local/MATLAB/R2020b/extern/lib/glnxa64 -L/usr/local/MATLAB/R2020b/bin/glnxa64 -L/usr/local/MATLAB/R2020b/extern/lib/glnxa64 -Wl,-rpath,/home/vit/sfw/linux/openmpi/4.1.4/lib -L/home/vit/sfw/linux/openmpi/4.1.4/lib -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -lpetsc -liomp5 -lpthread -lm -leng -lmex -lmx -lmat -lstdc++ -ldl -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath -lpthread -lquadmath -lstdc++ -ldl -o matlab_ls_test</div><div><br></div><div>I think there is a problem with the Matlab-R2020b version.</div><div>I am sharing the configure.log and make.log files. Please find the attachment and do the needful.</div><div><br></div><div><br></div><div>Thanks and regards <br></div><div>Srinivas<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 2, 2023 at 11:15 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">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">Perhaps you can try the following to get additional info - and debug<br>
<br>
Satish<br>
----------<br>
<br>
balay@compute-386-07:/scratch/balay/petsc$ cd src/tao/leastsquares/tutorials/matlab/<br>
balay@compute-386-07:/scratch/balay/petsc/src/tao/leastsquares/tutorials/matlab$ make matlab_ls_test<br>
/nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/bin/mpicc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3 -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3 -I/scratch/balay/petsc/include -I/scratch/balay/petsc/linux-opt/include -I/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/extern/include -I/nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/include matlab_ls_test.c -Wl,-rpath,/scratch/balay/petsc/linux-opt/lib -L/scratch/balay/petsc/linux-opt/lib -Wl,-rpath,/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/sys/os/glnxa64:/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/bin/glnxa64:/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/extern/lib/glnxa64 -L/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/bin/glnxa64 -L/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/extern/lib/glnxa64 -Wl,-rpath,/nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/lib -L/nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/lib -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -lpetsc -llapack -lblas -lpthread -lm -leng -lmex -lmx -lmat -lut -licudata -licui18n -licuuc -lstdc++ -ldl -lmpifort -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath -lstdc++ -ldl -o matlab_ls_test<br>
balay@compute-386-07:/scratch/balay/petsc/src/tao/leastsquares/tutorials/matlab$ LD_PRELOAD=/lib/x86_64-linux-gnu/libgfortran.so.5 ./matlab_ls_test -tao_smonitor -prob_id 5 -info<br>
[0] PetscInitialize(): PETSc successfully started: number of processors = 1<br>
[0] PetscGetHostName(): Rejecting domainname, likely is NIS compute-386-07.(none)<br>
[0] PetscInitialize(): Running on machine: compute-386-07<br>
Running problem 5<br>
[0] PetscCommDuplicate(): Duplicating a communicator 1140850689 -2080374784 max tags = 268435455<br>
[0] PetscMatlabEngineCreate(): Starting MATLAB engine with command /nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/bin/matlab -glnxa64 -nodisplay -nosplash <br>
[0] PetscMatlabEngineCreate(): Started MATLAB engine<br>
[0] PetscMatlabEngineEvaluate(): Evaluating MATLAB string: TestingInitialize<br>
[0] PetscMatlabEngineEvaluate(): Done evaluating Matlab string: TestingInitialize<br>
5<br>
<snip><br>
<br>
<<<< Now verify if the above matlab command actually works for you - on this machine..>>>>><br>
<br>
balay@compute-386-07:/scratch/balay/petsc/src/tao/leastsquares/tutorials/matlab$ /nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/bin/matlab -glnxa64 -nodisplay -nosplash<br>
<br>
< M A T L A B (R) ><br>
Copyright 1984-2021 The MathWorks, Inc.<br>
R2021a (9.10.0.1602886) 64-bit (glnxa64)<br>
February 17, 2021<br>
<br>
<br>
To get started, type doc.<br>
For product information, visit <a href="http://www.mathworks.com" rel="noreferrer" target="_blank">www.mathworks.com</a>.<br>
<br>
>> <br>
<br>
<br>
On Sat, 2 Sep 2023, Satish Balay via petsc-users wrote:<br>
<br>
> Please don't cc: both petsc-users and petsc-maint [reverting thread to petsc-users only]<br>
> <br>
> I'm not sure what is happening here. Can you send the corresponding configure.log, make.log [compressed]?<br>
> <br>
> Here is my attempt to reproduce (with petsc-3.13) on Ubuntu-20.04, with Matlab-R2021a - and that works:<br>
> <br>
> balay@compute-386-07:/scratch/balay/petsc$ git branch<br>
> main<br>
> release<br>
> * release-3.13<br>
> balay@compute-386-07:/scratch/balay/petsc$ module load matlab/R2021a<br>
> balay@compute-386-07:/scratch/balay/petsc$ which matlab<br>
> /nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/bin/matlab<br>
> balay@compute-386-07:/scratch/balay/petsc$ ./configure --with-mpi-dir=/nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/ COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 PETSC_ARCH=linux-opt --with-debugging=0 --with-x=0 --with-matlab-dir=/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a --with-blaslapack-dir=/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a --known-64-bit-blas-indices=1 --with-matlab-engine=1<br>
> <snip><br>
> Compilers: <br>
> C Compiler: /nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/bin/mpicc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3 <br>
> Version: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0<br>
> C++ Compiler: /nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/bin/mpicxx -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3 -fPIC <br>
> Version: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0<br>
> Fortran Compiler: /nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/bin/mpif90 -fPIC -Wall -ffree-line-length-0 -Wno-unused-dummy-argument -O3 <br>
> Version: GNU Fortran (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0<br>
> Linkers:<br>
> Shared linker: /nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/bin/mpicc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3<br>
> Dynamic linker: /nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/bin/mpicc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -O3<br>
> Libraries linked against: -lquadmath -lstdc++ -ldl <br>
> make:<br>
> Version: 4.2<br>
> /usr/bin/make<br>
> BlasLapack:<br>
> Library: /nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/bin/glnxa64/mkl.so -Wl,-rpath,/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/sys/os/glnxa64 -L/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/sys/os/glnxa64 -liomp5 -lpthread<br>
> uses OpenMP; use export OMP_NUM_THREADS=<p> or -omp_num_threads <p> to control the number of threads<br>
> uses 8 byte integers<br>
> MPI:<br>
> Version: 4<br>
> Includes: -I/nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/include<br>
> Mpiexec: /nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/bin/mpiexec<br>
> MPICH_NUMVERSION: 40002300<br>
> pthread:<br>
> Library: -lpthread<br>
> cmake:<br>
> Version: 3.16.3<br>
> /usr/bin/cmake<br>
> regex:<br>
> Matlab:<br>
> Includes: -I/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/extern/include<br>
> /nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a<br>
> MatlabEngine:<br>
> Library: -Wl,-rpath,/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/sys/os/glnxa64:/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/bin/glnxa64:/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/extern/lib/glnxa64 -L/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/bin/glnxa64 -L/nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/extern/lib/glnxa64 -leng -lmex -lmx -lmat -lut -licudata -licui18n -licuuc<br>
> sowing:<br>
> Version: 1.1.25<br>
> /scratch/balay/petsc/linux-opt/bin/bfort<br>
> valgrind:<br>
> Language used to compile PETSc: C<br>
> PETSc:<br>
> PETSC_ARCH: linux-opt<br>
> PETSC_DIR: /scratch/balay/petsc<br>
> Scalar type: real<br>
> Precision: double<br>
> Support for __float128<br>
> Integer size: 4 bytes<br>
> shared libraries: enabled<br>
> Memory alignment from malloc(): 16 bytes<br>
> xxx=========================================================================xxx<br>
> Configure stage complete. Now build PETSc libraries with:<br>
> make PETSC_DIR=/scratch/balay/petsc PETSC_ARCH=linux-opt all<br>
> xxx=========================================================================xxx<br>
> balay@compute-386-07:/scratch/balay/petsc$ make <br>
> <br>
> <snip><br>
> FC linux-opt/obj/tao/f90-mod/petsctaomod.o<br>
> CLINKER linux-opt/lib/libpetsc.so.3.13.6<br>
> BEGINNING TO COMPILE MATLAB INTERFACE<br>
> Building with 'gcc'.<br>
> /scratch/balay/petsc/src/sys/classes/viewer/impls/socket/matlab/bread.c: In function ‘PetscBinaryWrite’:<br>
> /scratch/balay/petsc/src/sys/classes/viewer/impls/socket/matlab/bread.c:167:6: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]<br>
> 167 | if (err < 0) PETSC_MEX_ERROR("Error writing to socket\n");<br>
> | ^<br>
> <br>
> MEX completed successfully.<br>
> Building with 'gcc'.<br>
> MEX completed successfully.<br>
> Building with 'gcc'.<br>
> MEX completed successfully.<br>
> Building with 'gcc'.<br>
> /scratch/balay/petsc/src/sys/classes/viewer/impls/socket/matlab/bread.c: In function ‘PetscBinaryWrite’:<br>
> /scratch/balay/petsc/src/sys/classes/viewer/impls/socket/matlab/bread.c:167:6: warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]<br>
> 167 | if (err < 0) PETSC_MEX_ERROR("Error writing to socket\n");<br>
> | ^<br>
> <br>
> MEX completed successfully.<br>
> =========================================<br>
> Now to check if the libraries are working do:<br>
> make PETSC_DIR=/scratch/balay/petsc PETSC_ARCH=linux-opt check<br>
> =========================================<br>
> balay@compute-386-07:/scratch/balay/petsc$ make test query=requires queryval=matlab<br>
> Using MAKEFLAGS: -- queryval=matlab query=requires<br>
> CC linux-opt/tests/ksp/ksp/tutorials/ex72.o<br>
> CLINKER linux-opt/tests/ksp/ksp/tutorials/ex72<br>
> TEST linux-opt/tests/counts/ksp_ksp_tutorials-ex72_12.counts<br>
> not ok ksp_ksp_tutorials-ex72_12 # Error code: 1<br>
> # ../ex72: /nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/sys/os/glnxa64/libgfortran.so.5: version `GFORTRAN_9' not found (required by /nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/lib/libmpifort.so.12)<br>
> ok ksp_ksp_tutorials-ex72_12 # SKIP Command failed so no diff<br>
> CC linux-opt/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test.o<br>
> CLINKER linux-opt/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test<br>
> TEST linux-opt/tests/counts/tao_leastsquares_tutorials_matlab-matlab_ls_test.counts<br>
> not ok tao_leastsquares_tutorials_matlab-matlab_ls_test # Error code: 1<br>
> # ../matlab_ls_test: /nfs/gce/software/custom/linux-ubuntu20.04-x86_64/matlab/R2021a/sys/os/glnxa64/libgfortran.so.5: version `GFORTRAN_9' not found (required by /nfs/gce/projects/petsc/soft/u20.04/mpich-4.0.2/lib/libmpifort.so.12)<br>
> ok tao_leastsquares_tutorials_matlab-matlab_ls_test # SKIP Command failed so no diff<br>
> <snip><br>
> balay@compute-386-07:/scratch/balay/petsc$ LD_PRELOAD=/lib/x86_64-linux-gnu/libgfortran.so.5 make test query=requires queryval=matlab<br>
> Using MAKEFLAGS: -- queryval=matlab query=requires<br>
> TEST linux-opt/tests/counts/ksp_ksp_tutorials-ex72_12.counts<br>
> ok ksp_ksp_tutorials-ex72_12<br>
> ok diff-ksp_ksp_tutorials-ex72_12<br>
> TEST linux-opt/tests/counts/tao_leastsquares_tutorials_matlab-matlab_ls_test.counts<br>
> ok tao_leastsquares_tutorials_matlab-matlab_ls_test<br>
> ok diff-tao_leastsquares_tutorials_matlab-matlab_ls_test<br>
> <br>
> # -------------<br>
> # Summary <br>
> # -------------<br>
> # success 4/4 tests (100.0%)<br>
> # failed 0/4 tests (0.0%)<br>
> # todo 0/4 tests (0.0%)<br>
> # skip 0/4 tests (0.0%)<br>
> #<br>
> # Wall clock time for tests: 27 sec<br>
> # Approximate CPU time (not incl. build time): 15.190000000000001 sec<br>
> #<br>
> # Timing summary (actual test time / total CPU time): <br>
> # tao_leastsquares_tutorials_matlab-matlab_ls_test: 6.47 sec / 7.54 sec<br>
> # ksp_ksp_tutorials-ex72_12: 6.46 sec / 7.65 sec<br>
> balay@compute-386-07:/scratch/balay/petsc$ <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> On Sat, 2 Sep 2023, INTURU SRINIVAS 20PHD0548 wrote:<br>
> <br>
> > Based on the suggestions given by Sathish, I have tried to configure petsc<br>
> > 3.13.4 with Matlab-R2020b. But, it was not successful. After running make<br>
> > -j 10 test command I have got the following error message.<br>
> > <br>
> > not ok tao_leastsquares_tutorials_matlab-matlab_ls_test # Error code: 124<br>
> > # Running problem 5<br>
> > # [0]PETSC ERROR: --------------------- Error Message<br>
> > --------------------------------------------------------------<br>
> > # [0]PETSC ERROR: Error in external library<br>
> > # [0]PETSC ERROR: Unable to start MATLAB engine on<br>
> > # [0]PETSC ERROR: See <a href="https://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">https://www.mcs.anl.gov/petsc/documentation/faq.html</a><br>
> > for trouble shooting.<br>
> > # [0]PETSC ERROR: Petsc Release Version 3.13.4, Aug 01, 2020<br>
> > # [0]PETSC ERROR: ../matlab_ls_test on a linux-opt named MB108SMEC028 by<br>
> > vit Sat Sep 2 12:27:22 2023<br>
> > # [0]PETSC ERROR: Configure options<br>
> > --with-mpi-dir=/home/vit/sfw/linux/openmpi/4.1.4 COPTFLAGS=-O3<br>
> > CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 PETSC_ARCH=linux-opt --with-debugging=0<br>
> > --with-x=0 --with-matlab-dir=/usr/local/MATLAB/R2020b<br>
> > --with-matlab-engine=1 --with-blaslapack-dir=/usr/local/MATLAB/R2020b<br>
> > --known-64-bit-blas-indices=1<br>
> > # [0]PETSC ERROR: #1 PetscMatlabEngineCreate() line 67 in<br>
> > /home/vit/sfw/petsc/3.13.4/src/sys/classes/matlabengine/matlab.c<br>
> > # [0]PETSC ERROR: #2 main() line 126 in<br>
> > /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c<br>
> > # [0]PETSC ERROR: PETSc Option Table entries:<br>
> > # [0]PETSC ERROR: -prob_id 5<br>
> > # [0]PETSC ERROR: -tao_smonitor<br>
> > # [0]PETSC ERROR: ----------------End of Error Message -------send entire<br>
> > error message to petsc-maint@mcs.anl.gov----------<br>
> > # --------------------------------------------------------------------------<br>
> > # MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_SELF<br>
> > # with errorcode 126076.<br>
> > #<br>
> > # NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.<br>
> > # You may or may not see output from other processes, depending on<br>
> > # exactly when Open MPI kills them.<br>
> > # --------------------------------------------------------------------------<br>
> > <br>
> > I request you to help me to sort out this error.<br>
> > <br>
> > Thanks<br>
> > Srinivas<br>
> > <br>
> > <br>
> > On Fri, Sep 1, 2023 at 11:42 PM Amneet Bhalla <<a href="mailto:mail2amneet@gmail.com" target="_blank">mail2amneet@gmail.com</a>> wrote:<br>
> > <br>
> > > I think there should be two hyphens in<br>
> > > -with-blaslapack-dir=/usr/local/MATLAB/R2020b<br>
> > ><br>
> > > i.e.:<br>
> > ><br>
> > > --with-blaslapack-dir=/usr/local/MATLAB/R2020b<br>
> > ><br>
> > > On Fri, Sep 1, 2023 at 10:25 AM INTURU SRINIVAS 20PHD0548 via petsc-users <<br>
> > > <a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br>
> > ><br>
> > >> Thank you Sathish.I will try this<br>
> > >><br>
> > >> On Fri, Sep 1, 2023, 22:53 Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> > >><br>
> > >>> yes [and remove fblaslapack. don't know if hypre will work here].<br>
> > >>><br>
> > >>> i.e:<br>
> > >>><br>
> > >>> ./configure --with-mpi-dir=/home/vit/sfw/linux/openmpi/4.1.4<br>
> > >>> COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS=-O3 PETSC_ARCH=linux-opt<br>
> > >>> --with-debugging=0 --with-x=0 \<br>
> > >>> --with-matlab-dir=/usr/local/MATLAB/R2020b --with-matlab-engine=1<br>
> > >>> -with-blaslapack-dir=/usr/local/MATLAB/R2020b --known-64-bit-blas-indices=1<br>
> > >>><br>
> > >>> Satish<br>
> > >>><br>
> > >>> On Fri, 1 Sep 2023, INTURU SRINIVAS 20PHD0548 via petsc-users wrote:<br>
> > >>><br>
> > >>> > Hi Satish,<br>
> > >>> ><br>
> > >>> > -with-blaslapack-dir=/path/to/matlab_dir<br>
> > >>> > --known-64-bit-blas-indices=1<br>
> > >>> ><br>
> > >>> > Is this what you are suggesting?<br>
> > >>> ><br>
> > >>> > On Fri, Sep 1, 2023, 20:42 Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> > >>> ><br>
> > >>> > > Also:<br>
> > >>> > ><br>
> > >>> > > '-known-64-bit-blas-indices=1',<br>
> > >>> > ><br>
> > >>> > > Note: most externalpackages might not work in this mode.<br>
> > >>> > ><br>
> > >>> > > [we can't really over come such dependency/conflicts across packages]<br>
> > >>> > ><br>
> > >>> > > Satish<br>
> > >>> > ><br>
> > >>> > > On Fri, 1 Sep 2023, Satish Balay via petsc-users wrote:<br>
> > >>> > ><br>
> > >>> > > > Here is the matlab test that runs in CI<br>
> > >>> > > ><br>
> > >>> > > > <a href="https://gitlab.com/petsc/petsc/-/jobs/4904566768" rel="noreferrer" target="_blank">https://gitlab.com/petsc/petsc/-/jobs/4904566768</a><br>
> > >>> > > ><br>
> > >>> > > > config/examples/arch-ci-linux-matlab-ilp64.py<br>
> > >>> > > ><br>
> > >>> > > > # Note: regular BLAS [with 32-bit integers] conflict with<br>
> > >>> > > > # MATLAB BLAS - hence requiring -known-64-bit-blas-indices=1<br>
> > >>> > > ><br>
> > >>> > > > Ah - so you need to use the ilp64 blas/lapack with matlab - to<br>
> > >>> have a<br>
> > >>> > > compatible build<br>
> > >>> > > ><br>
> > >>> > > > '--with-blaslapack-dir='+matlab_dir,<br>
> > >>> > > ><br>
> > >>> > > > Satish<br>
> > >>> > > ><br>
> > >>> > > ><br>
> > >>> > > > On Fri, 1 Sep 2023, INTURU SRINIVAS 20PHD0548 via petsc-users<br>
> > >>> wrote:<br>
> > >>> > > ><br>
> > >>> > > > > Hi Amneet,<br>
> > >>> > > > ><br>
> > >>> > > > > Without libmesh, even for PETSc with MATLAB is not working. It is<br>
> > >>> > > showing<br>
> > >>> > > > > error for both 3.13.4 and 3.17.5 versions.<br>
> > >>> > > > ><br>
> > >>> > > > > I am trying to install IBAMR in HPC cluster with libmesh and<br>
> > >>> this is<br>
> > >>> > > for<br>
> > >>> > > > > general usage not only for WEC. This I tried without linking<br>
> > >>> Matlab<br>
> > >>> > > with<br>
> > >>> > > > > PETSc. Here also I got the error while configuring libmesh 1.6.2<br>
> > >>> that<br>
> > >>> > > PETSc<br>
> > >>> > > > > was not found but --enable-petsc-required is specified.<br>
> > >>> > > > ><br>
> > >>> > > > > The reason for specifically asking for libmesh with PETSc and<br>
> > >>> Matlab<br>
> > >>> > > is in<br>
> > >>> > > > > the cfd-mpc-wecs application for complicated geometries it is<br>
> > >>> > > mentioned to<br>
> > >>> > > > > build cfd-mpc-wecs with libmesh construct.<br>
> > >>> > > > ><br>
> > >>> > > > > For the past 10 days I am trying these various things and ended<br>
> > >>> up with<br>
> > >>> > > > > errors.<br>
> > >>> > > > > I want to solve this and proceed further to do my research work.<br>
> > >>> > > > ><br>
> > >>> > > > > Please help me to solve this as soon as possible.<br>
> > >>> > > > ><br>
> > >>> > > > ><br>
> > >>> > > > > Thanks and Regards<br>
> > >>> > > > > Srinivas<br>
> > >>> > > > ><br>
> > >>> > > > > On Fri, Sep 1, 2023, 19:48 Amneet Bhalla <<a href="mailto:mail2amneet@gmail.com" target="_blank">mail2amneet@gmail.com</a>><br>
> > >>> > > wrote:<br>
> > >>> > > > ><br>
> > >>> > > > > > Hi Srinivas,<br>
> > >>> > > > > ><br>
> > >>> > > > > > As discussed earlier you don’t need libMesh for the WEC<br>
> > >>> application.<br>
> > >>> > > You<br>
> > >>> > > > > > can just work with PETSc 3.17.5 that builds with Matlab.<br>
> > >>> > > > > ><br>
> > >>> > > > > > Do you have a specific reason for wanting to build libMesh?<br>
> > >>> > > > > ><br>
> > >>> > > > > > Thanks,<br>
> > >>> > > > > > —Amneet<br>
> > >>> > > > > ><br>
> > >>> > > > > > On Thu, Aug 31, 2023 at 10:16 PM INTURU SRINIVAS 20PHD0548 via<br>
> > >>> > > petsc-users<br>
> > >>> > > > > > <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br>
> > >>> > > > > ><br>
> > >>> > > > > >> Hi,<br>
> > >>> > > > > >><br>
> > >>> > > > > >> I ran "make all" for petsc 3.13.4 by removing all occurrences<br>
> > >>> of<br>
> > >>> > > "-lut<br>
> > >>> > > > > >> -licudata -licui18n -licuuc". When I ran "make test" got the<br>
> > >>> > > following<br>
> > >>> > > > > >> errors<br>
> > >>> > > > > >> in petsc/3.13.4/linux-debug:<br>
> > >>> > > > > >> TEST<br>
> > >>> > > > > >><br>
> > >>> > ><br>
> > >>> linux-debug/tests/counts/tao_leastsquares_tutorials_matlab-matlab_ls_test.counts<br>
> > >>> > > > > >> not ok tao_leastsquares_tutorials_matlab-matlab_ls_test #<br>
> > >>> Error<br>
> > >>> > > code: 124<br>
> > >>> > > > > >> # Running problem 5<br>
> > >>> > > > > >> # [0]PETSC ERROR: --------------------- Error Message<br>
> > >>> > > > > >> --------------------------------------------------------------<br>
> > >>> > > > > >> # [0]PETSC ERROR: Error in external library<br>
> > >>> > > > > >> # [0]PETSC ERROR: Unable to start MATLAB engine on<br>
> > >>> > > > > >> # [0]PETSC ERROR: See<br>
> > >>> > > > > >> <a href="https://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">https://www.mcs.anl.gov/petsc/documentation/faq.html</a> for<br>
> > >>> trouble<br>
> > >>> > > > > >> shooting.<br>
> > >>> > > > > >> # [0]PETSC ERROR: Petsc Release Version 3.13.4, Aug 01, 2020<br>
> > >>> > > > > >> # [0]PETSC ERROR: ../matlab_ls_test on a linux-debug named<br>
> > >>> > > MB108SMEC028<br>
> > >>> > > > > >> by vit Fri Sep 1 10:01:11 2023<br>
> > >>> > > > > >> # [0]PETSC ERROR: Configure options<br>
> > >>> > > > > >> --CC=/home/vit/sfw/linux/openmpi/4.1.4/bin/mpicc<br>
> > >>> > > > > >> --CXX=/home/vit/sfw/linux/openmpi/4.1.4/bin/mpicxx<br>
> > >>> > > > > >> --FC=/home/vit/sfw/linux/openmpi/4.1.4/bin/mpif90<br>
> > >>> --with-debugging=1<br>
> > >>> > > > > >> --download-hypre=1 --download-fblaslapack=1 --with-x=0<br>
> > >>> > > > > >> --with-matlab-dir=/usr/local/MATLAB/R2020b/<br>
> > >>> --with-matlab-engine=1<br>
> > >>> > > > > >><br>
> > >>> --with-matlab-engine-dir=/usr/local/MATLAB/R2020b/extern/engines/<br>
> > >>> > > > > >> # [0]PETSC ERROR: #1 PetscMatlabEngineCreate() line 67 in<br>
> > >>> > > > > >><br>
> > >>> /home/vit/sfw/petsc/3.13.4/src/sys/classes/matlabengine/matlab.c<br>
> > >>> > > > > >> # [0]PETSC ERROR: #2 main() line 126 in<br>
> > >>> > > > > >><br>
> > >>> > ><br>
> > >>> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c<br>
> > >>> > > > > >> # [0]PETSC ERROR: PETSc Option Table entries:<br>
> > >>> > > > > >> # [0]PETSC ERROR: -prob_id 5<br>
> > >>> > > > > >> # [0]PETSC ERROR: -tao_smonitor<br>
> > >>> > > > > >> # [0]PETSC ERROR: ----------------End of Error Message<br>
> > >>> -------send<br>
> > >>> > > entire<br>
> > >>> > > > > >> error message to petsc-maint@mcs.anl.gov----------<br>
> > >>> > > > > >> #<br>
> > >>> > > > > >><br>
> > >>> > ><br>
> > >>> --------------------------------------------------------------------------<br>
> > >>> > > > > >> # MPI_ABORT was invoked on rank 0 in communicator<br>
> > >>> MPI_COMM_SELF<br>
> > >>> > > > > >> # with errorcode 126076.<br>
> > >>> > > > > >> #<br>
> > >>> > > > > >> # NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI<br>
> > >>> > > processes.<br>
> > >>> > > > > >> # You may or may not see output from other processes,<br>
> > >>> depending on<br>
> > >>> > > > > >> # exactly when Open MPI kills them.<br>
> > >>> > > > > >> #<br>
> > >>> > > > > >><br>
> > >>> > ><br>
> > >>> --------------------------------------------------------------------------<br>
> > >>> > > > > >> ok tao_leastsquares_tutorials_matlab-matlab_ls_test # SKIP<br>
> > >>> Command<br>
> > >>> > > > > >> failed so no diff<br>
> > >>> > > > > >><br>
> > >>> > > > > >> in petsc/3.13.4/linux-opt<br>
> > >>> > > > > >> TEST<br>
> > >>> > > > > >><br>
> > >>> > ><br>
> > >>> linux-opt/tests/counts/tao_leastsquares_tutorials_matlab-matlab_ls_test.counts<br>
> > >>> > > > > >> not ok tao_leastsquares_tutorials_matlab-matlab_ls_test #<br>
> > >>> Error<br>
> > >>> > > code: 124<br>
> > >>> > > > > >> # Running problem 5<br>
> > >>> > > > > >> # [0]PETSC ERROR: --------------------- Error Message<br>
> > >>> > > > > >> --------------------------------------------------------------<br>
> > >>> > > > > >> # [0]PETSC ERROR: Error in external library<br>
> > >>> > > > > >> # [0]PETSC ERROR: Unable to start MATLAB engine on<br>
> > >>> > > > > >> # [0]PETSC ERROR: See<br>
> > >>> > > > > >> <a href="https://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">https://www.mcs.anl.gov/petsc/documentation/faq.html</a> for<br>
> > >>> trouble<br>
> > >>> > > > > >> shooting.<br>
> > >>> > > > > >> # [0]PETSC ERROR: Petsc Release Version 3.13.4, Aug 01, 2020<br>
> > >>> > > > > >> # [0]PETSC ERROR: ../matlab_ls_test on a linux-opt named<br>
> > >>> > > MB108SMEC028 by<br>
> > >>> > > > > >> vit Fri Sep 1 10:34:12 2023<br>
> > >>> > > > > >> # [0]PETSC ERROR: Configure options<br>
> > >>> > > > > >> --CC=/home/vit/sfw/linux/openmpi/4.1.4/bin/mpicc<br>
> > >>> > > > > >> --CXX=/home/vit/sfw/linux/openmpi/4.1.4/bin/mpicxx<br>
> > >>> > > > > >> --FC=/home/vit/sfw/linux/openmpi/4.1.4/bin/mpif90<br>
> > >>> --COPTFLAGS=-O3<br>
> > >>> > > > > >> --CXXOPTFLAGS=-O3 --FOPTFLAGS=-O3 --PETSC_ARCH=linux-opt<br>
> > >>> > > --with-debugging=0<br>
> > >>> > > > > >> --download-hypre=1 --with-x=0 --download-fblaslapack=1<br>
> > >>> > > > > >> --with-matlab-dir=/usr/local/MATLAB/R2020b/<br>
> > >>> --with-matlab-engine=1<br>
> > >>> > > > > >><br>
> > >>> --with-matlab-engine-dir=/usr/local/MATLAB/R2020b/extern/engines/<br>
> > >>> > > > > >> # [0]PETSC ERROR: #1 PetscMatlabEngineCreate() line 67 in<br>
> > >>> > > > > >><br>
> > >>> /home/vit/sfw/petsc/3.13.4/src/sys/classes/matlabengine/matlab.c<br>
> > >>> > > > > >> # [0]PETSC ERROR: #2 main() line 126 in<br>
> > >>> > > > > >><br>
> > >>> > ><br>
> > >>> /home/vit/sfw/petsc/3.13.4/src/tao/leastsquares/tutorials/matlab/matlab_ls_test.c<br>
> > >>> > > > > >> # [0]PETSC ERROR: PETSc Option Table entries:<br>
> > >>> > > > > >> # [0]PETSC ERROR: -prob_id 5<br>
> > >>> > > > > >> # [0]PETSC ERROR: -tao_smonitor<br>
> > >>> > > > > >> # [0]PETSC ERROR: ----------------End of Error Message<br>
> > >>> -------send<br>
> > >>> > > entire<br>
> > >>> > > > > >> error message to petsc-maint@mcs.anl.gov----------<br>
> > >>> > > > > >> #<br>
> > >>> > > > > >><br>
> > >>> > ><br>
> > >>> --------------------------------------------------------------------------<br>
> > >>> > > > > >> # MPI_ABORT was invoked on rank 0 in communicator<br>
> > >>> MPI_COMM_SELF<br>
> > >>> > > > > >> # with errorcode 126076.<br>
> > >>> > > > > >> #<br>
> > >>> > > > > >> # NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI<br>
> > >>> > > processes.<br>
> > >>> > > > > >> # You may or may not see output from other processes,<br>
> > >>> depending on<br>
> > >>> > > > > >> # exactly when Open MPI kills them.<br>
> > >>> > > > > >> #<br>
> > >>> > > > > >><br>
> > >>> > ><br>
> > >>> --------------------------------------------------------------------------<br>
> > >>> > > > > >> ok tao_leastsquares_tutorials_matlab-matlab_ls_test # SKIP<br>
> > >>> Command<br>
> > >>> > > > > >> failed so no diff.<br>
> > >>> > > > > >><br>
> > >>> > > > > >> The same errors occurred for petsc 3.17.5 version. I am<br>
> > >>> sharing the<br>
> > >>> > > > > >> config.log and make.log for both petsc 3.13.4 and petsc<br>
> > >>> 3.17.5.<br>
> > >>> > > Please find<br>
> > >>> > > > > >> the attachment and do the needful.<br>
> > >>> > > > > >><br>
> > >>> > > > > >> Thanks and regards<br>
> > >>> > > > > >> Srinivas<br>
> > >>> > > > > >><br>
> > >>> > > > > >> On Tue, Aug 29, 2023 at 10:56 PM Satish Balay <<br>
> > >>> <a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>><br>
> > >>> > > wrote:<br>
> > >>> > > > > >><br>
> > >>> > > > > >>> Well - you sent in libmesh log not petsc's<br>
> > >>> configure.log/make.log<br>
> > >>> > > for<br>
> > >>> > > > > >>> petsc-3.17<br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> Anyway - with petsc-3.13 - you have:<br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> >>>><br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> Matlab:<br>
> > >>> > > > > >>> Includes: -I/usr/local/MATLAB/R2020b/extern/include<br>
> > >>> > > > > >>> /usr/local/MATLAB/R2020b<br>
> > >>> > > > > >>> MatlabEngine:<br>
> > >>> > > > > >>> Library:<br>
> > >>> > > > > >>><br>
> > >>> > ><br>
> > >>> -Wl,-rpath,/usr/local/MATLAB/R2020b/sys/os/glnxa64:/usr/local/MATLAB/R2020b/bin/glnxa64:/usr/local/MATLAB/R2020b/extern/lib/glnxa64<br>
> > >>> > > > > >>> -L/usr/local/MATLAB/R2020b/bin/glnxa64<br>
> > >>> > > > > >>> -L/usr/local/MATLAB/R2020b/extern/lib/glnxa64 -leng -lmex<br>
> > >>> -lmx<br>
> > >>> > > -lmat -lut<br>
> > >>> > > > > >>> -licudata -licui18n -licuuc<br>
> > >>> > > > > >>> Language used to compile PETSc: C<br>
> > >>> > > > > >>> <<<<<<br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> With petsc-3.19 (and matlab-R2022a) - we are seeing:<br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> <a href="https://gitlab.com/petsc/petsc/-/jobs/4904566768" rel="noreferrer" target="_blank">https://gitlab.com/petsc/petsc/-/jobs/4904566768</a><br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> >>><br>
> > >>> > > > > >>> Matlab:<br>
> > >>> > > > > >>> Includes:<br>
> > >>> > > > > >>><br>
> > >>> > ><br>
> > >>> -I/nfs/gce/software/custom/linux-ubuntu22.04-x86_64/matlab/R2022a/extern/include<br>
> > >>> > > > > >>> Libraries:<br>
> > >>> > > > > >>><br>
> > >>> > ><br>
> > >>> -Wl,-rpath,/nfs/gce/software/custom/linux-ubuntu22.04-x86_64/matlab/R2022a/bin/glnxa64<br>
> > >>> > > > > >>><br>
> > >>> > ><br>
> > >>> -L/nfs/gce/software/custom/linux-ubuntu22.04-x86_64/matlab/R2022a/bin/glnxa64<br>
> > >>> > > > > >>> -leng -lmex -lmx -lmat<br>
> > >>> > > > > >>> Executable:<br>
> > >>> > > > > >>><br>
> > >>> /nfs/gce/software/custom/linux-ubuntu22.04-x86_64/matlab/R2022a<br>
> > >>> > > > > >>> mex:<br>
> > >>> > > > > >>><br>
> > >>> > ><br>
> > >>> /nfs/gce/software/custom/linux-ubuntu22.04-x86_64/matlab/R2022a/bin/mex<br>
> > >>> > > > > >>> matlab:<br>
> > >>> > > > > >>><br>
> > >>> > ><br>
> > >>> /nfs/gce/software/custom/linux-ubuntu22.04-x86_64/matlab/R2022a/bin/matlab<br>
> > >>> > > > > >>> -glnxa64<br>
> > >>> > > > > >>> <<<<br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> I.e "-lut -licudata -licui18n -licuuc" are not preset here.<br>
> > >>> This<br>
> > >>> > > might<br>
> > >>> > > > > >>> be a change wrt newer matlab versions.<br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> You can:<br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> - edit<br>
> > >>> > > > > >>><br>
> > >>> /home/vit/sfw/petsc/3.13.4/linux-opt/lib/petsc/conf/petscvariables<br>
> > >>> > > and<br>
> > >>> > > > > >>> remove all occurrences of "-lut -licudata -licui18n -licuuc"<br>
> > >>> > > > > >>> - now run 'make all' in '/home/vit/sfw/petsc/3.13.4'<br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> And see if the build works now.<br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> Satish<br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> On Tue, 29 Aug 2023, INTURU SRINIVAS 20PHD0548 via<br>
> > >>> petsc-users<br>
> > >>> > > wrote:<br>
> > >>> > > > > >>><br>
> > >>> > > > > >>> > I am sharing the log files while building petsc3.13.4 with<br>
> > >>> > > matlab and<br>
> > >>> > > > > >>> also<br>
> > >>> > > > > >>> > the log file while building libmesh with petsc3.17.5 and<br>
> > >>> matlab.<br>
> > >>> > > > > >>> Building<br>
> > >>> > > > > >>> > petsc 3.17.5 with matlab was done successfully. But<br>
> > >>> libmesh is<br>
> > >>> > > not<br>
> > >>> > > > > >>> able to<br>
> > >>> > > > > >>> > find the petsc<br>
> > >>> > > > > >>> > Please find the attachments.<br>
> > >>> > > > > >>> ><br>
> > >>> > > > > >>> > On Tue, Aug 29, 2023 at 7:31 PM Satish Balay <<br>
> > >>> <a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>><br>
> > >>> > > > > >>> wrote:<br>
> > >>> > > > > >>> ><br>
> > >>> > > > > >>> > > Send configure.log, make.log from both petsc-3.13 and<br>
> > >>> 3.17 [or<br>
> > >>> > > 3.19].<br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>> > > [you can gzip them to make the logs friendly to mailing<br>
> > >>> list -<br>
> > >>> > > or<br>
> > >>> > > > > >>> send<br>
> > >>> > > > > >>> > > 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<br>
> > >>> petsc-users<br>
> > >>> > > wrote:<br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>> > > > I am sharing the make.log file while building<br>
> > >>> petsc-3.13.4<br>
> > >>> > > with<br>
> > >>> > > > > >>> Matlab.<br>
> > >>> > > > > >>> > > > Please find the attachment and do the needful.<br>
> > >>> > > > > >>> > > ><br>
> > >>> > > > > >>> > > > On Tue, Aug 29, 2023 at 10:19 AM INTURU SRINIVAS<br>
> > >>> 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<br>
> > >>> libmesh, the<br>
> > >>> > > error<br>
> > >>> > > > > >>> shows<br>
> > >>> > > > > >>> > > > > petsc was not found<br>
> > >>> > > > > >>> > > > ><br>
> > >>> > > > > >>> > > > > On Mon, Aug 28, 2023 at 9:43 PM Satish Balay <<br>
> > >>> > > <a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>><br>
> > >>> > > > > >>> > > 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<br>
> > >>> > > petsc-users<br>
> > >>> > > > > >>> wrote:<br>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > > > >> > Hello,<br>
> > >>> > > > > >>> > > > >> ><br>
> > >>> > > > > >>> > > > >> > I want to build PETSc with MATLAB for working on<br>
> > >>> the<br>
> > >>> > > > > >>> simulation<br>
> > >>> > > > > >>> > > using<br>
> > >>> > > > > >>> > > > >> IBAMR<br>
> > >>> > > > > >>> > > > >> > open software. While building the PETSc, using the<br>
> > >>> > > 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>
> > >>> > > > > >>> > > > >> ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>><br>
> > >>> linux-debug/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test<br>
> > >>> > > > > >>> > > > >> > /usr/bin/ld:<br>
> > >>> > > > > >>> > > > >> ><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><br>
> > >>> > ><br>
> > >>> linux-debug/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test.o: in<br>
> > >>> > > > > >>> > > > >> > function `EvaluateResidual':<br>
> > >>> > > > > >>> > > > >> ><br>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >> ><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><br>
> > >>> > ><br>
> > >>> linux-debug/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test.o: in<br>
> > >>> > > > > >>> > > > >> > function `EvaluateJacobian':<br>
> > >>> > > > > >>> > > > >> ><br>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >> ><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><br>
> > >>> > ><br>
> > >>> linux-debug/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test.o: in<br>
> > >>> > > > > >>> > > > >> > function `TaoPounders':<br>
> > >>> > > > > >>> > > > >> ><br>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >> ><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><br>
> > >>> > ><br>
> > >>> linux-debug/tests/tao/leastsquares/tutorials/matlab/matlab_ls_test.o: in<br>
> > >>> > > > > >>> > > > >> > function `main':<br>
> > >>> > > > > >>> > > > >> ><br>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >><br>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > > > >> ><br>
> > >>> > > > > >>><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>
> > >>> > > > > >>> > ><br>
> > >>> > > > > >>> ><br>
> > >>> > > > > >>> ><br>
> > >>> > > > > >>><br>
> > >>> > > > > >><br>
> > >>> > > > > >><br>
> > >>> > > > > >> *Disclaimer:This message was sent from Vellore Institute of<br>
> > >>> > > Technology.<br>
> > >>> > > > > >> The contents of this email may contain legally protected<br>
> > >>> > > confidential or<br>
> > >>> > > > > >> privileged information of “Vellore Institute of Technology”.<br>
> > >>> If<br>
> > >>> > > you are<br>
> > >>> > > > > >> not the intended recipient, you should not disseminate,<br>
> > >>> distribute<br>
> > >>> > > or copy<br>
> > >>> > > > > >> this e-mail. Please notify the sender immediately and destroy<br>
> > >>> all<br>
> > >>> > > copies of<br>
> > >>> > > > > >> this message and any attachments. If you have received this<br>
> > >>> email<br>
> > >>> > > in error,<br>
> > >>> > > > > >> please promptly notify the sender by reply email and delete<br>
> > >>> the<br>
> > >>> > > original<br>
> > >>> > > > > >> email and any backup copies without reading them.*<br>
> > >>> > > > > >><br>
> > >>> > > > > ><br>
> > >>> > > > ><br>
> > >>> > > > ><br>
> > >>> > > ><br>
> > >>> > ><br>
> > >>> ><br>
> > >>> ><br>
> > >>><br>
> > >><br>
> > >><br>
> > >> *Disclaimer:This message was sent from Vellore Institute of Technology.<br>
> > >> The contents of this email may contain legally protected confidential or<br>
> > >> privileged information of “Vellore Institute of Technology”. If you are<br>
> > >> not the intended recipient, you should not disseminate, distribute or copy<br>
> > >> this e-mail. Please notify the sender immediately and destroy all copies of<br>
> > >> this message and any attachments. If you have received this email in error,<br>
> > >> please promptly notify the sender by reply email and delete the original<br>
> > >> email and any backup copies without reading them.*<br>
> > >><br>
> > ><br>
> > ><br>
> > > --<br>
> > > --Amneet<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></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>
</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>