See this GHC ticket - https://gitlab.haskell.org/ghc/ghc/-/issues/21787
If you have a statically linked GHC and use text build with -simdutf8 in a template-haskell splice then you get the error:
ghc: /home/zubin/.ghcup/ghc/9.4.1/lib/ghc-9.4.0.20220623/lib/x86_64-linux-ghc-9.4.0.20220623/text-2.0/libHStext-2.0.a: unknown symbol `__popcountdi2'
This happens with at least GHC-9.4 and GHC-9.2 so I imagine every GHC release is affected by this change (including ones we can't patch). Therefore it seems the most prudent to remove the usage of the code which generates this instruction which GHC can't understand. Otherwise anyone enforcing text-2.0 will create a package which doesn't work on static builds.
See this GHC ticket - https://gitlab.haskell.org/ghc/ghc/-/issues/21787
If you have a statically linked GHC and use text build with
-simdutf8in a template-haskell splice then you get the error:This happens with at least GHC-9.4 and GHC-9.2 so I imagine every GHC release is affected by this change (including ones we can't patch). Therefore it seems the most prudent to remove the usage of the code which generates this instruction which GHC can't understand. Otherwise anyone enforcing text-2.0 will create a package which doesn't work on static builds.