[GHC] #9933: Cross-compile failure : Not in scope: ‘gcdInt'’

#9933: Cross-compile failure : Not in scope: ‘gcdInt'’ -------------------------------------+------------------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 Keywords: | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Unknown | Type of failure: Building Blocked By: | GHC failed Related Tickets: | Test Case: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- When cross-compiling from x86_64-linux to armhf-linux using the `quick- cross` setting from `mk/build.mk.sample` I get: {{{ libraries/base/GHC/Real.hs:28:25: Not in scope: ‘gcdInt'’ libraries/base/GHC/Real.hs:28:34: Not in scope: ‘gcdWord'’ }}} It turns out these functions are exported un-conditionally but are only defined within an `#ifdef`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9933 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9933: Cross-compile failure : Not in scope: ‘gcdInt'’ -------------------------------------+------------------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: patch Priority: normal | Milestone: 7.12.1 Component: Core | Version: 7.11 Libraries | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 Unknown/Multiple | hour) Type of failure: Building | Blocked By: GHC failed | Related Tickets: Test Case: | Blocking: | Differential Revisions: Phab:D598 | -------------------------------------+------------------------------------- Changes (by dfeuer): * status: new => patch * cc: core-libraries-committee@… (added) * differential: => Phab:D598 * component: Compiler => Core Libraries * difficulty: Unknown => Easy (less than 1 hour) * milestone: => 7.12.1 Comment: Whoops! That one's my fault. I'm on it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9933#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9933: Cross-compile failure : Not in scope: ‘gcdInt'’ -------------------------------------+------------------------------------- Reporter: erikd | Owner: erikd Type: bug | Status: closed Priority: normal | Milestone: 7.12.1 Component: Core Libraries | 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 Revisions: Phab:D598 -------------------------------------+------------------------------------- Changes (by erikd): * status: patch => closed * resolution: => fixed Comment: This seems to have been fixed in another commit. I have been building a GHC linux-amd64 to linux-armhf cross compiler using `BuildFlavour=quick- cross` (which using integer-simple) in a Jenkins instance for weeks without problems. Closing this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9933#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC