[Bug runtime/25265] tapscripts using ustack, ubacktrace etc fail to compile on kernel 3.4
craig.ringer at 2ndquadrant dot com
sourceware-bugzilla@sourceware.org
Tue Dec 10 06:34:00 GMT 2019
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.
More information about the Systemtap
mailing list