Cxx.jl icon indicating copy to clipboard operation
Cxx.jl copied to clipboard

ReadOnlyMemoryError on precompile

Open PythonNut opened this issue 7 years ago • 2 comments

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

PythonNut avatar Feb 17 '18 19:02 PythonNut

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.

rafaqz avatar Feb 28 '18 06:02 rafaqz

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

bjnix avatar Jun 28 '18 14:06 bjnix