Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Error in building: Libdl not defined #20

Open
MasonProtter opened this issue Apr 12, 2019 · 1 comment
Open

Error in building: Libdl not defined #20

MasonProtter opened this issue Apr 12, 2019 · 1 comment

Comments

@MasonProtter
Copy link
Contributor

MasonProtter commented Apr 12, 2019

(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
Copy link
Contributor Author

MasonProtter commented Apr 12, 2019

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.

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

1 participant