JuliaInterop / Cxx.jl

The Julia C++ Interface
Other
760 stars 107 forks source link

ReadOnlyMemoryError on precompile #372

Open PythonNut opened 6 years ago

PythonNut commented 6 years ago

This has happened to me on two systems:

I can build Cxx fine, but the following happens when I try to use it:

julia> using Cxx
INFO: Precompiling module Cxx.
ERROR: LoadError: LoadError: ReadOnlyMemoryError()
Stacktrace:
 [1] dlopen(::String, ::UInt32) at ./libdl.jl:97
 [2] init_libcxxffi() at /home/pythonnut/.julia/v0.6/Cxx/src/initialization.jl:20
 [3] include_from_node1(::String) at ./loading.jl:576
 [4] anonymous at ./<missing>:2
while loading /home/pythonnut/.julia/v0.6/Cxx/src/initialization.jl, in expression starting on line 22
while loading /home/pythonnut/.julia/v0.6/Cxx/src/Cxx.jl, in expression starting on line 163
ERROR: Failed to precompile Cxx to /home/pythonnut/.julia/lib/v0.6/Cxx.ji.
Stacktrace:
 [1] macro expansion at ./REPL.jl:97 [inlined]
 [2] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73
rafaqz commented 6 years ago

Same here on Arch linux, julia 0.6.2. The problem seems to be loading libcxxffi.so

Arch linux may have upgraded some required dependency before any other distro has, I've had a similar problem recently with fortran binaries.

bjnix commented 6 years ago

same as rafaqz here (archlinux/julia 6.2). Anyone found a fix yet?