#7871 closed bug (fixed)

7.6.3 failed to build with make -j12

Reported by: nwf Owned by:
Priority: normal Milestone:
Component: Build System Version: 7.6.3
Keywords: Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Building GHC failed Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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.

Change History (1)

comment:1 Changed 11 months ago by igloo

  • Difficulty set to Unknown
  • Resolution set to fixed
  • Status changed from new to closed

Thanks for the report. Happily, it looks like this is already fixed in HEAD:

$ rm libraries/bin-package-db/dist-install/build/libHSbin-package-db-0.0.0.0-ghc7.6.3.20130421.so
$ make compiler/stage2/build/libHSghc-7.6.3.20130421-ghc7.6.3.20130421.so
===--- building phase 0
make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
make[1]: Nothing to be done for `phase_0_builds'.
===--- building phase 1
make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds
make[1]: Nothing to be done for `phase_1_builds'.
===--- building final phase
make -r --no-print-directory -f ghc.mk phase=final compiler/stage2/build/libHSghc-7.6.3.20130421-ghc7.6.3.20130421.so
$
$ rm libraries/bin-package-db/dist-install/build/libHSbin-package-db-0.0.0.0-ghc7.7.20130510.so
$ make compiler/stage2/build/libHSghc-7.7.20130510-ghc7.7.20130510.so
[...]
"inplace/bin/ghc-stage1" [...] -o libraries/bin-package-db/dist-install/build/libHSbin-package-db-0.0.0.0-ghc7.7.20130510.so
[...]
Note: See TracTickets for help on using tickets.