LLVM backend broken with LLVM 2.9
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}
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler (LLVM) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |
Edited by dterei