[petsc-users] Failed to build Petsc statically linked to MKL for Windows

Barry Smith bsmith at petsc.dev
Tue Sep 29 18:01:17 CDT 2020


  Sorry, it appears that configure.log file is for a build with -Wl,--start-group  in the listing. Please send the configure.log for the case were you just listed the libraries with the -Wl stuff.

  Barry


> On Sep 29, 2020, at 5:39 PM, Thuc Bui <bui at calcreek.com> wrote:
> 
> Dear Barry,
>  
> Thank you very much for looking into this. I really appreciate it. Attached is the configure log generated by the first configuration listed below.
>  
> Best regards,
> Thuc
>  
> From: Barry Smith [mailto:bsmith at petsc.dev <mailto:bsmith at petsc.dev>] 
> Sent: Tuesday, September 29, 2020 2:33 PM
> To: Thuc Bui
> Cc: petsc-users at mcs.anl.gov <mailto:petsc-users at mcs.anl.gov>
> Subject: Re: [petsc-users] Failed to build Petsc statically linked to MKL for Windows
>  
>  
> 
> 
> On Sep 29, 2020, at 3:50 PM, Thuc Bui <bui at calcreek.com <mailto:bui at calcreek.com>> wrote:
>  
> Dear Petsc Users,
>  
> I have successfully built Petsc v3.13.5 for Windows 10 VS2015 without Fortran compiler and without MPI. These successful  builds are either linked statically with Blas-Lapack or dynamically with Intel MKL. However, when linking dynamically to MKL, I would have to include 4 more Intel DLLs for building applications. I would like to have Petsc linking statically to MKL to avoid having these extra DLLs, but have not been successful. Here is how I run configure for static link
>  
> ./configure --with-cc='win32fe cl' --with-cxx='win32fe cl' --with-fc=0 --with-openmp --with-debugging=0 --with-mpi=0 --with-blas-lapack-lib="-Wl,--start-group /cygdrive/c/PROGRA~2/INTELS~1/COMPIL~1.279/windows/mkl/lib/mkl_intel_lp64.lib /cygdrive/c/PROGRA~2/INTELS~1/COMPIL~1.279/windows/mkl/lib/mkl_core.lib /cygdrive/c/PROGRA~2/INTELS~1/COMPIL~1.279/windows/mkl/lib/mkl_intel_thread.lib -Wl,--end-group"
>  
> I got this configuration error,
>  
> =============================================================================== TESTING: checkLib from config.packages.BlasLapack(config/BuildSystem/config/pack*******************************************************************************
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
> -------------------------------------------------------------------------------
> You set a value for --with-blaslapack-lib=<lib>, but ['-Wl,--start-group', '/cygdrive/c/PROGRA~2/INTELS~1/COMPIL~1.279/windows/mkl/lib/mkl_intel_lp64.lib', '/cygdrive/c/PROGRA~2/INTELS~1/COMPIL~1.279/windows/mkl/lib/mkl_core.lib', '/cygdrive/c/PROGRA~2/INTELS~1/COMPIL~1.279/windows/mkl/lib/mkl_intel_thread.lib', '-Wl,--end-group'] cannot be used
> *******************************************************************************
>  
> Can someone point me to a proper syntax to link to MKL statically? Attached is the configure.log if you need it.
>  
> I have also tried unsuccessfuly, 
> --with-blas-lapack-lib="/cygdrive/c/PROGRA~2/INTELS~1/COMPIL~1.279/windows/mkl/lib/mkl_intel_lp64.lib /cygdrive/c/PROGRA~2/INTELS~1/COMPIL~1.279/windows/mkl/lib/mkl_core.lib /cygdrive/c/PROGRA~2/INTELS~1/COMPIL~1.279/windows/mkl/lib/mkl_intel_thread.lib"
>  
>   Please send configure.log for the above attempt.
>  
>   Barry
> 
> 
> or
> --with-blas-lapack-lib="-L/cygdrive/c/PROGRA~2/INTELS~1/COMPIL~1.279/windows/mkl/lib -lmkl_intel_lp64.lib -lmkl_core.lib -lmkl_intel_thread.lib", 
> or 
> --with-blas-lapack-lib="-L/cygdrive/c/PROGRA~2/INTELS~1/COMPIL~1.279/windows/mkl/lib mkl_intel_lp64.lib mkl_core.lib mkl_intel_thread.lib"
> and all gave the similar error message.
>  
> Many thanks in advance for your help,
> Thuc Bui
> Senior R&D Engineer
> Calabazas Creek Research, Inc.
> (650) 948-5361 (Office)
> (650) 948-7562 (Fax)                
>  
>  
> <configure.log>
>  
> <configure.log>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200929/2ad6b79a/attachment.html>


More information about the petsc-users mailing list