Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 977652 - ghc fails to compile files using llvm-3.3 on ARM
Summary: ghc fails to compile files using llvm-3.3 on ARM
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc
Version: 19
Hardware: arm
OS: Unspecified
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: ARMTracker
TreeView+ depends on / blocked
Reported: 2013-06-25 05:30 UTC by Jens Petersen
Modified: 2013-07-05 02:05 UTC (History)
5 users (show)

Fixed In Version: ghc-7.4.2-11.1.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-07-05 02:05:44 UTC
Type: Bug

Attachments (Terms of Use)

Description Jens Petersen 2013-06-25 05:30:14 UTC
Description of problem:
ghc < 7.8 (unreleased) seems not to support llvm > 3.2.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. try to build a haskell package on F19 ARM with llvm-3.3pre

Actual results:
+ ghc --make -no-user-package-conf Setup
[1 of 1] Compiling Main             ( Setup.hs, Setup.o )
wrong initalizer for intrinsic global variable
[0 x i8*] undef
Broken module found, compilation aborted!
0 0xb5e4f4f8 llvm::sys::PrintStackTrace(_IO_FILE*) + 36
1 0xb5e4f2d8
2      0xb595ec60 __default_sa_restorer_v2 + 0
3      0xb595d854 gsignal + 52
4      0xb595ee54 abort + 408
5 0xb649580c
6 0xb649c4f4
7 0xb647828c llvm::FPPassManager::doFinalization(llvm::Module&) + 80
8 0xb647f1b4 llvm::MPPassManager::runOnModule(llvm::Module&) + 640
9 0xb647f2f0 llvm::PassManagerImpl::run(llvm::Module&) + 152
10 opt            0x0001830c main + 2532
11      0xb594728c __libc_start_main + 276
Stack dump:
0.	Program arguments: opt /tmp/ghc2007_0/ghc2007_0.ll -o /tmp/ghc2007_0/ghc2007_0.bc -mem2reg 
llc: /tmp/ghc2007_0/ghc2007_0.bc: error: Could not open input file: No such file or directory

Expected results:
No error

Additional info:
There seems to be a fix for this for ghc-7.8 (commit db9b63105a54),
which we can try test and backport.

Comment 1 Jens Petersen 2013-06-25 10:02:18 UTC
Hopefully fixed in ghc-7.4.2-11.1.fc19.

That's the good news - the bad news is I don't think
this will build on ARM without rebootstrapping ghc probably. :-(

I assume there is a good reason for shipping llvm-3.3-rc in f19-final...

Comment 2 Peter Robinson 2013-06-25 10:11:10 UTC
> I assume there is a good reason for shipping llvm-3.3-rc in f19-final...

Mesa 3.2 requirement for newer graphics card and feature support like video offload. There was a heads up mail send to devel quite some time ago

Comment 3 Fedora Update System 2013-06-26 03:05:57 UTC
ghc-7.4.2-11.1.fc19 has been submitted as an update for Fedora 19.

Comment 4 Fedora Update System 2013-06-26 17:07:52 UTC
Package ghc-7.4.2-11.1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ghc-7.4.2-11.1.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-07-05 02:05:44 UTC
ghc-7.4.2-11.1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.