This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Getting Build-Id errors wth a systemtap build on ubuntu 9.10
- From: naresh kamboju <naresh dot kernel at gmail dot com>
- To: Kannan Ramaswamy <Kannan dot Ramaswamy at cogcap dot com>
- Cc: "systemtap at sources dot redhat dot com" <systemtap at sources dot redhat dot com>
- Date: Thu, 26 Nov 2009 12:30:29 +0530
- Subject: Re: Getting Build-Id errors wth a systemtap build on ubuntu 9.10
- References: <ADDB33CFADAE254A82F4EC7529D3DA32055B8C2DE4@CELSIUS.cogcap.com>
Hi Ramaswamy,
On Tue, Nov 24, 2009 at 8:11 PM, Kannan Ramaswamy
<Kannan.Ramaswamy@cogcap.com> wrote:
> Hi,
> I was able to build the latest systemtap code on ubuntu 9.10 with elfutils 0.143 release >code. But I am getting a "Build-Id mismatch between kernel and vmlinux error" when I run stap. I checked the instructions at >http://sourceware.org/systemtap/wiki/SystemtapOnUbuntu. I am not sure what I am doing >wrong. Has anyone come across this issue before?
I did not try on Ubuntu yet.
However, I got the same kind of error on ARM architecture.I guess ...
please find the below links for the more info.
http://sourceware.org/ml/systemtap/2009-q4/msg00418.html
http://sourceware.org/ml/systemtap/2009-q4/msg00419.html
http://sourceware.org/ml/systemtap/2009-q4/msg00420.html
http://sourceware.org/ml/systemtap/2009-q4/msg00436.html
http://sourceware.org/ml/systemtap/2009-q4/msg00437.html
http://sourceware.org/ml/systemtap/2009-q4/msg00438.html
http://sourceware.org/ml/systemtap/2009-q4/msg00439.html
http://sourceware.org/ml/systemtap/2009-q4/msg00441.html
http://sourceware.org/ml/systemtap/2009-q4/msg00533.html
in the below I have appiled the patch and able to resolve the issue.
it may be help full.
Index: b/translate.cxx
===================================================================
--- a/translate.cxx
+++ b/translate.cxx
@@ -4905,8 +4905,13 @@ dump_unwindsyms (Dwfl_Module *m,
correct either. We may instead need a relocation basis different
from _stext, such as __start_notes. */
if (modname == "kernel")
+#if 0
c->output << ".build_id_offset = 0x" << hex << build_id_vaddr -
(base + extra_offset)
<< dec << ",\n";
+#else
+ c->output << ".build_id_offset = 0x" << hex << build_id_vaddr
+ << dec << ",\n";
+#endif
else
c->output << ".build_id_offset = 0x" << hex
<< build_id_vaddr - base
If not please provide the full config.log and build log for error msg
with systemtap/gcc/glibc/kernel/arch/elfutils versions.
Best regards
Naresh Kamboju
>
> Thanks,
> --Kannan.