#5103: LLVM backeng broken with LLVM 2.9
-------------------------------+--------------------------------------------
    Reporter:  tener           |       Owner:  davidterei@…        
        Type:  bug             |      Status:  new                 
    Priority:  normal          |   Component:  Compiler (LLVM)     
     Version:  7.1             |    Keywords:                      
    Testcase:                  |   Blockedby:                      
          Os:  Linux           |    Blocking:                      
Architecture:  x86_64 (amd64)  |     Failure:  None/Unknown        
-------------------------------+--------------------------------------------
 Even simplest programs like

 {{{
 module Main where
 main = return ()
 }}}

 Fail when compiled with -fllvm

 The error is:


 {{{
 ghc -fllvm --make llvm.hs
 [1 of 1] Compiling Main             ( llvm.hs, llvm.o )
 /tmp/ghc3024_0/ghc3024_0.s: Assembler messages:

 /tmp/ghc3024_0/ghc3024_0.s:175:0:
      Error: can't resolve `Main_main_srt' {.rodata section} -
 `Main_main_info' {.text; .text 6# section}

 /tmp/ghc3024_0/ghc3024_0.s:185:0:
      Error: can't resolve `ZCMain_main_srt' {.rodata section} -
 `ZCMain_main_info' {.text; .text 12# section}
 }}}

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to