<div dir="ltr"><div dir="ltr">On Mon, Jun 15, 2020 at 12:13 PM Kun Jiao 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">





<div lang="EN-US">
<div class="gmail-m_5287520681506910253WordSection1">
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Lately I run into a configure error with intel compiler+openmpi+lapack,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Error message as:<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Lucida Console"">===============================================================================                                                                                            
 TESTING: checkLib from config.packages.BlasLapack(config/BuildSystem/config/packages/BlasLapack.py:114)                                                                     *******************************************************************************<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Lucida Console"">         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Lucida Console"">-------------------------------------------------------------------------------<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Lucida Console"">You set a value for --with-blaslapack-lib=<lib>, but ['-L/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/lib/intel64',
 '-Wl,', '--no-as-needed', '-lmkl_intel_ilp64', '-lmkl_intel_thread', '-lmkl_core', '-liomp5', '-lpthread', '-lm', '-ldl'] cannot be used<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Lucida Console"">*******************************************************************************</span></p></div></div></blockquote><div><br></div><div>You input looks wrong:</div><div><br></div><div>Executing: icc  -o /tmp/petsc-srHpJ6/config.libraries/conftest    -fPIC  -wd1572 -Ofast -xHost /tmp/petsc-srHpJ6/config.libraries/conftest.o  -L/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/lib/intel64 -Wl, --no-as-needed -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl -lstdc++ -ldl -Wl,-rpath,/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mpi/intel64/libfabric/lib -L/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mpi/intel64/libfabric/lib -Wl,-rpath,/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/compiler/lib/intel64_lin -L/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/compiler/lib/intel64_lin -Wl,-rpath,/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/lib/intel64_lin -L/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/lib/intel64_lin -Wl,-rpath,/opt/2019.3/compilers_and_libraries_2019.3.199/linux/compiler/lib/intel64_lin -L/opt/2019.3/compilers_and_libraries_2019.3.199/linux/compiler/lib/intel64_lin -Wl,-rpath,/opt/gcc-4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2 -L/opt/gcc-4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2 -Wl,-rpath,/opt/gcc-4.9.2/lib64 -L/opt/gcc-4.9.2/lib64 -Wl,-rpath,/opt/gcc-4.9.2/lib -L/opt/gcc-4.9.2/lib -lifport -lifcoremt_pic -limf -lsvml -lm -lipgo -lirc -lpthread -lgcc_s -lirc_s -lstdc++ -ldl <br>Possible ERROR while running linker: exit code 256<br>stderr:<br>icc: command line warning #10006: ignoring unknown option '-fno-as-needed'<br>ld: cannot find -lmkl_intel_ilp64<br></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 lang="EN-US"><div class="gmail-m_5287520681506910253WordSection1">
<p class="MsoNormal">Here is my configure parameters:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Lucida Console"">./configure --configModules=PETSc.Configure --optionsModule=config.compilerOptions --configModules=PETSc.Configure --optionsModule=config.compilerOptions PETSC_ARCH=linux-gnu-intel
 --with-precision=single --with-cc=icc --with-cxx=icc --with-fc=ifort --with-mpi-include=/opt/openmpi_4.0.3_intel2019.3/include --with-mpi-lib="-L/opt/openmpi_4.0.3_intel2019.3/lib -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi" --with-blaslapack-include="/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/include"
 --with-blaslapack-lib="-L/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/lib/intel64 -Wl, --no-as-needed -lmkl_intel_ilp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm
 -ldl" --with-scalapack-lib="-L/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/lib/intel64 -lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64" --with-scalapack-include=/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/2019.3/intel/compilers_and_libraries_2019.3.199/linux/mkl/include
 --with-cmake=1 --prefix=/opt/petsc_3.10.4_intel2019.3 --known-endian=big --with-debugging=0 --COPTFLAGS=" -Ofast -xHost" --CXXOPTFLAGS=" -Ofast -xHost" --FOPTLAGS=" -Ofast -xHost" --with-x=0 --with-64-bit-indices<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:12pt;font-family:"Lucida Console""><u></u> <u></u></span></p>
<p class="MsoNormal">And configure.log attached. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Any suggestion will be great?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">Kun<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<br>
<p align="Center" style="margin:0px"><span style="font-size:10pt;font-family:Calibri;color:rgb(0,0,0)">Schlumberger-Private</span></p>
</div>
</div>

</blockquote></div><br clear="all"><div><br></div>-- <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>