[GHC] #8393: hsc2hs copies #define/#undef directives to generated .hs file when cross-compiling
#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross- compiling ------------------------------------+------------------------------------- Reporter: rwbarton | Owner: rwbarton Type: bug | Status: new Priority: normal | Milestone: Component: hsc2hs | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- See summary. This causes a cross-compilation of ghc to fail while building GHC/Stack.hsc from libraries/base, because base.cabal no longer specifies `extensions: CPP` as of dfb52c3d5. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8393> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross- compiling -------------------------------------+------------------------------------ Reporter: rwbarton | Owner: rwbarton Type: bug | Status: patch Priority: normal | Milestone: Component: hsc2hs | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by rwbarton): * status: new => patch -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8393#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross- compiling -------------------------------------+------------------------------------ Reporter: rwbarton | Owner: rwbarton Type: bug | Status: patch Priority: normal | Milestone: Component: hsc2hs | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Description changed by hvr: Old description:
See summary. This causes a cross-compilation of ghc to fail while building GHC/Stack.hsc from libraries/base, because base.cabal no longer specifies `extensions: CPP` as of dfb52c3d5.
New description: See summary. This causes a cross-compilation of ghc to fail while building GHC/Stack.hsc from libraries/base, because base.cabal no longer specifies `extensions: CPP` as of [dfb52c3d5/base]. -- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8393#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross- compiling -------------------------------------+------------------------------------ Reporter: rwbarton | Owner: rwbarton Type: bug | Status: patch Priority: normal | Milestone: Component: hsc2hs | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Austin Seipp <austin@…>): In [changeset:47bd048f243fd010e9d8e05039405263ef30ff54/testsuite]: {{{ #!CommitTicketReference repository="testsuite" revision="47bd048f243fd010e9d8e05039405263ef30ff54" Mark those tests which depend on libraries not built when cross-compiling Issue #8393 Signed-off-by: Austin Seipp <austin@well-typed.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8393#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross- compiling -------------------------------------+------------------------------------ Reporter: rwbarton | Owner: rwbarton Type: bug | Status: patch Priority: normal | Milestone: Component: hsc2hs | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Austin Seipp <austin@…>): In [changeset:47189a3c391c9d3d75d530de2ca7a645b67d78b1/testsuite]: {{{ #!CommitTicketReference repository="testsuite" revision="47189a3c391c9d3d75d530de2ca7a645b67d78b1" Skip integerGmpInternals in ghci (no unboxed tuples) Issue #8393 Signed-off-by: Austin Seipp <austin@well-typed.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8393#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross- compiling -------------------------------------+------------------------------------ Reporter: rwbarton | Owner: rwbarton Type: bug | Status: patch Priority: normal | Milestone: Component: hsc2hs | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by Austin Seipp <austin@…>): In [changeset:881038a70cfd1e5dbd50050465c5af5b7fd8c969/testsuite]: {{{ #!CommitTicketReference repository="testsuite" revision="881038a70cfd1e5dbd50050465c5af5b7fd8c969" Add 32-bit output for T7919 Issue #8393 Signed-off-by: Austin Seipp <austin@well-typed.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8393#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8393: hsc2hs copies #define/#undef directives to generated .hs file when cross- compiling -------------------------------------+------------------------------------ Reporter: rwbarton | Owner: rwbarton Type: bug | Status: closed Priority: normal | Milestone: Component: hsc2hs | Version: 7.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed Comment: Merged, although I totally botched the commit references... {{{ commit 4a0f67704d89712f8493a0c7eccffa9243d6ef09 Author: Reid Barton <rwbarton@gmail.com> Date: Tue Oct 1 13:02:26 2013 -0400 Don't emit #define/#undef in generated .hs files ... just like they aren't emitted in the ordinary case; see outTokenHs in C.hs. Closes #8393. Signed-off-by: Austin Seipp <austin@well-typed.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8393#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC