Public bug reported:
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@pi-ubuntu:~/bin$ cat empty.stap
probe signal.send {
printf("signalled\n");
}
probe begin {
printf("hi\n");
}
ubuntu@pi-ubuntu:~/bin$ sudo stap empty.stap
In file included from
/tmp/stap8WrZMD/stap_57b83f2353a7c1704daf8d11fb82f111_59444_src.c:36:
/usr/share/systemtap/runtime/linux/compat_unistd.h:1876: error:
"__NR_compat_clock_getres" redefined [-Werror]
1876 | #define __NR_compat_clock_getres __NR_clock_getres
|
In file included from
/tmp/stap8WrZMD/stap_57b83f2353a7c1704daf8d11fb82f111_59444_src.c:35:
./arch/arm64/include/asm/unistd.h:29: note: this is the location of the
previous definition
29 | #define __NR_compat_clock_getres 264
|
In file included from
/tmp/stap8WrZMD/stap_57b83f2353a7c1704daf8d11fb82f111_59444_src.c:36:
/usr/share/systemtap/runtime/linux/compat_unistd.h:1877: error:
"__NR_compat_clock_gettime" redefined [-Werror]
1877 | #define __NR_compat_clock_gettime __NR_clock_gettime
|
In file included from
/tmp/stap8WrZMD/stap_57b83f2353a7c1704daf8d11fb82f111_59444_src.c:35:
./arch/arm64/include/asm/unistd.h:28: note: this is the location of the
previous definition
28 | #define __NR_compat_clock_gettime 263
|
In file included from
/tmp/stap8WrZMD/stap_57b83f2353a7c1704daf8d11fb82f111_59444_src.c:36:
/usr/share/systemtap/runtime/linux/compat_unistd.h:1958: error:
"__NR_compat_gettimeofday" redefined [-Werror]
1958 | #define __NR_compat_gettimeofday __NR_gettimeofday
|
In file included from
/tmp/stap8WrZMD/stap_57b83f2353a7c1704daf8d11fb82f111_59444_src.c:35:
./arch/arm64/include/asm/unistd.h:25: note: this is the location of the
previous definition
25 | #define __NR_compat_gettimeofday 78
|
cc1: all warnings being treated as errors
make[1]: *** [scripts/Makefile.build:273:
/tmp/stap8WrZMD/stap_57b83f2353a7c1704daf8d11fb82f111_59444_src.o] Error 1
make: *** [Makefile:1722: /tmp/stap8WrZMD] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. [man error::pass4]
Tip: /usr/share/doc/systemtap/README.Debian should help you get started.
ubuntu@pi-ubuntu:~/bin$ lsb_release -rd
Description: Ubuntu 20.04 LTS
Release: 20.04
ubuntu@pi-ubuntu:~/bin$ apt-cache policy systemtap
systemtap:
Installed: 4.2-3
Candidate: 4.2-3
Version table:
*** 4.2-3 500
500 http://ports.ubuntu.com/ubuntu-ports focal/universe arm64 Packages
100 /var/lib/dpkg/status
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: systemtap 4.2-3
ProcVersionSignature: User Name 5.4.0-1012.12-raspi 5.4.41
Uname: Linux 5.4.0-1012-raspi aarch64
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: arm64
CasperMD5CheckResult: skip
Date: Sat Jun 13 03:41:44 2020
ImageMediaBuild: 20200423.1
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: systemtap
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: systemtap (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug arm64 focal uec-images
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1883343
Title:
systemtap fails to build C due to __NR_compat_clock_getres define
errors
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemtap/+bug/1883343/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs