Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Compiling in a mingw64/msys2 environment

Martin_S_6
Beginner
1,433 Views

I'm trying to build my C program in a mingw64 (msys2) environment using cmake.

I successfully compiled my example code with inkl mkl_malloc() call, but once including vdMul() function I get the following compile error:

Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
Warning: .drectve `-defaultlib:"uuid.lib" ' unrecognized
Warning: corrupt .drectve at end of def file
C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64/mkl_intel_ilp64_dll.lib(./_tmp/interface_win32e_ilp64_dll/vml_fb_cpuid_iface.obj):(.text[mkl_vml_serv_cpu_detect]+0xcb): undefined reference to `__security_check_cookie'

My libraries are included in my cmake config:

find_library(MKL_CORE_LIBRARY mkl_core_dll PATHS ${MKL_ROOT_DIR}/lib/${MKL_ARCH_DIR} ${MKL_ROOT_DIR}/lib/)
find_library(MKL_INTEL_ILP64_LIBRARY mkl_intel_ilp64_dll PATHS ${MKL_ROOT_DIR}/lib/${MKL_ARCH_DIR} ${MKL_ROOT_DIR}/lib/)
find_library(MKL_SEQUENTIAL_LIBRARY mkl_sequential_dll PATHS ${MKL_ROOT_DIR}/lib/${MKL_ARCH_DIR} ${MKL_ROOT_DIR}/lib/)

Is there a compatibility problem here or am I doing something wrong?

Thanks.

 

0 Kudos
3 Replies
Gennady_F_Intel
Moderator
1,433 Views

Martin, What mkl's version you are using?  The similar symptoms we were met with another performance library -- IPP. Please have a look at this post - https://software.intel.com/en-us/forums/intel-integrated-performance-primitives/topic/393628. 

0 Kudos
Martin_S_6
Beginner
1,433 Views

Gennady Fedorov (Intel) wrote:

Martin, What mkl's version you are using?  The similar symptoms we were met with another performance library -- IPP. Please have a look at this post - https://software.intel.com/en-us/forums/intel-integrated-performance-pri...

I'm using version 11.3.

I see this post: https://software.intel.com/en-us/articles/intel-integrated-performance-primitives-intel-ipp-for-windows-lnk2001-error-unresolved-external-symbol-_security_cookie

It seems to refer to VC++ compilers and .net versions. Could this still be related to my issue when using gcc?

0 Kudos
TimP
Honored Contributor III
1,433 Views

Did you check whether including the bufferoverflowu.lib may resolve it?  It's generally difficult to use MKL with mingw/

0 Kudos
Reply