Cxx.jl
Cxx.jl copied to clipboard
ReadOnlyMemoryError on precompile
This has happened to me on two systems:
- Native Arch Linux/Julia 0.6.2
- Windows 10 WSL Arch Linux/Julia 0.6.2
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
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.
same as rafaqz here (archlinux/julia 6.2). Anyone found a fix yet?