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

hc2428 at columbia.edu hc2428 at columbia.edu
Sat Jun 27 21:53:11 PDT 2009


Quoting hc2428 at columbia.edu:

Here is the httpd.bc file I got with "-g -O0" option.

> 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.
> 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
>
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: httpd.bc.tar.gz
Type: application/x-gzip-compressed
Size: 1892467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090628/9772cde1/attachment.bin>


More information about the llvm-dev mailing list