[LLVMdev] More DIFactory questions - still stumped

Devang Patel dpatel at apple.com
Mon Oct 11 11:12:05 PDT 2010


On Oct 11, 2010, at 11:04 AM, Talin wrote:

> On Mon, Oct 11, 2010 at 10:43 AM, Chris Lattner <clattner at apple.com> wrote:
> 
> On Oct 11, 2010, at 8:17 AM, Devang Patel wrote:
> 
> >> Interestingly enough, I just upgraded to the latest Ubuntu (10.10 - Maverick Meercat), and the LLVM-generated code no longer builds: I get the following error in the assembler stage (after the bitcode is converted to assembly):
> >>
> >>    SwitchStmtTest.s: Assembler messages:
> >>    SwitchStmtTest.s:294899: Fatal error: duplicate .debug_line sections
> >>
> >
> > This is a known Linux binutils bug. There is a llvm pr in bugzilla database, I don't remember the no. though.
> 
> Direct .o file writing support for ELF is nearing functionality, it will define away this sort of issue.
> 
> While that is great news, I'd like to also keep the ability to build via assembly language, as the ability to examine the assembly has been useful in solving many otherwise difficult bugs. (Especially given the difficulties I've had getting source-level debugging to work.)
> 
> For now, however, do you know if there is a workaround for this issue?

Searching "debug_line" in all llvm PR at llvm.org/bugs would immediately lead you to
	http://llvm.org/bugs/show_bug.cgi?id=8210
Follow the trails and you'll have all the info for this Fatal error.

-
Devang

[BTW, for your original dwarf error, focusing on DIFactory uses will unlikely to lead you towards real underlying issue. Your approach is equivalent to focusing on IRBuilder to find the cause of mis-compilation. ]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101011/4934f3c8/attachment.html>


More information about the llvm-dev mailing list