<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>  Please send configure.log and make.log to <a href="mailto:petsc-maint@mcs.anl.gov" class="">petsc-maint@mcs.anl.gov</a> <div class=""><br class=""></div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 17, 2022, at 1:52 PM, Yongxiang Lei <<a href="mailto:leiyongxiang1205@gmail.com" class="">leiyongxiang1205@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear concerns,<div class=""><br class=""></div><div class="">I met such issues when I  confirm that my Matlab installation is finished. I am also sure that the g++ version is given. Could you please check this problem for me?  The related information is given as follows. </div><div class=""><br class=""></div><div class="">Looking forward to hearing from you</div><div class="">Best regards</div><div class="">Xiang</div><div class=""><div class=""><br class=""></div><div class="">>> mex -setup cpp<br class="">MEX configured to use 'g++' for C++ language compilation.<br class=""></div><div class="">.........................................................................................................<br class=""><div class="">[ADS+u2192020@cos8-25136ecf ~]$ g++ --version<br class="">g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-13)<br class="">Copyright (C) 2018 Free Software Foundation, Inc.<br class="">This is free software; see the source for copying conditions.  There is NO<br class="">warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br class=""></div><div class="">.............................................................................................................</div><div class="">export PETSC_DIR=$PWD<br class="">export PETSC_ARCH=linux-debug<br class="">./configure \<br class="">  --CC=$HOME/sfw/linux/openmpi-4.0.2/bin/mpicc \<br class="">  --CXX=$HOME/sfw/linux/openmpi-4.0.2/bin/mpicxx \<br class="">  --FC=$HOME/sfw/linux/openmpi-4.0.2/bin/mpif90 \<br class="">  --with-debugging=1 \<br class="">  --download-hypre=1 \<br class="">  --download-fblaslapack=1 \<br class="">  --with-x=0\<br class="">  --with-matlab-dir=/home/ADS/u2192020/Matlab2022/ \<br class="">  --with-matlab-engine=1 \<br class="">  --with-matlab-engine-dir=/home/ADS/u2192020/Matlab2022/extern/engines/<br class=""></div><div class="">=========================================<br class="">=========================================<br class="">Now to check if the libraries are working do:<br class="">make PETSC_DIR=/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB PETSC_ARCH=linux-debug check<br class="">=========================================<br class="">[ADS+u2192020@cos8-25136ecf PETSc-MATLAB]$ make -j4 check<br class="">Running check examples to verify correct installation<br class="">Using PETSC_DIR=/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB and PETSC_ARCH=linux-debug<br class="">gmake[3]: [/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/lib/petsc/conf/rules:320: ex19.PETSc] Error 2 (ignored)<br class="">*******************Error detected during compile or link!*******************<br class="">See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" class="">http://www.mcs.anl.gov/petsc/documentation/faq.html</a><br class="">/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/src/snes/tutorials ex19<br class="">*********************************************************************************<br class="">/home/ADS/u2192020/sfw/linux/openmpi-4.0.2/bin/mpicc -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch -fstack-protector -fvisibility=hidden -g3 -O0  -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch -fstack-protector -fvisibility=hidden -g3 -O0    -I/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/include -I/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/include -I/home/ADS/u2192020/Matlab2022/extern/include     ex19.c  -Wl,-rpath,/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -L/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -Wl,-rpath,/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -L/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -Wl,-rpath,/home/ADS/u2192020/Matlab2022/bin/glnxa64 -L/home/ADS/u2192020/Matlab2022/bin/glnxa64 -Wl,-rpath,/home/ADS/u2192020/Matlab2022/extern/lib/glnxa64 -L/home/ADS/u2192020/Matlab2022/extern/lib/glnxa64 -Wl,-rpath,/home/ADS/u2192020/sfw/linux/openmpi-4.0.2/lib -L/home/ADS/u2192020/sfw/linux/openmpi-4.0.2/lib -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/8 -L/usr/lib/gcc/x86_64-redhat-linux/8 -lpetsc -lHYPRE -lflapack -lfblas -lm -leng -lmex -lmx -lmat -lmwm_dispatcher -lmwopcmodel -lmwservices -lmwopcmodel -lmwm_dispatcher -lmwmpath -lmwopcmodel -lmwservices -lmwopcmodel -lmwservices -lxerces-c -lstdc++ -ldl -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath -lpthread -lquadmath -lstdc++ -ldl -o ex19<br class="">//home/ADS/u2192020/Matlab2022/bin/glnxa64/libmwopccore.so: undefined reference to `std::__cxx11::basic_ostringstream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_ostringstream()@GLIBCXX_3.4.26'<br class="">//home/ADS/u2192020/Matlab2022/bin/glnxa64/libmwfoundation_matlabdata_matlab.so: undefined reference to `std::logic_error::logic_error(std::logic_error&&)@GLIBCXX_3.4.26'<br class="">/home/ADS/u2192020/Matlab2022/bin/glnxa64/libmex.so: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()@GLIBCXX_3.4.26'<br class="">/home/ADS/u2192020/Matlab2022/bin/glnxa64/libmx.so: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream()@GLIBCXX_3.4.26'<br class="">collect2: error: ld returned 1 exit status<br class="">gmake[4]: *** [<builtin>: ex19] Error 1<br class="">1,5c1,10<br class="">< lid velocity = 0.0016, prandtl # = 1., grashof # = 1.<br class=""><   0 SNES Function norm 0.0406612 <br class=""><   1 SNES Function norm 4.12227e-06 <br class=""><   2 SNES Function norm 6.098e-11 <br class="">< Number of SNES iterations = 2<br class="">---<br class="">> --------------------------------------------------------------------------<br class="">> mpiexec was unable to launch the specified application as it could not access<br class="">> or execute an executable:<br class="">> <br class="">> Executable: ./ex19<br class="">> Node: cos8-25136ecf<br class="">> <br class="">> while attempting to start process rank 0.<br class="">> --------------------------------------------------------------------------<br class="">> 2 total processes failed to start<br class="">/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/src/snes/tutorials<br class="">Possible problem with ex19 running with hypre, diffs above<br class="">=========================================<br class="">gmake[3]: [/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/lib/petsc/conf/rules:374: ex5f.PETSc] Error 2 (ignored)<br class="">*******************Error detected during compile or link!*******************<br class="">See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" class="">http://www.mcs.anl.gov/petsc/documentation/faq.html</a><br class="">/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/src/snes/tutorials ex5f<br class="">*********************************************************<br class="">/home/ADS/u2192020/sfw/linux/openmpi-4.0.2/bin/mpif90 -fPIC -Wall -ffree-line-length-0 -Wno-lto-type-mismatch -Wno-unused-dummy-argument -g -O0   -fPIC -Wall -ffree-line-length-0 -Wno-lto-type-mismatch -Wno-unused-dummy-argument -g -O0    -I/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/include -I/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/include -I/home/ADS/u2192020/Matlab2022/extern/include     ex5f.F90  -Wl,-rpath,/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -L/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -Wl,-rpath,/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -L/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -Wl,-rpath,/home/ADS/u2192020/Matlab2022/bin/glnxa64 -L/home/ADS/u2192020/Matlab2022/bin/glnxa64 -Wl,-rpath,/home/ADS/u2192020/Matlab2022/extern/lib/glnxa64 -L/home/ADS/u2192020/Matlab2022/extern/lib/glnxa64 -Wl,-rpath,/home/ADS/u2192020/sfw/linux/openmpi-4.0.2/lib -L/home/ADS/u2192020/sfw/linux/openmpi-4.0.2/lib -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/8 -L/usr/lib/gcc/x86_64-redhat-linux/8 -lpetsc -lHYPRE -lflapack -lfblas -lm -leng -lmex -lmx -lmat -lmwm_dispatcher -lmwopcmodel -lmwservices -lmwopcmodel -lmwm_dispatcher -lmwmpath -lmwopcmodel -lmwservices -lmwopcmodel -lmwservices -lxerces-c -lstdc++ -ldl -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath -lpthread -lquadmath -lstdc++ -ldl -o ex5f<br class="">//home/ADS/u2192020/Matlab2022/bin/glnxa64/libmwopccore.so: undefined reference to `std::__cxx11::basic_ostringstream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_ostringstream()@GLIBCXX_3.4.26'<br class="">//home/ADS/u2192020/Matlab2022/bin/glnxa64/libmwfoundation_matlabdata_matlab.so: undefined reference to `std::logic_error::logic_error(std::logic_error&&)@GLIBCXX_3.4.26'<br class="">/home/ADS/u2192020/Matlab2022/bin/glnxa64/libmex.so: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()@GLIBCXX_3.4.26'<br class="">/home/ADS/u2192020/Matlab2022/bin/glnxa64/libmx.so: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream()@GLIBCXX_3.4.26'<br class="">collect2: error: ld returned 1 exit status<br class="">gmake[4]: *** [/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/lib/petsc/conf/test:43: ex5f] Error 1<br class="">gmake[3]: [/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/lib/petsc/conf/rules:320: ex31.PETSc] Error 2 (ignored)<br class="">*******************Error detected during compile or link!*******************<br class="">See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" class="">http://www.mcs.anl.gov/petsc/documentation/faq.html</a><br class="">/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/src/vec/vec/tutorials ex31<br class="">*********************************************************************************<br class="">/home/ADS/u2192020/sfw/linux/openmpi-4.0.2/bin/mpicc -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch -fstack-protector -fvisibility=hidden -g3 -O0  -fPIC -Wall -Wwrite-strings -Wno-unknown-pragmas -Wno-lto-type-mismatch -fstack-protector -fvisibility=hidden -g3 -O0    -I/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/include -I/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/include -I/home/ADS/u2192020/Matlab2022/extern/include     ex31.c  -Wl,-rpath,/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -L/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -Wl,-rpath,/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -L/home/ADS/u2192020/sfw/petsc/PETSc-MATLAB/linux-debug/lib -Wl,-rpath,/home/ADS/u2192020/Matlab2022/bin/glnxa64 -L/home/ADS/u2192020/Matlab2022/bin/glnxa64 -Wl,-rpath,/home/ADS/u2192020/Matlab2022/extern/lib/glnxa64 -L/home/ADS/u2192020/Matlab2022/extern/lib/glnxa64 -Wl,-rpath,/home/ADS/u2192020/sfw/linux/openmpi-4.0.2/lib -L/home/ADS/u2192020/sfw/linux/openmpi-4.0.2/lib -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/8 -L/usr/lib/gcc/x86_64-redhat-linux/8 -lpetsc -lHYPRE -lflapack -lfblas -lm -leng -lmex -lmx -lmat -lmwm_dispatcher -lmwopcmodel -lmwservices -lmwopcmodel -lmwm_dispatcher -lmwmpath -lmwopcmodel -lmwservices -lmwopcmodel -lmwservices -lxerces-c -lstdc++ -ldl -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath -lpthread -lquadmath -lstdc++ -ldl -o ex31<br class="">//home/ADS/u2192020/Matlab2022/bin/glnxa64/libmwopccore.so: undefined reference to `std::__cxx11::basic_ostringstream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_ostringstream()@GLIBCXX_3.4.26'<br class="">//home/ADS/u2192020/Matlab2022/bin/glnxa64/libmwfoundation_matlabdata_matlab.so: undefined reference to `std::logic_error::logic_error(std::logic_error&&)@GLIBCXX_3.4.26'<br class="">/home/ADS/u2192020/Matlab2022/bin/glnxa64/libmex.so: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()@GLIBCXX_3.4.26'<br class="">/home/ADS/u2192020/Matlab2022/bin/glnxa64/libmx.so: undefined reference to `std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream()@GLIBCXX_3.4.26'<br class="">collect2: error: ld returned 1 exit status<br class="">gmake[4]: *** [<builtin>: ex31] Error 1<br class="">Completed test examples<br class="">[ADS+u2192020@cos8-25136ecf PETSc-MATLAB]$ <br class=""></div></div></div></div>
</div></blockquote></div><br class=""></div></body></html>