[GHC] #9421: Problems and workarounds when installing and using a 32bit GHC on 64bit Linux machine

GHC ghc-devs at haskell.org
Mon Sep 22 11:24:39 UTC 2014


#9421: Problems and workarounds when installing and using a 32bit GHC on 64bit
Linux machine
-------------------------------------+-------------------------------------
              Reporter:              |            Owner:  MikolajKonarski
  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):

 Replying to [comment:13 rwbarton]:

 OK, I think you are right the settings file is the better place to set
 options according to the ACTUAL_HOST/TARGET pair. I tried modifying the
 file manually and, at least initially, "-m32" for "C compiler flags" is
 necessary and sufficient for GHC alone. It apparently gets passed through
 to gcc when it does {{{-x assembler}}}, so we don't need "assembler flags"
 nor "-opta-m32". Also, "-optl-m32" is not needed at all, at least for
 simple packages. This is all very encouraging. However, I need to manually
 pass {{{--ld-option="-melf_i386"}}} to cabal, because the "ld flags" are
 ignored by cabal. I will investigate.

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


More information about the ghc-tickets mailing list