Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

error when trying to install in Julia v1.9-dev #210

Open
fortunewalla opened this issue Jul 4, 2022 · 3 comments
Open

error when trying to install in Julia v1.9-dev #210

fortunewalla opened this issue Jul 4, 2022 · 3 comments

Comments

@fortunewalla
Copy link

This is probably expected since it is a DEV version but is there any workaround for this? Thanks.

I feel this is the main error.

Failed to precompile BinaryProvider [b99e7846-7c00-51b0-8f62-c81ae34c0232] to c:\users\fw\julia19\.julia\compiled\v1.9\BinaryProvider\jl_3E25.tmp.      
ERROR: LoadError: Unable to open libLLVM! 

Full Log:

    Info Packages marked with ⌃ and ⌅ have new versions available, but those with ⌅ cannot be upgraded. To see why use `status --outdated -m`     
    Building ModernGL  `c:\users\fw\julia19\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\344f8896e55541e30d5ccffcbf747c98ad57ca47\build.log`      
    Building GLPK ──── `c:\users\fw\julia19\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\6f4e9754ee93e2b2ff40c0b0a6b4cdffd289190d\build.log`      
    Building Ipopt ─── `c:\users\fw\julia19\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\68ba332ff458f3c1f40182016ff9b1bda276fa9e\build.log`      
    Building OpticSim  `c:\users\fw\julia19\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\525b470e4e94930a59024823b40a24756c750a89\build.log`      
Precompiling project...       
  ✗ BinaryProvider    
  233 dependencies successfully precompiled in 374 seconds. 126 already precompiled.      
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package    
      
(v1.9) pkg> import Pkg; Pkg.precompile()      
ERROR: `import` is not a recognized command. Type ? for help with available commands      
      
julia> import Pkg; Pkg.precompile()       
Precompiling project...       
  ✗ BinaryProvider    
  0 dependencies successfully precompiled in 8 seconds. 359 already precompiled.      
      
(v1.9) pkg> add BinaryProvider    
   Resolving package versions...      
    Updating `c:\users\fw\julia19\.julia\environments\v1.9\Project.toml`    
  [b99e7846] + BinaryProvider v0.5.10     
  No Changes to `c:\users\fw\julia19\.julia\environments\v1.9\Manifest.toml`    
      
julia> import Pkg; Pkg.precompile()       
Precompiling project...       
  ✗ BinaryProvider    
  0 dependencies successfully precompiled in 8 seconds. 359 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\fw\julia19\.julia\compiled\v1.9\BinaryProvider\jl_3E25.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\fw\julia19\.julia\packages\BinaryProvider\U2dKK\src\PlatformNames.jl:652      
  [3] detect_cxx11_string_abi()       
    @ BinaryProvider c:\users\fw\julia19\.julia\packages\BinaryProvider\U2dKK\src\PlatformNames.jl:655      
  [4] detect_compiler_abi()       
    @ BinaryProvider c:\users\fw\julia19\.julia\packages\BinaryProvider\U2dKK\src\PlatformNames.jl:668      
  [5] top-level scope     
    @ c:\users\fw\julia19\.julia\packages\BinaryProvider\U2dKK\src\PlatformNames.jl:685     
  [6] include(mod::Module, _path::String)     
    @ Base .\Base.jl:422      
  [7] include(x::String)      
    @ BinaryProvider c:\users\fw\julia19\.julia\packages\BinaryProvider\U2dKK\src\BinaryProvider.jl:1       
  [8] top-level scope     
    @ c:\users\fw\julia19\.julia\packages\BinaryProvider\U2dKK\src\BinaryProvider.jl:12     
  [9] include     
    @ .\Base.jl:422 [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
eps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)       
    @ Base .\loading.jl:1501      
 [11] top-level scope     
    @ stdin:1     
in expression starting at c:\users\fw\julia19\.julia\packages\BinaryProvider\U2dKK\src\PlatformNames.jl:685     
in expression starting at c:\users\fw\julia19\.julia\packages\BinaryProvider\U2dKK\src\BinaryProvider.jl:1      
in expression starting at stdin:1     
Stacktrace:       
 [1] pkgerror(msg::String)    
   @ Pkg.Types c:\users\fw\julia19\share\julia\stdlib\v1.9\Pkg\src\Types.jl:68      
 [2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{String}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.P
rs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})    
   @ Pkg.API c:\users\fw\julia19\share\julia\stdlib\v1.9\Pkg\src\API.jl:1427    
 [3] precompile       
   @ c:\users\fw\julia19\share\julia\stdlib\v1.9\Pkg\src\API.jl:1058 [inlined]      
 [4] #precompile#225      
   @ c:\users\fw\julia19\share\julia\stdlib\v1.9\Pkg\src\API.jl:1057 [inlined]      
 [5] precompile (repeats 2 times)     
   @ c:\users\fw\julia19\share\julia\stdlib\v1.9\Pkg\src\API.jl:1057 [inlined]      
 [6] top-level scope      
   @ REPL[9]:1    
      
@mackrol
Copy link

mackrol commented May 21, 2023

This still fails on 1.9.0 rendering Plots package unusable due to failed build of FFMPEG

Windows distribution of julia contains libLLVM-14jl.dll but BinaryProvider expects libLLVM.dll to be present. Fixed it temporarily by copying libLLVM-14jl.dll to libLLVM.dll.

@SimonDanisch
Copy link
Member

BinaryProvider is deprecated, and not used anymore... So if you have it in your environment, you most likely are using some very old julia package, or you added it explicitly to your environment!

@mackrol
Copy link

mackrol commented May 21, 2023

Yup, today's clean setup of julia-1.9.0 got weird with packages, After adding some essential packages ]add Plots somehow gave me old version of Plots v1.15.2. I wiped out everything clean and added Plots as the first one and now everything works fine with Plots v1.38.12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants