Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,832
    • Issues 4,832
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 454
    • Merge requests 454
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #5103

Closed
Open
Created Apr 08, 2011 by Tener@trac-Tener

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 Mar 09, 2019 by dterei
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking