[9.4] ghc-pkg update race: make -j20: Error: ghc-cabal: Encountered missing or private dependencies: rts >=1.0 && <1.1
Summary
make -j48 can make a ghc build fail : I guess there is a missing dependency.
Maybe the makefiles are missing a dependency for ghc-prim on rts?
Steps to reproduce
Build ghc-9.4 (reproduced with both 9.4.1 and 9.4.2) with make -j48
(probably on a builder with 48+ cores).
+ make -j48
:
:
"inplace/bin/ghc-cabal" configure libraries/ghc-prim dist-install --with-ghc="/builddir/build/BUILD/ghc-9.4.2/inplace/bin/ghc-stage1" --with-ghc-pkg="/builddir/build/BUILD/ghc-9.4.2/inplace/bin/ghc-pkg" --disable-library-for-ghci --enable-library-vanilla --enable-library-for-ghci --disable-library-profiling --enable-shared --configure-option=CFLAGS="-Wall -Werror=unused-but-set-variable -Wno-error=inline -iquote /builddir/build/BUILD/ghc-9.4.2/libraries/ghc-prim" --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --gcc-options="-Wall -Werror=unused-but-set-variable -Wno-error=inline -iquote /builddir/build/BUILD/ghc-9.4.2/libraries/ghc-prim " --configure-option=--with-gmp --configure-option=--host=x86_64-unknown-linux --with-gcc="/usr/bin/gcc" --with-ld="ld.gold" --with-ar="/usr/bin/ar" --with-alex="/usr/bin/alex" --with-happy="/usr/bin/happy"
Configuring ghc-prim-0.9.0...
Error: ghc-cabal: Encountered missing or private dependencies:
rts >=1.0 && <1.1
make[1]: *** [libraries/ghc-prim/ghc.mk:4: libraries/ghc-prim/dist-install/package-data.mk] Error 1
make: *** [Makefile:126: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.u8KZqC (%build)
A number of Fedora x86_64 buildservers have 48 cpu cores.
Example failure: https://koji.fedoraproject.org/koji/taskinfo?taskID=91162823
I hit this a couple of times now, so finally reporting - but I can workaround by limiting the max cpus used.
Expected behavior
No build error
Environment
- GHC version used: boot from 9.0.2
Optional:
- Operating System: Fedora Linux
- System Architecture: x86_64