This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Getting Build-Id errors wth a systemtap build on ubuntu 9.10


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]