[GHC] #7996: building GHC HEAD with llvm-3.4(HEAD) fails

GHC ghc-devs at haskell.org
Wed Jun 19 07:05:42 CEST 2013


#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> > >
 >::_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:
 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



More information about the ghc-tickets mailing list