This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/25265] tapscripts using ustack, ubacktrace etc fail to compile on kernel 3.4
- From: "craig.ringer at 2ndquadrant dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 10 Dec 2019 06:34:31 +0000
- Subject: [Bug runtime/25265] tapscripts using ustack, ubacktrace etc fail to compile on kernel 3.4
- Auto-submitted: auto-generated
- References: <bug-25265-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=25265
--- Comment #2 from Craig Ringer <craig.ringer at 2ndquadrant dot com> ---
A workaround if you just want to use stap is to patch `runtime.cxx` as follows
```
diff --git a/buildrun.cxx b/buildrun.cxx
index 505902bc5..b29eeb797 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -235,6 +235,7 @@ compile_dyninst (systemtap_session& s)
"gcc", "--std=gnu99", s.translated_source, "-o", module,
"-fvisibility=hidden", "-O2", "-I" + s.runtime_path, "-D__DYNINST__",
"-Wall", WERROR, "-Wno-unused", "-Wno-strict-aliasing",
+ "-Wno-error=implicit-fallthrough", "-Wno-error=strict-prototypes",
"-pthread", "-lrt", "-fPIC", "-shared",
};
```
then recompile and reinstall.
--
You are receiving this mail because:
You are the assignee for the bug.