Skip to content

Precompilation fails on Windows and Julia 1.8 #195

@kafisatz

Description

@kafisatz

I understand this is due to a known bug in BinaryProvider.jl

import Pkg; Pkg.precompile()
Precompiling project...
  ✗ BinaryProvider
  0 dependencies successfully precompiled in 1 seconds. 103 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

BinaryProvider [b99e7846-7c00-51b0-8f62-c81ae34c0232]

Failed to precompile BinaryProvider [b99e7846-7c00-51b0-8f62-c81ae34c0232] to C:\Users\BernhardKönig\.julia\compiled\v1.8\BinaryProvider\jl_EE6B.tmp.
ERROR: LoadError: Unable to open libLLVM!
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] (::BinaryProvider.var"#open_libllvm#124")()
    @ BinaryProvider C:\Users\BernhardKönig\.julia\packages\BinaryProvider\U2dKK\src\PlatformNames.jl:652
  [3] detect_cxx11_string_abi()
    @ BinaryProvider C:\Users\BernhardKönig\.julia\packages\BinaryProvider\U2dKK\src\PlatformNames.jl:655
  [4] detect_compiler_abi()
    @ BinaryProvider C:\Users\BernhardKönig\.julia\packages\BinaryProvider\U2dKK\src\PlatformNames.jl:668
  [5] top-level scope
    @ C:\Users\BernhardKönig\.julia\packages\BinaryProvider\U2dKK\src\PlatformNames.jl:685
  [6] include(mod::Module, _path::String)
    @ Base .\Base.jl:419
  [7] include(x::String)
    @ BinaryProvider C:\Users\BernhardKönig\.julia\packages\BinaryProvider\U2dKK\src\BinaryProvider.jl:1
  [8] top-level scope
    @ C:\Users\BernhardKönig\.julia\packages\BinaryProvider\U2dKK\src\BinaryProvider.jl:12
  [9] include
    @ .\Base.jl:419 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base .\loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at C:\Users\BernhardKönig\.julia\packages\BinaryProvider\U2dKK\src\PlatformNames.jl:685
in expression starting at C:\Users\BernhardKönig\.julia\packages\BinaryProvider\U2dKK\src\BinaryProvider.jl:1
in expression starting at stdin:1
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types C:\Julia-1.8.X\share\julia\stdlib\v1.8\Pkg\src\Types.jl:67
 [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{String}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Pkg.API C:\Julia-1.8.X\share\julia\stdlib\v1.8\Pkg\src\API.jl:1432
 [3] precompile
   @ C:\Julia-1.8.X\share\julia\stdlib\v1.8\Pkg\src\API.jl:1063 [inlined]
 [4] #precompile#225
   @ C:\Julia-1.8.X\share\julia\stdlib\v1.8\Pkg\src\API.jl:1062 [inlined]
 [5] precompile (repeats 2 times)
   @ C:\Julia-1.8.X\share\julia\stdlib\v1.8\Pkg\src\API.jl:1062 [inlined]
 [6] top-level scope
   @ REPL[4]:1

julia> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions