JuliaMath / IntelVectorMath.jl

Julia bindings for the Intel Vector Math Library
Other
73 stars 18 forks source link

Precompilation fails #27

Closed astrozot closed 4 years ago

astrozot commented 4 years ago

I just tried to install VML on a Mac laptop. The installation succeeds, but when I try to use the package the precompilation fails:

julia> using VML
[ Info: Precompiling VML [c8ce9da6-5d36-5c03-b118-5a70151be7bc]
ERROR: LoadError: could not open file /Users/mlombard/.julia/packages/VML/KUbuJ/deps/deps.jl
Stacktrace:
 [1] include_relative(::Module, ::String) at /Applications/Julia-1.2.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 [2] include at ./Base.jl:31 [inlined]
 [3] include(::String) at /Users/mlombard/.julia/packages/VML/KUbuJ/src/VML.jl:3
 [4] top-level scope at /Users/mlombard/.julia/packages/VML/KUbuJ/src/VML.jl:8
 [5] include_relative(::Module, ::String) at /Applications/Julia-1.2.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 [6] include(::Module, ::String) at /Applications/Julia-1.2.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 [7] top-level scope at none:2
 [8] eval at ./boot.jl:330 [inlined]
 [9] eval(::Expr) at ./client.jl:432
 [10] top-level scope at ./none:3
in expression starting at /Users/mlombard/.julia/packages/VML/KUbuJ/src/VML.jl:8
ERROR: Failed to precompile VML [c8ce9da6-5d36-5c03-b118-5a70151be7bc] to /Users/mlombard/.julia/compiled/v1.2/VML/WlHoi.ji.
Stacktrace:
 [1] error(::String) at /Applications/Julia-1.2.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 [2] compilecache(::Base.PkgId, ::String) at /Applications/Julia-1.2.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 [3] _require(::Base.PkgId) at /Applications/Julia-1.2.app/Contents/Resources/julia/lib/julia/sys.dylib:?
 [4] require(::Base.PkgId) at /Applications/Julia-1.2.app/Contents/Resources/julia/lib/julia/sys.dylib:? (repeats 2 times)

Is this a problem linked to my own installation or a more general one? The problem is present in both Julia v. 1.2.0 and 1.3.0.

Crown421 commented 4 years ago

Can you try running

julia> ] build VML

explicitly and see if that fixes it? If not, can you look into deps/build.log and post the content here?

Crown421 commented 4 years ago

Is this still current?

astrozot commented 4 years ago

I tried just yesterday, but I am having troubles since the beginning. First, the installation notes on the main page, namely

julia> ] add https://github.com/JuliaMath/IntelVectorMath.jl

do not seem to be accurate (the associated page has a 404 error). If I install using

 julia> ] add https://github.com/JuliaMath/VML.jl

I then face a different problem:

  Updating git-repo `https://github.com/JuliaMath/VML.jl`
  Updating git-repo `https://github.com/JuliaMath/VML.jl`
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package SpecialFunctions [276daf66]:
 SpecialFunctions [276daf66] log:
 ├─possible versions are: [0.7.0-0.7.2, 0.8.0, 0.9.0] or uninstalled
 ├─restricted to versions 0.8 by IntelVectorMath [c8ce9da6], leaving only versions 0.8.0
 │ └─IntelVectorMath [c8ce9da6] log:
 │   ├─possible versions are: 0.2.0 or uninstalled
 │   └─IntelVectorMath [c8ce9da6] is fixed to version 0.2.0
 └─restricted to versions 0.9.0 by an explicit requirement — no versions left

So I am basically stuck...

Crown421 commented 4 years ago

I apologize for the installation instructions, we are currently renaming the package, and finishing all aspects the parts are taking longer than expected.

The versioning is a surprise, it appears I don't fully understand the documentation of the Project.toml. I have just made a commit, would you mind trying it?

astrozot commented 4 years ago

Great, thank you! I just tried and everything works now!

Crown421 commented 4 years ago

Excellent, happy to help.

Crown421 commented 4 years ago

To follow up, the package rename and registration is done. You can now ] rm VML (maybe you also need ] rm IntelVectorMath, and install the package from registry ] add IntelVectorMath