Closed bjarthur closed 10 months ago
Maybe it can't find 7z? I wonder if this is a PackageCompiler issue?
cc @KristofferC
in case it matters:
julia> versioninfo()
Julia Version 1.9.3
Commit bed2cd540a (2023-08-24 14:43 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 32 × Intel(R) Xeon(R) Silver 4110 CPU @ 2.10GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, skylake-avx512)
Threads: 1 on 32 virtual cores
for what it's worth, i tried following https://github.com/JuliaLinearAlgebra/MKL.jl/pull/20#issuecomment-565245124, and couldn't find 7z, despite being able to find it in the search box on windows, but i'm guessing MKL is trying to find the one in p7zip_jll.
julia> searchpath = ENV["PATH"]
"C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Git\\cmd;C:\\Users\\arthurb\\AppData\\Local\\Microsoft\\WindowsApps;"
julia> if isdefined(Base, :LIBEXECDIR)
sepchar = Sys.iswindows() ? ";" : ":"
searchpath = string(joinpath(Sys.BINDIR, Base.LIBEXECDIR), sepchar, searchpath)
end
"C:\\Users\\arthurb\\.julia\\juliaup\\julia-1.9.3+0.x64.w64.mingw32\\bin\\..\\libexec;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\Git\\cmd;C:\\Users\\arthurb\\AppData\\Local\\Microsoft\\WindowsApps;"
julia> sevenz_path = withenv("PATH" => searchpath) do
Sys.which("7z")
end
julia> sevenz_path = withenv("PATH" => searchpath) do
Sys.which("7z.exe")
end
https://github.com/JuliaLang/PackageCompiler.jl/pull/877 should fix this.
thanks @KristofferC . i'm testing that PR now, as requested.
i guess the bigger picture is that i don't understand why MKL is downloaded at runtime, instead of being bundled into the app when it is compiled.
I believe that is how artifacts work - in that the right architecture specific version gets picked up at runtime. There may/should be a way to package it all by picking defaults at build time.
the problem has something to do with 7z.
here's the contents of testmkl/src/testmkl.jl:
here's the error on the powershell command line when i try to run the app: