You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@mxnet.apache.org by Timmeh87 via MXNet Forum <mx...@discoursemail.com.INVALID> on 2022/03/07 16:17:25 UTC

[MXNet Forum] Linker errors when building mxnet library from source on windows


Hi I know I am a year late but this is the first result when googling for similar linker errors for functions like ssyevd_.
First of all, those functions with names like ssyevd_ are from LAPACK. Second of all, it looks like the mxnet cmake files might not bother to include the lapack library on windows. Im not sure why this is, I found this code in the main CMAKE file

 if(NOT MSVC AND NOT CMAKE_BUILD_TYPE STREQUAL "Distribution"
       AND NOT BLAS STREQUAL "Open" AND NOT BLAS STREQUAL "open")
      list(APPEND mxnet_LINKER_LIBS lapack)
    endif()

It looks like it purposely excludes lapack from windows builds. i believe this is incorrect, at least for the OpenBLAS library i am linking to. I have a lapack dll (I'm using vcpkg to supply some of the dependencies) so I will add it to the windows mxnet build and maybe it will work. The build will not be done for hours so im making this post while I still have this thread open

Perhaps at some point OpenBLAS changed the way they use LAPACK and now one library requires the other rather than having it embedded ? Just a theory, i can confirm using /dumpbin that these missing functions are NOT inside my openblas DLL and they are for sure in the LAPACK one





---
[Visit Topic](https://discuss.mxnet.apache.org/t/linker-errors-when-building-mxnet-library-from-source-on-windows/6808/3) or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.mxnet.apache.org/email/unsubscribe/bc0515ed231545b4fd91c7a99930d156faa3e8acefd76ca2062cb7d5aef80645).