[GHC] #10973: Building git HEAD with a singe make job fails due to dependency problem
#10973: Building git HEAD with a singe make job fails due to dependency problem -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 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: -------------------------------------+------------------------------------- If I clone git HEAD and do: {{{ perl boot && ./configure && make }}} The build fails with: {{{ /usr/bin/ld: cannot find -lHSghc-boot-0.0.0.0 collect2: error: ld returned 1 exit status }}} and it keeps failing if I run `make` without any `-j` option. Building with `make -j<N>` where `N` is 2 or more is fine. Looks like some sort of dependency problem. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10973> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10973: Building git HEAD with a singe make job fails due to dependency problem -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 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): Wiki Page: | -------------------------------------+------------------------------------- Description changed by erikd: Old description:
If I clone git HEAD and do:
{{{ perl boot && ./configure && make }}}
The build fails with:
{{{ /usr/bin/ld: cannot find -lHSghc-boot-0.0.0.0 collect2: error: ld returned 1 exit status }}}
and it keeps failing if I run `make` without any `-j` option.
Building with `make -j<N>` where `N` is 2 or more is fine.
Looks like some sort of dependency problem.
New description: If I clone git HEAD and do: {{{ perl boot && ./configure && make }}} The build fails with: {{{ /usr/bin/ld: cannot find -lHSghc-boot-0.0.0.0 collect2: error: ld returned 1 exit status }}} and after that point it keeps failing no matter what I do. Doing a `make clean` followed by `make -j<N>` with N >= 2 is fine. Akso building from scratch with: {{{ perl boot && ./configure && make -j<N> }}} with N of 2 or more is fine. Looks like some sort of dependency problem. -- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10973#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10973: Building git HEAD with a singe make job fails due to dependency problem -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: patch Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 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:D1333 Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => patch * differential: => Phab:D1333 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10973#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10973: Building git HEAD with a singe make job fails due to dependency problem -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: patch Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 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:D1333 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Thomas Miedema <thomasmiedema@…>): In [changeset:"3340fe01bc6842c2cad53271541dce6699512ce0/ghc" 3340fe01/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="3340fe01bc6842c2cad53271541dce6699512ce0" Build system: fix `make -j1` (#10973) There are multiple hacks all over the build system to account for the fact that the ghc package uses different build subdirectories (stage1/stage2) than the other packages (dist/dist-install). One such hack filtered on 'ghc%', with the intention of filtering the ghc package only. After renaming bin-package-db to ghc-boot (d2f9972a35ce05ceb8a78893e433ef1df06f73ef, Phab:D1313, #10796), ghc-boot also got caught in the hack, which broke the build when running without parallelism. This patch replaces the before mentioned hack by a different one, such that filtering on 'ghc%' is no longer necessary. See Note [inconsistent distdirs]. Reviewed by: austin Differential Revision: https://phabricator.haskell.org/D1333 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10973#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10973: Building git HEAD with a singe make job fails due to dependency problem -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Build System | Version: 7.11 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:D1333 Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: patch => closed * resolution: => fixed Comment: Should be fixed. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10973#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC