oscar-system / GAP_pkg

Julia wrapper packages for GAP packages
MIT License
0 stars 0 forks source link

Deal with libstdc++ issues in ferret and other C++ using libs #3

Open fingolfin opened 3 years ago

fingolfin commented 3 years ago

Right now I am getting this:

julia> using GAP_pkg_ferret

julia> GAP_pkg_ferret.load()
#W dlopen() error: dlopen(/Users/mhorn/.julia/artifacts/49b1930968bd5aa85f37a4c6770a3a524bba6db7/lib/gap/ferret.so, 5): Symbol not found: __ZdlPvm
  Referenced from: /Users/mhorn/.julia/artifacts/49b1930968bd5aa85f37a4c6770a3a524bba6db7/lib/gap/ferret.so
  Expected in: /usr/lib/libstdc++.6.dylib
 in /Users/mhorn/.julia/artifacts/49b1930968bd5aa85f37a4c6770a3a524bba6db7/lib/gap/ferret.so
ERROR: Error thrown by GAP: Error, module '/Users/mhorn/.julia/artifacts/49b1930968bd5aa85f37a4c6770a3a524bba6db7/lib/gap/ferret.so' not found in
  LOAD_DYN( filename ) at /Users/mhorn/.julia/artifacts/1ae5d8f1898d9dcbe8dc3d93f56369c864a8e717/share/gap/lib/files.gd:578 called from
<function "LoadDynamicModule">( <arguments> )
 called from read-eval loop at /Users/mhorn/.julia/gaproot/v4.12/pkg/ferret-1.0.6/read.g:15

Need to figure out how to resolve this, and how to adjust generate_wrapper.jl so that it inserts it into any wrapper package like GAP_pkg_ferret that needs it

fingolfin commented 1 year ago

I hope this is resolved in Julia 1.9 (or was it 1.10?) which changes how Julia links to the standard C++ library