MKL installation fails on Julia 1.3.1

I am trying to install MKL on Windoes 10 and the error log is attached. The installation has succeeded on another machine.

add https://github.com/JuliaComputing/MKL.jl #master
   Cloning git-repo `https://github.com/JuliaComputing/MKL.jl`
  Updating git-repo `https://github.com/JuliaComputing/MKL.jl`
  Updating git-repo `https://github.com/JuliaComputing/MKL.jl`
 Resolving package versions...
   Cloning default registries into `C:\Users\kumar\.julia`
   Cloning registry from "https://github.com/JuliaRegistries/General.git"
     Added registry `General` to `C:\Users\kumar\.julia\registries\General`
 Installed HTTPClient ────── v0.2.1
 Installed Expat_jll ─────── v2.2.7+0
 Installed Compat ────────── v2.2.0
 Installed LibCURL ───────── v0.5.2
 Installed BinDeps ───────── v1.0.0
 Installed LibExpat ──────── v0.6.1
 Installed BufferedStreams ─ v1.0.0
 Installed BinaryProvider ── v0.5.8
 Installed WinRPM ────────── v0.4.3
 Installed URIParser ─────── v0.4.0
 Installed Libz ──────────── v1.0.1
 Installed PackageCompiler ─ v0.6.5
  Updating `C:\Users\kumar\.julia\environments\v1.3\Project.toml`
  [33e6dc65] + MKL v0.1.0 #master (https://github.com/JuliaComputing/MKL.jl)
  Updating `C:\Users\kumar\.julia\environments\v1.3\Manifest.toml`
  [9e28174c] + BinDeps v1.0.0
  [b99e7846] + BinaryProvider v0.5.8
  [e1450e63] + BufferedStreams v1.0.0
  [34da2185] + Compat v2.2.0
  [2e619515] + Expat_jll v2.2.7+0
  [0862f596] + HTTPClient v0.2.1
  [b27032c2] + LibCURL v0.5.2
  [522f3ed2] + LibExpat v0.6.1
  [2ec943e9] + Libz v1.0.1
  [33e6dc65] + MKL v0.1.0 #master (https://github.com/JuliaComputing/MKL.jl)
  [9b87118b] + PackageCompiler v0.6.5
  [30578b45] + URIParser v0.4.0
  [c17dfb99] + WinRPM v0.4.3
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8bb1440f] + DelimitedFiles
  [8ba89e20] + Distributed
  [b77e0a4c] + InteractiveUtils
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [1a1011a3] + SharedArrays
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays
  [10745b16] + Statistics
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  Building LibCURL ────────→ `C:\Users\kumar\.julia\packages\LibCURL\lWJxD\deps\build.log`
  Building WinRPM ─────────→ `C:\Users\kumar\.julia\packages\WinRPM\BfpQI\deps\build.log`
  Building PackageCompiler → `C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\deps\build.log`
  Building MKL ────────────→ `C:\Users\kumar\.julia\packages\MKL\9dWbC\deps\build.log`
┌ Error: Error building `MKL`, showing the last 100 of log:
│ FileWatching  ───  0.137418 seconds
│ Unicode  ────────  0.018189 seconds
│ Mmap  ───────────  0.130739 seconds
│ Serialization  ──  1.424178 seconds
│ Libdl  ──────────  0.053585 seconds
│ Markdown  ───────  1.552042 seconds
│ LibGit2  ────────  3.887334 seconds
│ Logging  ────────  0.642347 seconds
│ Sockets  ────────  2.424164 seconds
│ Printf  ─────────  0.023773 seconds
│ Profile  ────────  0.226501 seconds
│ Dates  ──────────  2.818876 seconds
│ DelimitedFiles  ─  0.165583 seconds
│ Random  ─────────  0.655323 seconds
│ UUIDs  ──────────  0.026317 seconds
│ Future  ─────────  0.011004 seconds
│ LinearAlgebra  ── 13.689808 seconds
│ SparseArrays  ───  5.773609 seconds
│ SuiteSparse  ────  3.464077 seconds
│ Distributed  ────  5.869936 seconds
│ SharedArrays  ───  0.162115 seconds
│ Pkg  ──────────── 14.963907 seconds
│ Test  ───────────  1.286046 seconds
│ REPL  ───────────  1.242028 seconds
│ Statistics  ─────  0.214321 seconds
│ Stdlibs total  ── 66.899248 seconds
│ Sysimage built. Summary:
│ Total ─────── 101.344997 seconds
│ Base: ───────  34.441504 seconds 33.9844%
│ Stdlibs: ────  66.899248 seconds 66.0114%
│ c:/users/kumar/.julia/packages/winrpm/bfpqi/deps/usr/x86_64-w64-mingw32/sys-root/mingw/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: <unknown-file>:0: syntax error
│ Warning: .drectve `-export:ccalllib_C:\Users\kumar\.julia\packages\MKL\9dWbC\deps\usr\bin\mkl_rt.dll,data ' unrecognized
│ c:/users/kumar/.julia/packages/winrpm/bfpqi/deps/usr/x86_64-w64-mingw32/sys-root/mingw/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export MKL: symbol not found
│ c:/users/kumar/.julia/packages/winrpm/bfpqi/deps/usr/x86_64-w64-mingw32/sys-root/mingw/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export Users: symbol not found
│ c:/users/kumar/.julia/packages/winrpm/bfpqi/deps/usr/x86_64-w64-mingw32/sys-root/mingw/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export ccalllib_C:: symbol not found
│ c:/users/kumar/.julia/packages/winrpm/bfpqi/deps/usr/x86_64-w64-mingw32/sys-root/mingw/bin/../lib/gcc/x86_64-w64-mingw32/8.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot export packages: symbol not found
│ collect2.exe: error: ld returned 1 exit status
│ ┌ Warning: On Windows, creating file symlinks requires Administrator privileges
│ └ @ Base.Filesystem file.jl:848
│ [ Info: Downloading https://github.com/JuliaPackaging/Yggdrasil/releases/download/IntelOpenMP-v2018.0.3/IntelOpenMP.v2018.0.3.x86_64-w64-mingw32.tar.gz to C:\Users\kumar\.julia\packages\MKL\9dWbC\deps\usr\downloads\IntelOpenMP.v2018.0.3.x86_64-w64-mingw32.tar.gz...
│ [ Info: Downloading https://github.com/JuliaPackaging/Yggdrasil/releases/download/MKL-v2019.0.117/MKL.v2019.0.117.x86_64-w64-mingw32.tar.gz to C:\Users\kumar\.julia\packages\MKL\9dWbC\deps\usr\downloads\MKL.v2019.0.117.x86_64-w64-mingw32.tar.gz...
│ [ Info: Replacing libblas_name in C:\Users\kumar\AppData\Local\Julia-1.3.1\bin\..\share\julia\base\build_h.jl
│ [ Info: Checking if we need to update PATH...
│ [ Info: Checking sysimg.jl
│ [ Info: Could not find init function in sysimg.jl
│ [ Info: Checking Base.jl
│ [ Info: Successfully modified Base.jl
│ ┌ Info: Building `inference.o`:
│ └ `'C:\Users\kumar\AppData\Local\Julia-1.3.1\bin\julia.exe' -C native --output-ji 'C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\sysimg\backup\native\basecompiler.ji' --output-o 'C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\sysimg\backup\native\basecompiler.o' compiler/compiler.jl`
│ ┌ Info: Building `sys.o`:
│ └ `'C:\Users\kumar\AppData\Local\Julia-1.3.1\bin\julia.exe' -C native --output-ji 'C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\sysimg\backup\native\sys.ji' --output-o 'C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\sysimg\backup\native\sys.o' -J 'C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\sysimg\backup\native\basecompiler.ji' --startup-file=no sysimg.jl`
│ ERROR: LoadError: failed process: Process(setenv(`'C:\Users\kumar\.julia\packages\WinRPM\BfpQI\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin\gcc.exe' --sysroot 'C:\Users\kumar\.julia\packages\WinRPM\BfpQI\deps\usr\x86_64-w64-mingw32\sys-root' -shared '-DJULIAC_PROGRAM_LIBNAME="C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\sysimg\backup\native\sys.dll"' -o 'C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\sysimg\backup\native\sys.dll' -Wl,--whole-archive 'C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\sysimg\backup\native\sys.o' -Wl,--no-whole-archive -std=gnu99 '-IC:\Users\kumar\AppData\Local\Julia-1.3.1\include\julia' -DJULIA_ENABLE_THREADING=1 '-LC:\Users\kumar\AppData\Local\Julia-1.3.1\bin' -Wl,--stack,8388608 -ljulia -lopenlibm -m64 -Wl,--export-all-symbols`,["PATH=C:\\Users\\kumar\\.julia\\packages\\WinRPM\\BfpQI\\deps\\usr\\x86_64-w64-mingw32\\sys-root\\mingw\\bin;C:\\Program Files\\ImageMagick-6.9.8-Q16;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;D:\\sqlite;C:\\Program Files\\SourceGear\\Common\\DiffMerge\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Users\\kumar\\AppData\\Roaming\\local\\bin;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Users\\kumar\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\phantomjs-2.1.1-windows\\bin;C:\\Users\\kumar\\AppData\\Local\\atom\\bin;"]), ProcessExited(1)) [1]
│
│ Stacktrace:
│  [1] pipeline_error at .\process.jl:525 [inlined]
│  [2] #run#565(::Bool, ::typeof(run), ::Cmd) at .\process.jl:440
│  [3] run at .\process.jl:438 [inlined]
│  [4] run_PATH(::Cmd) at C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\src\static_julia.jl:23
│  [5] (::PackageCompiler.var"#16#18")() at C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\src\static_julia.jl:309
│  [6] cd(::PackageCompiler.var"#16#18", ::String) at .\file.jl:93
│  [7] build_shared(::String, ::String, ::Bool, ::String, ::Bool, ::Nothing, ::Nothing, ::Cmd, ::Nothing) at C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\src\static_julia.jl:308
│  [8] (::PackageCompiler.var"#40#41"{Bool,String})() at C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\src\system_image.jl:46
│  [9] cd(::PackageCompiler.var"#40#41"{Bool,String}, ::String) at .\file.jl:93
│  [10] #compile_system_image#39(::Bool, ::typeof(PackageCompiler.compile_system_image), ::String, ::String) at C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\src\system_image.jl:15
│  [11] #compile_system_image at .\none:0 [inlined]
│  [12] get_backup!(::Bool, ::String) at C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\src\system_image.jl:63
│  [13] force_native_image! at C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\src\api.jl:123 [inlined] (repeats 2 times)
│  [14] enable_mkl_startup(::String) at C:\Users\kumar\.julia\packages\MKL\9dWbC\src\install.jl:138
│  [15] top-level scope at C:\Users\kumar\.julia\packages\MKL\9dWbC\deps\build.jl:9
│  [16] include at .\boot.jl:328 [inlined]
│  [17] include_relative(::Module, ::String) at .\loading.jl:1105
│  [18] include(::Module, ::String) at .\Base.jl:31
│  [19] include(::String) at .\client.jl:424
│  [20] top-level scope at none:5
│ in expression starting at C:\Users\kumar\.julia\packages\MKL\9dWbC\deps\build.jl:9
│ caused by [exception 1]
│ IOError: symlink: operation not permitted (EPERM)
│ Stacktrace:
│  [1] uv_error at .\libuv.jl:97 [inlined]
│  [2] symlink(::String, ::String) at .\file.jl:851
│  [3] probe_symlink_creation(::String) at C:\Users\kumar\.julia\packages\BinaryProvider\kcGxO\src\PlatformEngines.jl:121
│  [4] #probe_platform_engines!#30(::Bool, ::typeof(BinaryProvider.probe_platform_engines!)) at C:\Users\kumar\.julia\packages\BinaryProvider\kcGxO\src\PlatformEngines.jl:175
│  [5] probe_platform_engines! at C:\Users\kumar\.julia\packages\BinaryProvider\kcGxO\src\PlatformEngines.jl:169 [inlined]
│  [6] __init__() at C:\Users\kumar\.julia\packages\BinaryProvider\kcGxO\src\BinaryProvider.jl:28
│  [7] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:692
│  [8] _require_search_from_serialized(::Base.PkgId, ::String) at .\loading.jl:776
│  [9] _require(::Base.PkgId) at .\loading.jl:1001
│  [10] require(::Base.PkgId) at .\loading.jl:922
│  [11] require(::Module, ::Symbol) at .\loading.jl:917
│  [12] include at .\boot.jl:328 [inlined]
│  [13] include_relative(::Module, ::String) at .\loading.jl:1105
│  [14] include(::Module, ::String) at .\Base.jl:31
│  [15] include(::String) at .\client.jl:424
│  [16] top-level scope at C:\Users\kumar\.julia\packages\MKL\9dWbC\deps\build.jl:4
│  [17] include at .\boot.jl:328 [inlined]
│  [18] include_relative(::Module, ::String) at .\loading.jl:1105
│  [19] include(::Module, ::String) at .\Base.jl:31
│  [20] include(::String) at .\client.jl:424
│  [21] top-level scope at none:5
│ Build shared library "C:\\Users\\kumar\\.julia\\packages\\PackageCompiler\\4yNnV\\sysimg\\backup\\native\\sys.dll":
│   `'C:\Users\kumar\.julia\packages\WinRPM\BfpQI\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin\gcc.exe' --sysroot 'C:\Users\kumar\.julia\packages\WinRPM\BfpQI\deps\usr\x86_64-w64-mingw32\sys-root' -shared '-DJULIAC_PROGRAM_LIBNAME="C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\sysimg\backup\native\sys.dll"' -o 'C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\sysimg\backup\native\sys.dll' -Wl,--whole-archive 'C:\Users\kumar\.julia\packages\PackageCompiler\4yNnV\sysimg\backup\native\sys.o' -Wl,--no-whole-archive -std=gnu99 '-IC:\Users\kumar\AppData\Local\Julia-1.3.1\include\julia' -DJULIA_ENABLE_THREADING=1 '-LC:\Users\kumar\AppData\Local\Julia-1.3.1\bin' -Wl,--stack,8388608 -ljulia -lopenlibm -m64 -Wl,--export-all-symbols`
│
│ Full log at C:\Users\kumar\.julia\packages\MKL\9dWbC\deps\build.log
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:649

I would appreciate any assistance in making sense of the problem. I am trying to install the master as has worked before.

1 Like

https://github.com/JuliaComputing/MKL.jl/issues/24

1 Like