https://bugzilla.redhat.com/show_bug.cgi?id=977652
Bug ID: 977652 Summary: ghc fails to compile files using llvm-3.3 on ARM Product: Fedora Version: 19 Component: ghc Severity: unspecified Priority: unspecified Assignee: petersen@redhat.com Reporter: petersen@redhat.com QA Contact: extras-qa@fedoraproject.org CC: bos@serpentine.com, haskell-devel@lists.fedoraproject.org, petersen@redhat.com
Description of problem: ghc < 7.8 (unreleased) seems not to support llvm > 3.2.
Version-Release number of selected component (if applicable): ghc-7.4.2 llvm-3.3-rc
How reproducible: 100%
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 libLLVM-3.3.so 0xb5e4f4f8 llvm::sys::PrintStackTrace(_IO_FILE*) + 36 1 libLLVM-3.3.so 0xb5e4f2d8 2 libc.so.6 0xb595ec60 __default_sa_restorer_v2 + 0 3 libc.so.6 0xb595d854 gsignal + 52 4 libc.so.6 0xb595ee54 abort + 408 5 libLLVM-3.3.so 0xb649580c 6 libLLVM-3.3.so 0xb649c4f4 7 libLLVM-3.3.so 0xb647828c llvm::FPPassManager::doFinalization(llvm::Module&) + 80 8 libLLVM-3.3.so 0xb647f1b4 llvm::MPPassManager::runOnModule(llvm::Module&) + 640 9 libLLVM-3.3.so 0xb647f2f0 llvm::PassManagerImpl::run(llvm::Module&) + 152 10 opt 0x0001830c main + 2532 11 libc.so.6 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: http://hackage.haskell.org/trac/ghc/ticket/7996 There seems to be a fix for this for ghc-7.8 (commit db9b63105a54), which we can try test and backport.