Skip to content

7.6.3 failed to build with make -j12

This looks to be a missing dependency in the build system:

  HC [stage 1] compiler/stage2/build/TcSplice.o-boot
  HC [stage 1] compiler/stage2/build/CodeOutput.o
  HC [stage 1] compiler/stage2/build/RnHsDoc.o
  HC [stage 1] compiler/stage2/build/RnExpr.o-boot
  HC [stage 1] compiler/stage2/build/TcExpr.o-boot
  HC [stage 1] compiler/stage2/build/TcUnify.o-boot
  HC [stage 1] compiler/stage2/build/TcMatches.o-boot
  HC [stage 1] compiler/stage2/build/FloatIn.o
  HC [stage 1] libraries/bin-package-db/dist-install/build/libHSbin-package-db-0.0.0.0-ghc7.6.3.so
Warning: -rtsopts and -with-rtsopts have no effect with -shared.
    Call hs_init_ghc() from your main() function to set these options.
  HC [stage 1] libraries/Cabal/Cabal/dist-install/build/Distribution/Simple/Haddock.p_o
  HC [stage 1] compiler/stage2/build/Rules.p_o
  HC [stage 1] compiler/stage2/build/HsExpr.p_o
/usr/bin/ld: cannot find -lHSbin-package-db-0.0.0.0-ghc7.6.3
collect2: ld returned 1 exit status
make[1]: *** [compiler/stage2/build/libHSghc-7.6.3-ghc7.6.3.so] Error 1
make[1]: *** Waiting for unfinished jobs....
"rm" -f libraries/haskeline/dist-install/build/libHShaskeline-0.7.0.2.a.contents
"rm" -f libraries/haskeline/dist-install/build/libHShaskeline-0.7.0.2_p.a.contents
"rm" -f libraries/Cabal/Cabal/dist-install/build/libHSCabal-1.16.0.a.contents
make: *** [all] Error 2

Re-running make without a -j option after this failure completes successfully.

Trac metadata
Trac field Value
Version 7.6.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information