Skip to content

juliacall fails in julia 1.11 with undefined symbol: jl_stdout_obj #234

@schlichtanders

Description

@schlichtanders

Hi there, I just tried out julia 1.11 because it has support for caching compile files.
Unfortunately R-JuliaCall fails with some problems. Trying to replicate it in a mwe, I found this incompatbility.

julia> import Pkg; Pkg.add("CondaPkg")

julia> using CondaPkg

julia> CondaPkg.add("r"); CondaPkg.add("r-juliacall")

julia> envdir = CondaPkg.envdir()
"/root/.julia/environments/v1.11/.CondaPkg/env"

julia> localpreferences = """
       [RCall]
       Rhome = "$envdir/lib/R"
       libR = "$envdir/lib/R/lib/libR.so"
       """

julia> write(joinpath(dirname(Base.active_project()), "LocalPreferences.toml"), localpreferences)

julia> import Pkg; Pkg.add("RCall")

julia> using RCall

julia> reval("""
       library(JuliaCall)
       julia_setup(installJulia=TRUE)
       """)
┌ Warning: CHOLMOD version incompatibility
│ 
│ Julia was compiled with CHOLMOD version 4.0.4. It is
│ currently linked with version 5.2.1.
│ This might cause Julia to terminate when working with
│ sparse matrix factorizations, e.g. solving systems of
│ equations with \.
│ 
│ It is recommended that you use Julia with the same major
│ version of CHOLMOD as the one used during the build, or
│ download the generic binaries from www.julialang.org,
│ which ship with the correct versions of all dependencies.
└ @ SparseArrays.CHOLMOD ~/.julia/environments/v1.11/.CondaPkg/env/share/julia/stdlib/v1.10/SparseArrays/src/solvers/cholmod.jl:206
Segmentation fault (core dumped)

restarting julia after this segmenation fault and running the below, gives another error:

julia> using RCall

julia> reval("""
       library(JuliaCall)
       julia_setup(installJulia=TRUE)
       """)
ERROR: REvalError: Julia version 1.11.0-rc3 at location /usr/local/julia/bin will be used.
Error: jl_stdout_obj - /usr/local/julia/bin/../lib/libjulia.so.1.11: undefined symbol: jl_stdout_obj

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions