Description
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 using nix-build -A exe
or ob 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