Pardiso.jl icon indicating copy to clipboard operation
Pardiso.jl copied to clipboard

Pardiso library found but not?

Open ChrisRackauckas opened this issue 5 years ago • 6 comments

julia> Pardiso.show_build_log()
could not load library "C:\Users\accou\.julia\external\libpardiso600-WIN-X86-64.dll"
The specified module could not be found.
Pardiso library
===============
Looking for libraries with name: libpardiso600-WIN-X86-64.dll.
Looking in "C:\Users\accou\.julia\packages\Pardiso\GDj1P\deps" for libraries
Looking in "C:\Users\accou\.julia\external" for libraries
    found "C:\Users\accou\.julia\external\libpardiso600-WIN-X86-64.dll", attempting to load it...
    failed to load due to:
did not find libpardiso, assuming PARDISO 5/6 is not installed

MKL Pardiso
=============
did not find MKLROOT environment variable, using provided MKL

ChrisRackauckas avatar Feb 10 '20 12:02 ChrisRackauckas

Hm, it is missing the error from

https://github.com/JuliaSparse/Pardiso.jl/blob/e202350860e53f62f7d4a119a8e357296e173907/deps/build.jl#L55

(I guess stderr doesn't go to the log?). If you run pkg> build --verbose what does it say?

KristofferC avatar Feb 10 '20 12:02 KristofferC

(v1.3) pkg> build --verbose Pardiso
  Building Pardiso → `C:\Users\accou\.julia\packages\Pardiso\GDj1P\deps\build.log`
Pardiso library
===============
Looking for libraries with name: libpardiso600-WIN-X86-64.dll.
Looking in "C:\Users\accou\.julia\packages\Pardiso\GDj1P\deps" for libraries
Looking in "C:\Users\accou\.julia\external" for libraries
    found "C:\Users\accou\.julia\external\libpardiso600-WIN-X86-64.dll", attempting to load it...
    failed to load due to:
could not load library "C:\Users\accou\.julia\external\libpardiso600-WIN-X86-64.dll"
The specified module could not be found.
did not find libpardiso, assuming PARDISO 5/6 is not installed

MKL Pardiso
=============
did not find MKLROOT environment variable, using provided MKL

ChrisRackauckas avatar Feb 10 '20 13:02 ChrisRackauckas

Does it fail to just run Libdl.dlopen on it in a normal julia session?

KristofferC avatar Feb 10 '20 13:02 KristofferC

julia> using Libdl

julia> cd(raw"C:\Users\accou\.julia\external")

julia> Libdl.dlopen("libpardiso600-WIN-X86-64.dll")
ERROR: could not load library "libpardiso600-WIN-X86-64.dll"
The specified module could not be found.

Stacktrace:
 [1] #dlopen#3(::Bool, ::typeof(dlopen), ::String, ::UInt32) at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Libdl\src\Libdl.jl:109
 [2] dlopen at D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Libdl\src\Libdl.jl:109 [inlined] (repeats 2 times)
 [3] top-level scope at REPL[3]:1

But it's there and if I open it with open I can read the bytes.

ChrisRackauckas avatar Feb 11 '20 01:02 ChrisRackauckas

Yeah sure but open and dlopen are very different.

KristofferC avatar Feb 11 '20 06:02 KristofferC

I am facing the same issue. Is there any solution to this?

rcesarpacheco avatar Dec 30 '20 02:12 rcesarpacheco