[GHC] #9593: Edit New issue Building current ghc HEAD fails with globalRegMaybe not defined for this platform

GHC ghc-devs at haskell.org
Tue Oct 21 21:50:24 UTC 2014


#9593: Edit New issue Building current ghc HEAD fails with globalRegMaybe not
defined for this platform
-------------------------------------+-------------------------------------
              Reporter:  angerman    |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  high        |        Milestone:  7.10.1
             Component:  Compiler    |          Version:  7.9
  (LLVM)                             |         Keywords:
            Resolution:              |     Architecture:  arm
      Operating System:  MacOS X     |       Difficulty:  Easy (less than 1
       Type of failure:  Building    |  hour)
  GHC failed                         |       Blocked By:
             Test Case:              |  Related Tickets:
              Blocking:              |
Differential Revisions:  Phab:D208   |
-------------------------------------+-------------------------------------

Comment (by Austin Seipp <austin@…>):

 In [changeset:"69f63612fc17cd6b3baaa8898c8595bde304ebfb/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="69f63612fc17cd6b3baaa8898c8595bde304ebfb"
 Fixes the ARM build

 Summary:
 CodeGen.Platform.hs was changed with the following diff:

    -#endif
     globalRegMaybe _                        = Nothing
    +#elif MACHREGS_NO_REGS
    +globalRegMaybe _ = Nothing
    +#else
    +globalRegMaybe = panic "globalRegMaybe not defined for this platform"
    +#endif

 which causes globalRegMaybe ot panic for arch ARM.

 This patch ensures globalRegMaybe is not called on ARM.

 Signed-off-by: Moritz Angermann <moritz at lichtzwerge.de>

 Test Plan: Building arm cross-compiler (e.g. --target=arm-apple-darwin10)

 Reviewers: hvr, ezyang, simonmar, rwbarton, austin

 Reviewed By: austin

 Subscribers: dterei, bgamari, simonmar, ezyang, carter

 Differential Revision: https://phabricator.haskell.org/D208

 GHC Trac Issues: #9593
 }}}

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


More information about the ghc-tickets mailing list