[petsc-users] configure error
Matthew Knepley
knepley at gmail.com
Mon Jun 15 12:25:02 CDT 2020
On Mon, Jun 15, 2020 at 12:13 PM Kun Jiao via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Hi,
>
>
>
> Lately I run into a configure error with intel compiler+openmpi+lapack,
>
>
>
> Error message as:
>
> ===============================================================================
> TESTING: checkLib from
> config.packages.BlasLapack(config/BuildSystem/config/packages/BlasLapack.py:114)
> *******************************************************************************
>
> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for
> details):
>
>
> -------------------------------------------------------------------------------
>
> 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
>
>
> *******************************************************************************
>
You input looks wrong:
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
Possible ERROR while running linker: exit code 256
stderr:
icc: command line warning #10006: ignoring unknown option '-fno-as-needed'
ld: cannot find -lmkl_intel_ilp64
Thanks,
Matt
> Here is my configure parameters:
>
>
>
> ./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
>
>
>
> And configure.log attached.
>
>
>
> Any suggestion will be great?
>
>
>
> Regards,
>
> Kun
>
>
>
> Schlumberger-Private
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200615/4be92ac0/attachment.html>
More information about the petsc-users
mailing list