GHC 9.0.2 / TemplateHaskell: weird linker error mentioning libHS...-ghc9.0.2.so: base_GHCziRead_list3
In separate repos (hackage-server
and Agda
) I am seeing mysterious CI failures for GHC 9.0.2. The final line is in both cases:
libHS...-ghc9.0.2.so: undefined symbol: base_GHCziRead_list3_info
Both involve TemplateHaskell
, but the missing symbol is reported for different libraries: On hackage-server
for primitive-0.7.3.0, and on
Agdafor
zlib-0.6.2.3`.
Unfortunately, I do not have a reproducer at this point. CI uses the common haskell/actions/setup
GHA. I have only observed the problem for GHC 9.0.2.
hackage-server
https://github.com/haskell/hackage-server/runs/6046647167?check_suite_focus=true#step:8:17
Building library 'lib-server' for hackage-server-0.5.1..
[ 16 of 177] Compiling Distribution.Server.Framework.AuthTypes ( src/Distribution/Server/Framework/AuthTypes.hs, /home/runner/work/hackage-server/hackage-server/dist-newstyle/build/x86_64-linux/ghc-9.0.2/hackage-server-0.5.1/l/lib-server/noopt/build/lib-server/Distribution/Server/Framework/AuthTypes.o, /home/runner/work/hackage-server/hackage-server/dist-newstyle/build/x86_64-linux/ghc-9.0.2/hackage-server-0.5.1/l/lib-server/noopt/build/lib-server/Distribution/Server/Framework/AuthTypes.dyn_o )
<command line>: /home/runner/.cabal/store/ghc-9.0.2/primitive-0.7.3.0-3c5fbf69f38da257385c73a8d05d0f992ae3e633b8624c52bf91afdaa10bae06/lib/libHSprimitive-0.7.3.0-3c5fbf69f38da257385c73a8d05d0f992ae3e633b8624c52bf91afdaa10bae06-ghc9.0.2.so: undefined symbol: base_GHCziRead_list3_info
Agda
using cabal
https://github.com/agda/agda/runs/6134206855?check_suite_focus=true#step:11:192
[169 of 406] Compiling Agda.VersionCommit ( src/full/Agda/VersionCommit.hs, /home/runner/work/agda/agda/dist-newstyle/build/x86_64-linux/ghc-9.0.2/Agda-2.6.3/noopt/build/Agda/VersionCommit.o, /home/runner/work/agda/agda/dist-newstyle/build/x86_64-linux/ghc-9.0.2/Agda-2.6.3/noopt/build/Agda/VersionCommit.dyn_o )
<command line>: /home/runner/.cabal/store/ghc-9.0.2/zlib-0.6.2.3-e47bec0fb1456dc9ee6d2191d33d2289d9704c35a18f6d0305e9bc6901f93eb1/lib/libHSzlib-0.6.2.3-e47bec0fb1456dc9ee6d2191d33d2289d9704c35a18f6d0305e9bc6901f93eb1-ghc9.0.2.so: undefined symbol: base_GHCziRead_list3_info
Agda
using stack
https://github.com/agda/agda/runs/6134206324?check_suite_focus=true#step:13:290
Agda > <command line>: /home/runner/.stack/snapshots/x86_64-linux/90e51058bd3a00edc778a58dc70a444da1258f0563873ad9b12e6919e3d84c46/9.0.2/lib/x86_64-linux-ghc-9.0.2/libHSzlib-0.6.2.3-8JCCDMtODtG1PZ9QauOCHd-ghc9.0.2.so: undefined symbol: base_GHCziRead_list3_info