This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: libgcj testsuite FAILs on Ubuntu
OK, sorry for the noise, I think I've found the real problem.
Run nm on StackTrace2.exe, find the address of StackTrace2::main, and use
addr2line to get the line number:
$ nm ./testsuite/StackTrace2.exe | grep 'StackTrace2.*main' | awk '{print $1}' | addr2line -e ./testsuite/StackTrace2.exe
BFD: Dwarf Error: mangled line number section.
crtstuff.c:0
On a non-broken x86_64 system:
$ nm ./testsuite/StackTrace2.exe | grep 'StackTrace2.*main' | awk '{print $1}' | addr2line -e ./testsuite/StackTrace2.exe
/home/aph/gcc/trunk/obj-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/libjava/StackTrace2.java:10
In general, I have found a great many errors with debuginfo. It would be
interesting to know if any gdb tests pass.
Andrew.