rprechelt / Vectorize.jl

Cross-platform vectorization of Julia code using Accelerate, VML, and Yeppp!
http://vectorizejl.readthedocs.io/en/latest/
Other
19 stars 7 forks source link

Error in building: Libdl not defined #20

Open MasonProtter opened 5 years ago

MasonProtter commented 5 years ago
(v1.1) pkg> add https://github.com/rprechelt/Vectorize.jl.git
   Cloning git-repo `https://github.com/rprechelt/Vectorize.jl.git`
  Updating git-repo `https://github.com/rprechelt/Vectorize.jl.git`
 Resolving package versions...
  Updating `~/.julia/environments/v1.1/Project.toml`
  [922354f6] + Vectorize v0.1.1 #master (https://github.com/rprechelt/Vectorize.jl.git)
  Updating `~/.julia/environments/v1.1/Manifest.toml`
  [922354f6] + Vectorize v0.1.1 #master (https://github.com/rprechelt/Vectorize.jl.git)
  Building Vectorize → `~/.julia/packages/Vectorize/iBSp0/deps/build.log`
┌ Error: Error building `Vectorize`:
│ ERROR: LoadError: LoadError: UndefVarError: Libdl not defined
│ Stacktrace:
│  [1] top-level scope at none:0
│  [2] include at ./boot.jl:326 [inlined]
│  [3] include_relative(::Module, ::String) at ./loading.jl:1038
│  [4] include(::Module, ::String) at ./sysimg.jl:29
│  [5] include(::String) at ./client.jl:403
│  [6] top-level scope at none:0
│  [7] include at ./boot.jl:326 [inlined]
│  [8] include_relative(::Module, ::String) at ./loading.jl:1038
│  [9] include(::Module, ::String) at ./sysimg.jl:29
│  [10] include(::String) at ./client.jl:403
│  [11] top-level scope at none:0
│ in expression starting at /Users/mason/.julia/packages/Vectorize/iBSp0/deps/unix.jl:4
│ in expression starting at /Users/mason/.julia/packages/Vectorize/iBSp0/deps/build.jl:25
└ @ Pkg.Operations ~/julia/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075

Looks like we need a using Libdl in the build script.

MasonProtter commented 5 years ago

I tried adding using Libdl to the top line of build.jl and now it appears that it built, but pkg claims to be stuck resolving package versions for a very long time.

(v1.1) pkg> build Vectorize
  Building SpecialFunctions → `~/.julia/packages/SpecialFunctions/fvheQ/deps/build.log`
  Building Vectorize ───────→ `~/.julia/dev/Vectorize/deps/build.log`
 Resolving package versions...

Update: I interrupted the Resolving package versions which caused julia to crash

^C^Cfatal: error thrown and no exception handler available.
InterruptException()
jl_run_once at /Users/mason/julia/src/jl_uv.c:186
process_events at ./libuv.jl:98 [inlined]
wait at ./event.jl:246
task_done_hook at ./task.jl:309
jl_apply at /Users/mason/julia/src/./julia.h:1571 [inlined]
finish_task at /Users/mason/julia/src/task.c:174
start_task at /Users/mason/julia/src/task.c:582

but once I restarted julia, things seem to work. I ran the test suite and all tests passed.