Undefined reference to exchangePtr from GHC.Event.Internal on Windows
When building GHC with profiling enabled on Windows, I get the following error:
===> Command failed with error code: 1
C://Haskell//ghc//bench//_build//mingw//bin/ld.exe: C:/Haskell/ghc/bench/_build/stage1/lib\x86_64-windows-ghc-9.3.20220315\base-4.16.0.0/libHSbase-4.16.0.0_p.a(Windows.p_o):fake:(.text+0x34dee): undefined reference to `base_GHCziEventziInternal_exchangePtr_closure'
C://Haskell//ghc//bench//_build//mingw//bin/ld.exe: C:/Haskell/ghc/bench/_build/stage1/lib\x86_64-windows-ghc-9.3.20220315\base-4.16.0.0/libHSbase-4.16.0.0_p.a(Windows.p_o):fake:(.data+0xc940): undefined reference to `base_GHCziEventziInternal_exchangePtr_closure'
collect2.exe: error: ld returned 1 exit status
I think this is because GHC.Event.Internal
is not listed in base.cabal
on Windows; !7794 (closed) fixes that.
Edited by sheaf