Skip to content

Linker error when building "containers" (the library) using GHC HEAD

Steps to reproduce:

  • Build GHC with no build.mk, using make BUILD_PROF_LIBS=NO -j
  • Build containers using regex-base fixed for GHC head and head.hackage, using cabal new-build --with-ghc=ghc-stage2 --allow-newer containers-tests -j1

Output:

...
Preprocessing benchmark 'sequence-benchmarks' for containers-tests-0..
Building benchmark 'sequence-benchmarks' for containers-tests-0..
Linking /home/omer/haskell/containers/dist-newstyle/build/x86_64-linux/ghc-8.9.0.20190924/containers-tests-0/b/sequence-benchmarks/build/sequence-benchmarks/sequence-benchmarks ...
ld.lld: error: undefined symbol: base_GHCziList_zdwsplitAtzq_info
>>> referenced by Random.o:(.text+0x223F4) in archive /home/omer/.cabal/store/ghc-8.9.0.20190924/random-1.1-4a13215e604bc9d91665c293ffa635ff1b5ee66a4ea3b43cc3617b53fdcd1ac9/lib/libHSrandom-1.1-4a13215e604bc9d91665c293ffa635ff1b5ee66a4ea3b43cc3617b53fdcd1ac9.a
collect2: error: ld returned 1 exit status
`cc' failed in phase `Linker'. (Exit code: 1)
cabal: Failed to build bench:sequence-benchmarks from containers-tests-0.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information