ghc-9.0.0.20200925/compiler/stage1/build/libHSghc-9.0.0.20200925.a(Plugins.o):function ghc_GHCziDriverziPlugins_defaultPluginzux_info: error: undefined reference to 'ghc_GHCziCoreziOptziMonad_zdfxMonadCoreM_closure'
Summary
ghc-9.0.1-alpha1 failed to build on Fedora 33.
Steps to reproduce
Building https://src.fedoraproject.org/rpms/ghc/blob/9.0/f/ghc.spec gives:
"/usr/bin/ghc" -o ghc/stage1/build/tmp/ghc-stage1 -hisuf hi -osuf o -hcsuf hc -static -H32m -O -Wall -package-db libraries/bootstrapping.conf -hide-all-packages -i -ighc/. -ighc/stage1/build -Ighc/stage1/build -ighc/stage1/build/ghc/autogen -Ighc/stage1/build/ghc/autogen -optP-include -optPghc/stage1/build/ghc/autogen/cabal_macros.h -package-id array-0.5.4.0 -package-id base-4.13.0.0 -package-id bytestring-0.10.10.1 -package-id containers-0.6.2.1 -package-id directory-1.3.6.0 -package-id filepath-1.4.2.1 -package-id ghc-9.0.0.20200925 -package-id ghc-boot-9.0.0.20200925 -package-id process-1.6.9.0 -package-id transformers-0.5.6.2 -package-id unix-2.7.2.2 -Wall -Wnoncanonical-monad-instances -Wnoncanonical-monoid-instances -threaded -XHaskell2010 -XNoImplicitPrelude -XScopedTypeVariables -XBangPatterns -Wcpp-undef -no-hs-main -threaded -no-user-package-db -rtsopts -outputdir ghc/stage1/build -static -H32m -O -Wall -package-db libraries/bootstrapping.conf -hide-all-packages -i -ighc/. -ighc/stage1/build -Ighc/stage1/build -ighc/stage1/build/ghc/autogen -Ighc/stage1/build/ghc/autogen -optP-include -optPghc/stage1/build/ghc/autogen/cabal_macros.h -package-id array-0.5.4.0 -package-id base-4.13.0.0 -package-id bytestring-0.10.10.1 -package-id containers-0.6.2.1 -package-id directory-1.3.6.0 -package-id filepath-1.4.2.1 -package-id ghc-9.0.0.20200925 -package-id ghc-boot-9.0.0.20200925 -package-id process-1.6.9.0 -package-id transformers-0.5.6.2 -package-id unix-2.7.2.2 -Wall -Wnoncanonical-monad-instances -Wnoncanonical-monoid-instances -threaded -XHaskell2010 -XNoImplicitPrelude -XScopedTypeVariables -XBangPatterns -Wcpp-undef -no-hs-main -threaded -no-user-package-db -rtsopts ghc/stage1/build/Main.o ghc/stage1/build/hschooks.o
Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main.
Call hs_init_ghc() from your main() function to set these options.
/var/home/petersen/fedora/haskell/ghc-new/ghc-9.0.0.20200925/compiler/stage1/build/libHSghc-9.0.0.20200925.a(Plugins.o)(.text+0x2464): error: undefined reference to 'ghc_GHCziCoreziOptziMonad_zdfxMonadCoreM_closure'
/var/home/petersen/fedora/haskell/ghc-new/ghc-9.0.0.20200925/compiler/stage1/build/libHSghc-9.0.0.20200925.a(Plugins.o):function ghc_GHCziDriverziPlugins_defaultPluginzux_info: error: undefined reference to 'ghc_GHCziCoreziOptziMonad_zdfxMonadCoreM_closure'
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
make[1]: *** [ghc/ghc.mk:124: ghc/stage1/build/tmp/ghc-stage1] Error 1
make: *** [Makefile:126: all] Error 2
Expected behavior
Build ghc package
Environment
- GHC version used: ghc-8.8.4
Optional:
- Operating System: Fedora 33
- System Architecture: x86_64