[GHC] #11537: GHC fails to compile if source is in /ghc

#11537: GHC fails to compile if source is in /ghc -------------------------------------+------------------------------------- Reporter: wereHamster | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- I was building GHC in a docker image and was ignorant what the $PWD is (it is / in case you were wondering). So I cloned GHC into /ghc, and attempted to build it from there. Eventually the build fails because there is a sed expression `'s|$(TOP)/|...'` which rewrites some include paths to nonesense: /usr/lib/ghc/include/... -> /usr/libinclude/... Anchoring the expression (`'s|^$(TOP)/|...'`) helped the build process to continue past that point, but I haven't completed it due to other issue, so there may be other places where $(TOP) == /ghc breaks the build. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11537 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11537: GHC fails to compile if source is in /ghc -------------------------------------+------------------------------------- Reporter: wereHamster | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.10.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * component: Compiler => Build System -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11537#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11537: GHC fails to compile if source is in /ghc
-------------------------------------+-------------------------------------
Reporter: wereHamster | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 7.10.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Thomas Miedema

#11537: GHC fails to compile if source is in /ghc -------------------------------------+------------------------------------- Reporter: wereHamster | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Build System | Version: 7.10.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => fixed * milestone: => 8.2.1 Comment: I applied your proposed fix. Building ghc in `/ghc` should work now (I tested it). Thanks for the report. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11537#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC