systemtap fails to build C due to __NR_compat_clock_getres define errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemtap (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using a Raspberry Pi 3B running Ubuntu Server 20.04 arm64. If I try to compile a systemtap file which probes "signal.send", I get multiple definition warnings, and compilation fails because stap passes -Werror to the compiler.
ubuntu@
probe signal.send {
printf(
}
probe begin {
printf("hi\n");
}
ubuntu@
In file included from /tmp/stap8WrZMD
/usr/share/
1876 | #define __NR_compat_
|
In file included from /tmp/stap8WrZMD
./arch/
29 | #define __NR_compat_
|
In file included from /tmp/stap8WrZMD
/usr/share/
1877 | #define __NR_compat_
|
In file included from /tmp/stap8WrZMD
./arch/
28 | #define __NR_compat_
|
In file included from /tmp/stap8WrZMD
/usr/share/
1958 | #define __NR_compat_
|
In file included from /tmp/stap8WrZMD
./arch/
25 | #define __NR_compat_
|
cc1: all warnings being treated as errors
make[1]: *** [scripts/
make: *** [Makefile:1722: /tmp/stap8WrZMD] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
Tip: /usr/share/
ubuntu@
Description: Ubuntu 20.04 LTS
Release: 20.04
ubuntu@
systemtap:
Installed: 4.2-3
Candidate: 4.2-3
Version table:
*** 4.2-3 500
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: systemtap 4.2-3
ProcVersionSign
Uname: Linux 5.4.0-1012-raspi aarch64
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: arm64
CasperMD5CheckR
Date: Sat Jun 13 03:41:44 2020
ImageMediaBuild: 20200423.1
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: systemtap
UpgradeStatus: No upgrade log present (probably fresh install)
Does the systemtap from this ppa work correctly for you?
https:/ /launchpad. net/~ubuntu- support- team/+archive/ ubuntu/ systemtap