[GHC] #7004: Error compiling repa-algorithms with LLVM

GHC cvs-ghc at haskell.org
Mon Jun 25 11:57:28 CEST 2012


#7004: Error compiling repa-algorithms with LLVM
----------------------------------------+-----------------------------------
  Reporter:  benl                       |          Owner:  dterei        
      Type:  bug                        |         Status:  closed        
  Priority:  normal                     |      Milestone:                
 Component:  Compiler (LLVM)            |        Version:  7.4.1         
Resolution:  fixed                      |       Keywords:                
        Os:  MacOS X                    |   Architecture:  x86_64 (amd64)
   Failure:  GHC rejects valid program  |     Difficulty:  Unknown       
  Testcase:                             |      Blockedby:                
  Blocking:                             |        Related:                
----------------------------------------+-----------------------------------

Comment(by dterei):

 OK so I thought this error looked familiar. This is an old error that I
 already fixed:

 https://github.com/ghc/ghc/commit/5e383469

 It is in GHC 7.4.2, current haskell platform is 7.4.1 based so it suffers
 the error. It only arises on a 32bit platform as well. Basically I wasn't
 passing though the march option to the assember (as the llvm backend now
 uses clang as the assembler so has a different code path than NCG).

 A work around is to use this flag with ghc:
 {{{
 $ ghc -opta-m32
 }}}

 And using the 32bit HP will work fine.

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



More information about the Glasgow-haskell-bugs mailing list