[GHC] #7996: building GHC HEAD with llvm-3.4(HEAD) fails
::_M_insert_aux(__gnu_cxx::__normal_iterator<std::pair<llvm::BasicBlock*, llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> >*, std::vector<std::pair<llvm::BasicBlock*, llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> >, std::allocator<std::pair<llvm::BasicBlock*, llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> > > > >, std::pair<llvm::BasicBlock*, llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> > const&) + 6910 12 libdyld.dylib 0x00007fff8f2227e1 start + 0 Stack dump:
#7996: building GHC HEAD with llvm-3.4(HEAD) fails -----------------------------+---------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- using the GHC head (commit 5dc74f385f1bbc9248ed950af255b946677c2ff9) and current LLVM head (3.4svn), i get the following error when i start a "quick-llvm" build {{{ "/usr/bin/ghc" -H64m -O0 -fllvm --make utils/ghc-cabal/Main.hs -o utils /ghc-cabal/dist/build/tmp/ghc-cabal \ -no-user-package-db \ -Wall -fno-warn-unused-imports -fno-warn-warnings- deprecations \ -DCABAL_VERSION=1,17,0 \ -DBOOTSTRAPPING \ -odir bootstrapping \ -hidir bootstrapping \ -ilibraries/Cabal/Cabal \ -ilibraries/filepath \ -ilibraries/hpc \ [ 1 of 70] Compiling Distribution.Compat.Exception ( libraries/Cabal/Cabal/Distribution/Compat/Exception.hs, bootstrapping/Distribution/Compat/Exception.o ) You are using a new version of LLVM that hasn't been tested yet! We will try though... wrong initalizer for intrinsic global variable [0 x i8*] undef Broken module found, compilation aborted! 0 libLLVM-3.4svn.dylib 0x0000000104f8301e llvm::sys::PrintStackTrace(__sFILE*) + 40 1 libLLVM-3.4svn.dylib 0x0000000104f83427 SignalHandler(int) + 243 2 libsystem_c.dylib 0x00007fff87ca294a _sigtramp + 26 3 libsystem_c.dylib 0x00007fff5b562a40 _sigtramp + 3549167888 4 libLLVM-3.4svn.dylib 0x0000000104f8329d abort + 22 5 libLLVM-3.4svn.dylib 0x0000000104b0c292 (anonymous namespace)::Verifier::abortIfBroken() + 236 6 libLLVM-3.4svn.dylib 0x0000000104b0ba92 (anonymous namespace)::Verifier::doFinalization(llvm::Module&) + 3490 7 libLLVM-3.4svn.dylib 0x0000000104afa548 llvm::FPPassManager::doFinalization(llvm::Module&) + 56 8 libLLVM-3.4svn.dylib 0x0000000104afa77a llvm::MPPassManager::runOnModule(llvm::Module&) + 538 9 libLLVM-3.4svn.dylib 0x0000000104afaa75 llvm::PassManagerImpl::run(llvm::Module&) + 155 10 libLLVM-3.4svn.dylib 0x0000000104afabb9 llvm::PassManager::run(llvm::Module&) + 13 11 opt 0x00000001046a1580 std::vector<std::pair<llvm::BasicBlock*, llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> >, std::allocator<std::pair<llvm::BasicBlock*, llvm::SuccIterator<llvm::TerminatorInst*, llvm::BasicBlock> > > 0. Program arguments: opt /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc56116_0/ghc56116_0.ll -o /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc56116_0/ghc56116_0.bc -mem2reg --enable-tbaa=true llc: /var/folders/py/wgp_hj9d2rl3cx48yym_ynj00000gn/T/ghc56116_0/ghc56116_0.bc: error: Could not open input file: No such file or directory make[1]: *** [utils/ghc-cabal/dist/build/tmp/ghc-cabal] Error 1 make: *** [all] Error 2 }}} i'm not sure whats going on here. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7996> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7996: building GHC HEAD with llvm-3.4(HEAD) fails -----------------------------+---------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- Comment(by gmainland): This should have been fixed in db9b63105a54. Please dump the llvm code and look for the global variable with an empty initializer. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7996#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7996: building GHC HEAD with llvm-3.4(HEAD) fails -----------------------------+---------------------------------------------- Reporter: carter | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- Comment(by thoughtpolice): This is happening when the bootstrap compiler is invoked at the beginning of the build process. The problem is that GHC 7.6.3 does not have the fix from your commit the other week, so it will generate empty metadata tripping the assert. The long and short of this is that 7.6.3 will support up-to LLVM 3.2 (except it's kind of broken,) but 7.8 will be fine with 3.3+ -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7996#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7996: building GHC HEAD with llvm-3.4(HEAD) fails -------------------------------+-------------------------------------------- Reporter: carter | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: invalid | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by igloo): * status: new => closed * difficulty: => Unknown * resolution: => invalid Comment: This is caused by a broken bootstrapping compiler, so I'm closing the ticket. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7996#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC