Error reading LLVM-gcc debug info

2 views
Skip to first unread message

Kevin Tew

unread,
Jan 2, 2008, 3:11:27 PM1/2/08
to zerobugs
zero gives gives an error message it can't open the following file.
/home/tewk/srcs/llvm-gcc/install/bin/../lib/gcc/i686-pc-linux-gnu/
4.0.1/include//home/tewk/srcs/manta/StandAlone/manta.cc:195s

Which of course should be two paths.
/home/tewk/srcs/llvm-gcc/install/bin/../lib/gcc/i686-pc-linux-gnu/
4.0.1/include/
/home/tewk/srcs/manta/StandAlone/manta.cc:195

The executable was created using llvm-gcc, but gdb is able to read the
debug info just fine.

Ideas?

Kevin

C. Vlasceanu

unread,
Jan 3, 2008, 12:51:02 AM1/3/08
to zero...@googlegroups.com
Can you please tell me what distro and ZeroBUGS build are you experiencing this problem with?

Thank you,
   Cristian Vlasceanu

C. Vlasceanu

unread,
Jan 5, 2008, 2:16:17 AM1/5/08
to zero...@googlegroups.com, kevi...@gmail.com
Kevin,

I reproduced the problem with llvm-gcc4.0.2 on a Ubuntu desktop.

Interestingly enough, this behavior is a combination of two bugs: first one in the llvm-gcc compiler  (the DW_AT_comp_dir attribute of compilation units in the .debug section seems to be incorrect, as verified with the dwarfdump and readelf utilities) and the second: an "optimization" in computing the source file name that I pushed out with the latest build of Zero.

Good news is I do have a workaround and I will start pushing new builds out (hopefully this coming weekend).

Thank you kindly for bringing up this issue.

Best regards,
   Cristian

On Jan 2, 2008 12:11 PM, Kevin Tew <kevi...@gmail.com> wrote:



--
the-free-meme.blogspot.com
Reply all
Reply to author
Forward
0 new messages