[GHC] #8760: ghc 7.8: ghc-split not installed

#8760: ghc 7.8: ghc-split not installed --------------------------------+------------------------------------------ Reporter: | Owner: MagnusTherning | Status: new Type: bug | Milestone: Priority: normal | Version: 7.8.1-rc1 Component: Build System | Operating System: Linux Keywords: | Type of failure: Installing GHC failed Architecture: | Test Case: Unknown/Multiple | Blocking: Difficulty: Unknown | Blocked By: | Related Tickets: | --------------------------------+------------------------------------------ These are the steps I run to build and install (to prepare for packaging): {{{ ./sync-all -r git://git.haskell.org get -b ghc-7.8 ./boot ./configure --prefix=/usr make -j 5 make DESTDIR=/path/to/prepackage/dir install }}} The build itself works fine, the installed binaries work for simple tests like compiling ''hello, world'', starting {{{ghci}}}, etc. However, building '''mtl''' failed with {{{ Configuring mtl-2.1.2... Building mtl-2.1.2... Preprocessing library mtl-2.1.2... [ 1 of 21] Compiling Control.Monad.Writer.Class ( Control/Monad/Write/Class.hs, dist/build/Control/Monad/Writer/Class.o ) ghc: could not execute: /usr/lib/ghc-7.8.0.20140204/ghc-split }}} So it seems ''ghc-split'' isn't installed by {{{make install}}}. It also isn't included in the output of {{{make binary-dist}}}. I've seen this on both ''x86'' and ''x86_64''. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8760 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8760: ghc 7.8: ghc-split not installed ------------------------------------------+-------------------------------- Reporter: MagnusTherning | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Installing GHC failed | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ------------------------------------------+-------------------------------- Changes (by slyfox): * cc: slyfox@… (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8760#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8760: ghc 7.8: ghc-split not installed ------------------------------------------+-------------------------------- Reporter: MagnusTherning | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Installing GHC failed | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ------------------------------------------+-------------------------------- Comment (by slyfox): I've noticed it today as well. What was strange is that absence of ghc-split does not fail the build even when -split-objs is specified in ghc commandline. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8760#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8760: ghc 7.8: ghc-split not installed ------------------------------------------+-------------------------------- Reporter: MagnusTherning | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Installing GHC failed | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ------------------------------------------+-------------------------------- Comment (by MagnusTherning): Replying to [comment:2 slyfox]:
I've noticed it today as well.
What was strange is that absence of ghc-split does not fail the build even when -split-objs is specified in ghc commandline.
It looks like the script is properly installed for use in-place during the build of Ghc (at least an executable copy is present after a build). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8760#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8760: ghc 7.8: ghc-split not installed ------------------------------------------+-------------------------------- Reporter: MagnusTherning | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Installing GHC failed | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ------------------------------------------+-------------------------------- Changes (by thoughtpolice): * milestone: => 7.8.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8760#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8760: ghc 7.8: ghc-split not installed ------------------------------------------+-------------------------------- Reporter: MagnusTherning | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Installing GHC failed | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ------------------------------------------+-------------------------------- Changes (by khyperia): * cc: echauck@… (added) * status: new => patch Comment: I believe I have fixed this, although this is my second time committing to ghc and first time digging into the build system. Please review appropriately. Patch attached. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8760#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8760: ghc 7.8: ghc-split not installed ------------------------------------------+-------------------------------- Reporter: MagnusTherning | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Installing GHC failed | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ------------------------------------------+-------------------------------- Comment (by thoughtpolice): Thank you! This patch unfortunately doesn't quite work on Linux yet when running 'make install' from a binary distribution. I'll get it going in my tree again to see if I can fix it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8760#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

Thank you! This patch unfortunately doesn't quite work on Linux yet when running 'make install' from a binary distribution. I'll get it going in my
#8760: ghc 7.8: ghc-split not installed ------------------------------------------+-------------------------------- Reporter: MagnusTherning | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Linux | Architecture: Type of failure: Installing GHC failed | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ------------------------------------------+-------------------------------- Comment (by khyperia): Replying to [comment:6 thoughtpolice]: tree again to see if I can fix it. I think I might know the reason. I reference "$1/$2/$$($1_$2_PROG)" in the install rule (in the patch), where I should have referenced "$$($1_$2_INPLACE)". Try switching it and seeing if it works. (I was unsure of which variable to use, so I guessed - apparently wrongly) If that doesn't work... I guess just try various variables for that rule, I'm confused by the mass of dollar signs everywhere and I'm unsure of what variable is what. I'm at work currently and cannot try the change myself. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8760#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8760: ghc 7.8: ghc-split not installed
------------------------------------------+--------------------------------
Reporter: MagnusTherning | Owner:
Type: bug | Status: patch
Priority: normal | Milestone: 7.8.1
Component: Build System | Version: 7.8.1-rc1
Resolution: | Keywords:
Operating System: Linux | Architecture:
Type of failure: Installing GHC failed | Unknown/Multiple
Test Case: | Difficulty: Unknown
Blocking: | Blocked By:
| Related Tickets:
------------------------------------------+--------------------------------
Comment (by Austin Seipp

#8760: ghc 7.8: ghc-split not installed ------------------------------------------+-------------------------------- Reporter: MagnusTherning | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc1 Resolution: fixed | Keywords: Operating System: Linux | Architecture: Type of failure: Installing GHC failed | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ------------------------------------------+-------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed Comment: Thanks Evan, I made a fix based on your patch. Merged in HEAD and 7.8. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8760#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC