JuliaParallel / MPI.jl

MPI wrappers for Julia
https://juliaparallel.org/MPI.jl/
The Unlicense
373 stars 121 forks source link

MPI broken on OS X #62

Closed eschnett closed 9 years ago

eschnett commented 9 years ago

I have just updated MPI, and I now see this error when I say using MPI:

julia> using MPI
ERROR: LoadError: LoadError: UndefVarError: RTLD_LAZY not defined
 in include at /Users/eschnett/julia/lib/julia/sys.dylib
 in include_from_node1 at /Users/eschnett/julia/lib/julia/sys.dylib
 in include at /Users/eschnett/julia/lib/julia/sys.dylib
 in include_from_node1 at /Users/eschnett/julia/lib/julia/sys.dylib
 in require at /Users/eschnett/julia/lib/julia/sys.dylib
while loading /Users/eschnett/.julia/v0.4/MPI/src/../deps/src/compile-time.jl, in expression starting on line 1
while loading /Users/eschnett/.julia/v0.4/MPI/src/MPI.jl, in expression starting on line 3

Where should this symbol be defined?

andreasnoack commented 9 years ago

How recent is you Julia version and have you tried to complete delete the build directory from MPI? At som epoint I had the same error on my Mac, but I don't see it anymore.

eschnett commented 9 years ago

My Julia is 0.4 from yesterday. I did remove MPI (as well as the respective cache and lib directories), and installed it anew. I'll try again.

eschnett commented 9 years ago

The problem remains, with a fresh Julia build and a fresh MPI checkout.

eschnett commented 9 years ago

I notice that Base does not export RTLD_LAZY. I can correct the error by replacing RTLD_LAZY by Libdl.RTLD_LAZY in compile-time.jl.

eschnett commented 9 years ago

I also see warnings such as

WARNING: dlopen is deprecated, use Libdl.dlopen instead.
WARNING: dlsym is deprecated, use Libdl.dlsym instead.

that point into the same direction.

andreasnoack commented 9 years ago

Are you sure you deleted deps/src? In my deps/src/compilte-time.jl the Libdl module is already added to before dlsym.

eschnett commented 9 years ago

I deleted all of MPI, including the deps directory, and checked it out anew.

I'm on MPI version 0.2.6. Which one do you have?

eschnett commented 9 years ago

Found the problem -- an unrelated local directory called MPI. Everything is fine now.