[GHC] #8746: Crosscompiling

GHC ghc-devs at haskell.org
Tue Feb 2 23:53:04 UTC 2016


#8746: Crosscompiling
-------------------------------------+-------------------------------------
        Reporter:  Visionstar        |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:  8.0.1
       Component:  Build System      |              Version:  7.8.1-rc1
      Resolution:  invalid           |             Keywords:  Crosscompile
                                     |  cross compile failed ncurses
                                     |  setupterm not found
Operating System:  Linux             |         Architecture:
 Type of failure:  Building GHC      |  Unknown/Multiple
  failed                             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by rwbarton):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 I agree with thomie's sentiments, but:

 * `terminfo` already builds just fine when cross-compiling, so long as you
 have installed the terminfo C library properly for your cross-compiler.
 https://github.com/neurocyte/ghc-android does this for you for the case of
 cross-compiling to Android, and it sounds like the original reporter also
 got it to work eventually.

 * I'm guessing the "Unsupported GHC version" error was a result of an
 improperly checked-out GHC source tree, as described at
 https://mail.haskell.org/pipermail/ghc-devs/2014-March/004294.html. (My
 fuzzy understanding is that Haddock is built by the stage 2 compiler
 anyways, according to comments in `ghc.mk`, so perhaps it doesn't make
 sense to do anything with Haddock when cross-compiling. (But the error
 clearly shows something being built with `ghc-stage1`, so what's up with
 that?) In any case, one doesn't get this error if one sets `HADDOCK_DOCS =
 NO`.)

 So, going to close this again.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8746#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list