Skip to content

libsuitesparseconfig.so.7: undefined symbol: SuiteSparse_config #332

@Heptazhou

Description

@Heptazhou

Hi,

with julia v1.8.5 and suitesparse v7.0.0 (on Archlinux),
everytime julia runs, it gives

% julia
┌ Error: Error during initialization of module CHOLMOD
│   exception =
│    could not load symbol "SuiteSparse_config":
│    /usr/lib/libsuitesparseconfig.so.7: undefined symbol: SuiteSparse_config
└ @ SuiteSparse.CHOLMOD /build/julia/src/julia-1.8.5/usr/share/julia/stdlib/v1.8/SuiteSparse/src/cholmod.jl:230

which (I believe) is raised by

# Register gc tracked allocator if CHOLMOD is new enough
if current_version >= v"3.0.0"
cnfg = cglobal((:SuiteSparse_config, :libsuitesparseconfig), Ptr{Cvoid})
unsafe_store!(cnfg, cglobal(:jl_malloc, Ptr{Cvoid}), 1)
unsafe_store!(cnfg, cglobal(:jl_calloc, Ptr{Cvoid}), 2)
unsafe_store!(cnfg, cglobal(:jl_realloc, Ptr{Cvoid}), 3)
unsafe_store!(cnfg, cglobal(:jl_free, Ptr{Cvoid}), 4)
end
catch ex
@error "Error during initialization of module CHOLMOD" exception=ex,catch_backtrace()
end

and I think that the reason is just suitesparse v7 removed the visibility of SuiteSparse_config (https://github.com/DrTimothyAldenDavis/SuiteSparse/releases/tag/v7.0.0).

I wonder will there be a fix for this?

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