#5103: LLVM backeng broken with LLVM 2.9
-------------------------------+--------------------------------------------
    Reporter:  tener           |       Owner:  dterei         
        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   
-------------------------------+--------------------------------------------
Changes (by daniel.is.fischer):

 * cc: daniel.is.fischer@… (added)


Comment:

 Also broken with llvm-3.0 (the package is llvm-2.9.99, so alpha or beta,
 on openSuSE 11.3),
 {{{
 $ llc --version
 Low Level Virtual Machine (http://llvm.org/):
   llvm version 3.0
   Optimized build with assertions.
   Built Apr  9 2011 (14:36:06).
   Host: i386-pc-linux-gnu
   Host CPU: nocona

   Registered Targets:
     alpha   - Alpha [experimental]
     arm     - ARM
     bfin    - Analog Devices Blackfin [experimental]
     c       - C backend
     cellspu - STI CBEA Cell SPU [experimental]
     cpp     - C++ backend
     mblaze  - MBlaze
     mips    - Mips
     mipsel  - Mipsel
     msp430  - MSP430 [experimental]
     ppc32   - PowerPC 32
     ppc64   - PowerPC 64
     ptx     - PTX
     sparc   - Sparc
     sparcv9 - Sparc V9
     systemz - SystemZ
     thumb   - Thumb
     x86     - 32-bit X86: Pentium-Pro and above
     x86-64  - 64-bit X86: EM64T and AMD64
     xcore   - XCore
 $ opt --version
 Low Level Virtual Machine (http://llvm.org/):
   llvm version 3.0
   Optimized build with assertions.
   Built Apr  9 2011 (14:36:06).
   Host: i386-pc-linux-gnu
   Host CPU: nocona

   Registered Targets:
     (none)
 }}}
 Putting the above as script in ~/bin doesn't help, since no as is called:
 {{{
 Running phase LlvmOpt
 *** LLVM Optimiser:
 opt /tmp/ghc9231_0/ghc9231_0.ll -o /tmp/ghc9231_0/ghc9231_0.bc -O1
 Running phase LlvmLlc
 *** LLVM Compiler:
 llc -O2 -relocation-model=static /tmp/ghc9231_0/ghc9231_0.bc -o
 /tmp/ghc9231_0/ghc9231_0.s
 Running phase As
 *** Assembler:
 /usr/bin/gcc -I. -c /tmp/ghc9231_0/ghc9231_0.s -o nothing.o -fno-stack-
 protector -DDONT_WANT_WIN32_DLL_SUPPORT
 /tmp/ghc9231_0/ghc9231_0.s: Assembler messages:

 /tmp/ghc9231_0/ghc9231_0.s:185:0:
      Error: can't resolve `Main_main2_srt' {.rodata section} -
 `Main_main2_info' {.text; .text 10# section}

 /tmp/ghc9231_0/ghc9231_0.s:206:0:
      Error: can't resolve `ZCMain_main_srt' {.rodata section} -
 `ZCMain_main_info' {.text; .text 20# section}
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5103#comment:7>
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