-
Notifications
You must be signed in to change notification settings - Fork 107
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
libpthread.so.0: undefined symbol: __libc_siglongjmp, version GLIBC_PRIVATE when building dependency mmark-ext #1095
Comments
@augyg I have hit a similar issue, but with "cabal build" and not nix-build. In my case clearing up the .cabal dir in my home fixed the issue. Also I ran the |
@dfordivam ahh sorry I cut out too much so the static failed I just pushed a new commit that fails on I've also tried clearing my .cabal/ folder in case that helped but it hasn't. If there is equivalent persistent state, which appears to be the problem in the cited nixpkgs issues then I'm not sure how to find it |
I am not sure why this would be happening, but the ghc during compilation of TH is using a separate libc, than the exe it generated (here ./Setup)
|
I gave another look and found the issue, the
|
I am trying to use mmark and mmark-ext in a project to add some static site features for Obelisk however I came across this issue:
dist/build/Text/MMark/Extension/Comment.o, dist/build/Text/MMark/Extension/Comment.dyn_o ) > [ 2 of 12] Compiling Text.MMark.Extension.FontAwesome ( Text/MMark/Extension/FontAwesome.hs, dist/build/Text/MMark/Extension/FontAwesome.o, dist/build/Text/MMark/Extension/FontAwesome.dyn_o ) > > <no location info>: error: > <command line>: /nix/store/q29bwjibv9gi9n86203s38n0577w09sx-glibc-2.33-117/lib/libpthread.so.0: undefined symbol: __libc_siglongjmp, version GLIBC_PRIVATE > [ 3 of 12] Compiling Text.MMark.Extension.Footnotes ( Text/MMark/Extension/Footnotes.hs, dist/build/Text/MMark/Extension/Footnotes.o, dist/build/Text/MMark/Extension/Footnotes.dyn_o ) > > <no location info>: error: > <command line>: /nix/store/q29bwjibv9gi9n86203s38n0577w09sx-glibc-2.33-117/lib/libpthread.so.0: undefined symbol: __libc_siglongjmp, version GLIBC_PRIVATE
I have a repo to reproduce here
https://github.com/augyg/reproduce-glibc
https://github.com/NixOS/nixpkgs/issues/170897
https://github.com/NixOS/nixpkgs/issues/169332#issuecomment-1106552971
This problem doesn't happen when using
ob run
but does when usingnix-build -A exe
orob hoogle
The version of mmark-ext-0.2.1.5 is typically built with ghc 9.6.5 but Ive forked and changed the cabal file+etcetera so that it should work with ghc 8.10.7 and this is included as a thunk in the repo to minimally reproduce, and this is what allowed ob run to work but alas build and hoogle still fail
I have failed to reproduce this outside of Obelisk
Channels: nixos https://nixos.org/channels/nixos-24.05
The text was updated successfully, but these errors were encountered: