duplicate .debug_line sections

I'm using LLVM 2.8 with GNU Binutils for Ubuntu
2.20.51-system.20100908. When I try to assemble a .s file generated
with llc with g++ I get the error:

Fatal error: duplicate .debug_line sections.

I'm using llvm-gcc/g++ as front end.

I also tried generating the .o file directly using -filetype=obj but
that too fails with

BFD: BFD (GNU Binutils for Ubuntu) 2.20.51-system.20100908 assertion
fail ../../bfd/elf.c:1805

when trying to convert the .o file to an archive with ar.

I would appreciate any help very much. Thanks.

-- dineth

This is probably http://llvm.org/bugs/show_bug.cgi?id=6218