Build fails on FreeBSD 13 powerpc64
Summary
Linking utils/ghc-cabal/dist/build/tmp/ghc-cabal ...
ld: error: /usr/local/lib/ghc-8.6.5/template-haskell-2.14.0.0/libHStemplate-haskell-2.14.0.0.a(Syntax.o): SHT_SYMTAB_SHNDX has 55528 entries, but the symbol table associated has 48964
cc: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
utils/genprimopcode/ghc.mk:19: utils/genprimopcode/dist/package-data.mk: No such file or directory
gmake[3]: *** [utils/ghc-cabal/ghc.mk:58: utils/ghc-cabal/dist/build/tmp/ghc-cabal] Error 1
gmake[2]: *** [Makefile:124: all] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/ghc-8.10.5/work/ghc-8.10.5'
===> Compilation failed unexpectedly.
Steps to reproduce
Using FreeBSD Ports. CD /usr/ports/lang/ghc Type: make
Expected behavior
Successful build
Environment
- GHC version used: 8.6.5
Optional:
- Operating System: FreeBSD 13.0
- System Architecture: Power9 (PowerPC64 Big Endian)