rgcv / CGAL.jl

CGAL meets Julia
MIT License
24 stars 8 forks source link

Julia v1.9 support #10

Open thomaskroi1996 opened 2 weeks ago

thomaskroi1996 commented 2 weeks ago

Hello!

It seems to be the case that due to package version incompabilities, the CGAL.jl package is not available for Julia v1.9.

ERROR: LoadError: libcxxwrap_julia_jll not available on this platform
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] top-level scope
   @ ~/.julia/packages/CxxWrap/OcN1Z/src/CxxWrap.jl:18
 [3] include
   @ ./Base.jl:457 [inlined]
 [4] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
   @ Base ./loading.jl:2049
 [5] top-level scope
   @ stdin:3
in expression starting at /home/thk/.julia/packages/CxxWrap/OcN1Z/src/CxxWrap.jl:1
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile CxxWrap [1f15a43c-97ca-5a2a-ae31-89f07a497df4] to "/home/thk/.julia/compiled/v1.9/CxxWrap/jl_8rRrcg".
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:2300
  [3] compilecache
    @ ./loading.jl:2167 [inlined]
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1805
  [5] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1660
  [6] macro expansion
    @ ./loading.jl:1648 [inlined]
  [7] macro expansion
    @ ./lock.jl:267 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1611
  [9] include
    @ ./Base.jl:457 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base ./loading.jl:2049
 [11] top-level scope
    @ stdin:3
in expression starting at /home/thk/.julia/packages/CGAL/S0bEh/src/CGAL.jl:1
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile CGAL [15fcbb24-5a00-427b-98c5-e32879a22884] to "/home/thk/.julia/compiled/v1.9/CGAL/jl_xThd6m".
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:2300
  [3] compilecache
    @ ./loading.jl:2167 [inlined]
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1805
  [5] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1660
  [6] macro expansion
    @ ./loading.jl:1648 [inlined]
  [7] macro expansion
    @ ./lock.jl:267 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1611
  [9] include
    @ ./Base.jl:457 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base ./loading.jl:2049
 [11] top-level scope
    @ stdin:3

It seems to be the case, that since CxxWrap.jl is limited to version 0.11 in the CGAL Project.toml file, a version of libcxxwrap_julia_jll gets installed, which is not supported on Julia v1.9 and above.

I think i found a workaround for my needs, however it would require me to create and push to a new branch on this repo.

Thank you in advance, Thomas Kroißenbrunner

thomaskroi1996 commented 2 weeks ago

I just forked the repo and tried my workaround, however unfourtunately it failed.. Any ideas how to make the library available for Julia v1.9? Thank you!

rgcv commented 2 weeks ago

I've been rather absent and only loosely keeping up-to-date w/ both Julia and CGAL updates. At a glance, I'm sure the lib for CxxWrap needs updating, along with the compatible Julia version. Ideally, I'd like to take a look at CGAL lib updates and update that as well. Unfortunately, I'm scarce for time nowadays and haven't been able to get around to this :\

thomaskroi1996 commented 2 weeks ago

yes that is true, i have found the error to be in the CxxWrap library, and it is a different error depending on the version! thanks for the help anyway, i see what i can do!