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

Some JLLs don't work on Musl systems - initial-exec TLS resolves to dynamic definition #1418

Closed
jpsamaroo opened this issue Aug 6, 2020 · 2 comments

Comments

@jpsamaroo
Copy link
Contributor

On a Linux x86_64 musl system (Alpine Linux), I get the following error when loading GLFW_jll (version 3.3.2+0):

ERROR: LoadError: LoadError: InitError: could not load library "/home/jpsamaroo/.julia/artifacts/6ffe94a97b8fde49babd75ba7331d5440b3c1a7a/lib/libGLESv1_CM.so"
Error relocating /home/jpsamaroo/.julia/artifacts/6ffe94a97b8fde49babd75ba7331d5440b3c1a7a/lib/libGLESv1_CM.so: _glapi_tls_Current: initial-exec TLS resolves to dynamic definition in /home/jpsamaroo/.julia/artifacts/6ffe94a97b8fde49babd75ba7331d5440b3c1a7a/lib/libGLdispatch.so.0

I asked on Slack, and was pointed to this issue, but I do not believe this is the same issue. @vtjnash has also indicated that this behavior is not correct, saying on Slack:

If libGL is explicitly asking the compiler to generate bad code, like libgomp does (instead of letting the compiler decide to emit the code just when valid), yeah, that’d be a bug in the library

It would be great if either the compiler flags could be tuned, or the offending packages patched, to workaround this error.

@giordano @staticfloat

@giordano
Copy link
Member

giordano commented Nov 3, 2020

@jpsamaroo fixed by #1720?

@jpsamaroo
Copy link
Contributor Author

Yep! I just had to pull down master of a few JLLs and tweak Rmath.jl, and then Distributions.jl loads fine!

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

No branches or pull requests

2 participants