[LLVMdev] Error when running llc to compile .bc to .s
hc2428 at columbia.edu
hc2428 at columbia.edu
Sat Jun 27 21:52:17 PDT 2009
Quoting hc2428 at columbia.edu:
The httpd.bc file is compiled with "-g -O0" option (I pass "-g -O0" to
CFLAGS). If I eliminate the -g option (just pass "-O0" to CFLAGS), I
got the httpd.bc file with a size of 1.1M bytes, and the llc can
compile the httpd.bc file to httpd.s file. If I added the -g option, I
got the httpd.bc file with a size of 3.8M bytes, and I got the error
as below when using llc.
> 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
>
>
More information about the llvm-dev
mailing list