Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make libstdc++ loading more reliable #205

Closed
gbaraldi opened this issue Sep 26, 2022 · 0 comments · Fixed by JuliaLang/julia#46976
Closed

Make libstdc++ loading more reliable #205

gbaraldi opened this issue Sep 26, 2022 · 0 comments · Fixed by JuliaLang/julia#46976

Comments

@gbaraldi
Copy link
Member

We currently load the libstdc++ we ship from rpath, which is usually fine. It isn't fine when the system's libstdc++ is newer than ours, and a system lib needs the newer symbols, which leads to errors.
To fix that there needs to be some way that checks the systems libstdc++ and ,if it's newer than ours, load it instead.

Some ideas were put forward in the ci-dev call.

  • remove it from the rpath and dlopen it. Check for some GLIBCXX version symbol and if it's there then load it. Otherwise dlclose it and load ours as usual (Probably the best)
  • Do the same thing but on an external process if dlclose causes issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant