[GHC] #15004: Building HEAD fails with -j3 because of unrecorded dependencies.
#15004: Building HEAD fails with -j3 because of unrecorded dependencies. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Building GHC Unknown/Multiple | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- There seem to be some missing dependencies. {{{ "inplace/bin/ghc-stage1" -hisuf hi -osuf o -hcsuf hc -static -O -H64m -Wall -this-unit-id ghc-prim-0.5.2.0 -hide-all-packages -i -ilibraries/ghc-prim/. -ilibraries/ghc-prim/dist-install/build -Ilibraries /ghc-prim/dist-install/build -ilibraries/ghc-prim/dist- install/build/./autogen -Ilibraries/ghc-prim/dist-install/build/./autogen -Ilibraries/ghc-prim/. -optP-include -optPlibraries/ghc-prim/dist- install/build/./autogen/cabal_macros.h -package-id rts -this-unit-id ghc- prim -XHaskell2010 -O2 -no-user-package-db -rtsopts -Wno-trustworthy- safe -Wno-deprecated-flags -Wnoncanonical-monad-instances -odir libraries/ghc-prim/dist-install/build -hidir libraries/ghc-prim/dist- install/build -stubdir libraries/ghc-prim/dist-install/build -dynamic- too -c libraries/ghc-prim/./GHC/Magic.hs -o libraries/ghc-prim/dist- install/build/GHC/Magic.o -dyno libraries/ghc-prim/dist- install/build/GHC/Magic.dyn_o libraries/base/GHC/IO.hs-boot:9:12: error: • Failed to load interface for ‘GHC.Integer.Type’ There are files missing in the ‘integer-gmp-1.0.1.0’ package, try running 'ghc-pkg check'. Use -v to see a list of the files searched for. • In the type signature: mplusIO :: IO a -> IO a -> IO a | 9 | mplusIO :: IO a -> IO a -> IO a | ^^^^^^^^^^^^^^^^^^^^ }}} It seems Magic.hs depends in integer-gmp. Which happened to be not yet built so it fails. I'm not sure which import it is that is missing but recording it here. Commit for head is 72b5f649ede82ab3bb429aa72ee1c572f415b0eb Building single threaded for a while and then continuing the build with -j3 seems to be a valid workaround. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15004> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15004: Building HEAD fails with -j3 because of unrecorded dependencies. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4560 Wiki Page: | -------------------------------------+------------------------------------- Changes (by AndreasK): * differential: => Phab:D4560 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15004#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15004: Building HEAD fails with -j3 because of unrecorded dependencies. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4560 Wiki Page: | -------------------------------------+------------------------------------- Comment (by sgraf): Relevant `ghc-devs` thread: https://www.mail-archive.com/ghc- devs@haskell.org/msg15305.html -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15004#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15004: Building HEAD fails with -j3 because of unrecorded dependencies. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4560 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ryan Scott <ryan.gl.scott@…>): In [changeset:"54acfbbf64f5fcb108836412e9be0cfabf0d7801/ghc" 54acfbb/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="54acfbbf64f5fcb108836412e9be0cfabf0d7801" base: Add dependency on GHC.Integer in a few boot files Summary: The typechecker started trying to pull in GHC.Integer.Type's interface file due to the change made in d8d4266bf73790f65b223ec16f645763eaed8be3. It's unclear why the patch in question changed this behavior, but these typechecker- induced dependencies are known to be a bit fragile and adding these imports ensures that the build order is correct. Test Plan: Validate Reviewers: goldfire, hvr Subscribers: thomie, carter GHC Trac Issues: #15004 Differential Revision: https://phabricator.haskell.org/D4560 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15004#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15004: Building HEAD fails with -j3 because of unrecorded dependencies. -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Build System | Version: Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Building GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4560 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => closed * resolution: => fixed Comment: I believe this should be fixed now. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15004#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC