[LLVMdev] Error when running llc to compile .bc to .s

Nick Lewycky nicholas at mxc.ca
Sat Jun 27 21:56:02 PDT 2009


hc2428 at columbia.edu wrote:
> Dear staff,
> 
>      I downloaded an llvm version from the svn trunk at June 12,  
> because the released 2.5 version can not support "gcc -g -Ox", and  
> x=1,2,3. I use the version in svn to compile an httpd.bc file  
> succefully with dbgstoppoint() functions. However, when I use llc to  
> compile the bc file to .s file (llc -f -o httpd.s httpd.bc), I met  
> this error (the httpd.bc file will be attached at the next email):
> 
> llc:  
> /home/heming/defens/llvm-2.5/lib/CodeGen/AsmPrinter/DwarfDebug.cpp:1235: void  
> llvm::DwarfDebug::ConstructCompileUnit(llvm::GlobalVariable*):  
> Assertion `!MainCU && "Multiple main compile units are found!"' failed.

http://llvm.org/PR3494 . I'm guessing you did what I did; took a bunch 
of .bc files compiled with debug info and merged them with llvm-link or 
llvm-ld or some other sort of merge, then tried to compile the result. 
This is known broken.

Nick


> 0   llc             0x00000000011c0f6c
> 1   llc             0x00000000011c148a
> 2   libpthread.so.0 0x00007fa91db297d0
> 3   libc.so.6       0x00007fa91cc3a095 gsignal + 53
> 4   libc.so.6       0x00007fa91cc3baf0 abort + 272
> 5   libc.so.6       0x00007fa91cc332df __assert_fail + 239
> 6   llc             0x0000000000ebfdad
> 7   llc             0x0000000000ebffa6
> 8   llc             0x0000000000ec2f7b
> 9   llc             0x0000000000eb95e0  
> llvm::DwarfWriter::BeginModule(llvm::Module*,  
> llvm::MachineModuleInfo*, llvm::raw_ostream&, llvm::AsmPrinter*,  
> llvm::TargetAsmInfo const*) + 166
> 10  llc             0x0000000000b9b513
> 11  llc             0x0000000001142c73  
> llvm::FPPassManager::doInitialization(llvm::Module&) + 65
> 12  llc             0x0000000001142d96  
> llvm::FunctionPassManagerImpl::doInitialization(llvm::Module&) + 58
> 13  llc             0x0000000001142e01  
> llvm::FunctionPassManager::doInitialization() + 41
> 14  llc             0x000000000084b43d main + 2481
> 15  libc.so.6       0x00007fa91cc261c4 __libc_start_main + 244
> 16  llc             0x0000000000849849
> Stack dump:
> 0.      Program arguments: llc -f -o httpd.s httpd.bc
> Aborted
> 
> 
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> 




More information about the llvm-dev mailing list