[GHC] #9421: magic number mismatch when installing 32bit on 64bit machine

GHC ghc-devs at haskell.org
Sat Aug 30 20:07:13 UTC 2014


#9421: magic number mismatch when installing 32bit on 64bit machine
-------------------------------------+-------------------------------------
              Reporter:              |            Owner:
  MikolajKonarski                    |           Status:  new
                  Type:  bug         |        Milestone:
              Priority:  normal      |          Version:  7.8.3
             Component:  Compiler    |         Keywords:
            Resolution:              |     Architecture:  x86_64 (amd64)
      Operating System:  Linux       |       Difficulty:  Unknown
       Type of failure:  Installing  |       Blocked By:
  GHC failed                         |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by MikolajKonarski):

 To work around zlib problems I had to add hsc2hs options:
 {{{
 cabal install zlib --ghc-option="-optc-m32" --ghc-option="-opta-m32"
 --ghc-option="-optl-m32" --ld-option="-melf_i386" --hsc2hs-options="--
 cflag=-m32 --lflag=-m32"
 }}}
 This was inspired by
 {{{
 http://www.haskell.org/pipermail/glasgow-haskell-
 users/2009-November/018070.html
 }}}
 and was needed despite
 {{{
 https://ghc.haskell.org/trac/ghc/ticket/3400#comment:16
 }}}

 Now everything works correctly for me. Next up for testing would be a TH
 heavy package or just a very large application. Yesod comes to mind.
 Please report here if you try that.

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


More information about the ghc-tickets mailing list