Open swt2c opened 1 month ago
The upstream/standard version of GHC 9.6.6 contains the Opt_LlvmTBAA
data constructor for the GeneralFlag
data type, see: https://hackage.haskell.org/package/ghc-9.6.6/docs/GHC-Driver-Flags.html#v:Opt_LlvmTBAA
However, it seems that on Debian, that was patched out for their release of GHC 9.6.6: https://sources.debian.org/patches/ghc/9.6.6-2/llvm-new-pass-manager/#L39
Looking at our own code: https://github.com/clash-lang/clash-compiler/blob/3b755b900810c727833875b1a15222d69d37029e/clash-ghc/src-ghc/Clash/GHC/LoadModules.hs#L1057-L1059 It seems that we:
So my suggestion is to just also stop using it when compiling against GHC 9.6 and higher and include that change in the to-be-released version 1.8.2 of Clash.
Thanks for that hint. I looked at the Debian GHC patches, but overlooked that one. No real need to address this in clash, I can just patch around it, especially since it's a downstream issue.
I'm running into an error when trying to compile clash-ghc 1.8.1 on Debian with GHC 9.6.6:
Any ideas what might be wrong?