Package: systemtap Version: 3.1-2 Severity: important Dear Maintainer,
I am on running latest testing and systemtap fails to compile basically examples. linux-image-amd64: 4.12+84 systemtap: 3.1-2 ``` inf:~/build/systemtap$ sudo /usr/bin/stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}' Pass 1: parsed user script and 466 library scripts using 116216virt/47192res/6440shr/40872data kb, in 130usr/0sys/131real ms. Pass 2: analyzed script: 1 probe, 1 function, 7 embeds, 0 globals using 276388virt/208724res/7884shr/201044data kb, in 1340usr/110sys/1456real ms. Pass 3: translated to C into "/tmp/stap50KvHp/stap_c233bf40df4a62b62c9b94b2c196d4d1_2562_src.c" using 276388virt/208916res/8076shr/201044data kb, in 10usr/0sys/5real ms. In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0, from /usr/share/systemtap/runtime/runtime.h:26, from /tmp/stap50KvHp/stap_c233bf40df4a62b62c9b94b2c196d4d1_2562_src.c:25: /usr/share/systemtap/runtime/linux/access_process_vm.h: In function ‘__access_process_vm_’: /usr/share/systemtap/runtime/linux/access_process_vm.h:24:8: error: implicit declaration of function ‘get_task_mm’ [-Werror=implicit-function-declaration] mm = get_task_mm (tsk); ^~~~~~~~~~~ /usr/share/systemtap/runtime/linux/access_process_vm.h:24:6: error: assignment makes pointer from integer without a cast [-Werror=int-conversion] mm = get_task_mm (tsk); ^ /usr/share/systemtap/runtime/linux/access_process_vm.h:77:3: error: implicit declaration of function ‘mmput’ [-Werror=implicit-function-declaration] mmput (mm); ^~~~~ In file included from /usr/share/systemtap/runtime/linux/task_finder2.c:4:0, from /usr/share/systemtap/runtime/linux/task_finder.c:17, from /usr/share/systemtap/runtime/linux/runtime.h:222, from /usr/share/systemtap/runtime/runtime.h:26, from /tmp/stap50KvHp/stap_c233bf40df4a62b62c9b94b2c196d4d1_2562_src.c:25: /usr/share/systemtap/runtime/stp_utrace.c: In function ‘utrace_do_stop’: /usr/share/systemtap/runtime/stp_utrace.c:1108:4: error: implicit declaration of function ‘__set_task_state’ [-Werror=implicit-function-declaration] __set_task_state(target, TASK_TRACED); ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors /usr/src/linux-headers-4.12.0-1-common/scripts/Makefile.build:307: recipe for target '/tmp/stap50KvHp/stap_c233bf40df4a62b62c9b94b2c196d4d1_2562_src.o' failed make[3]: *** [/tmp/stap50KvHp/stap_c233bf40df4a62b62c9b94b2c196d4d1_2562_src.o] Error 1 /usr/src/linux-headers-4.12.0-1-common/Makefile:1532: recipe for target '_module_/tmp/stap50KvHp' failed make[2]: *** [_module_/tmp/stap50KvHp] Error 2 Makefile:152: recipe for target 'sub-make' failed make[1]: *** [sub-make] Error 2 Makefile:8: recipe for target 'all' failed make: *** [all] Error 2 WARNING: kbuild exited with status: 2 Pass 4: compiled C into "stap_c233bf40df4a62b62c9b94b2c196d4d1_2562.ko" in 8780usr/880sys/9551real ms. Pass 4: compilation failed. [man error::pass4] Tip: /usr/share/doc/systemtap/README.Debian should help you get started. ``` Latest upstream works successfully: ``` inf:~/build/systemtap$ sudo /usr/local/bin/stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}' Pass 1: parsed user script and 469 library scripts using 69808virt/42528res/5308shr/37560data kb, in 100usr/10sys/120real ms. Pass 2: analyzed script: 1 probe, 1 function, 7 embeds, 0 globals using 228260virt/202404res/6708shr/196012data kb, in 1480usr/80sys/1562real ms. Pass 3: using cached /root/.systemtap/cache/82/stap_825ce45e00450e060590e4b79a1a7421_2612.c Pass 4: using cached /root/.systemtap/cache/82/stap_825ce45e00450e060590e4b79a1a7421_2612.ko Pass 5: starting run. read performed Pass 5: run completed in 0usr/30sys/563real ms. ``` I think the debian package is missing the two upstream commits to make this work again. a477a4312 PR21255: Fix missing __set_task_state() definition. 62640f2ed PR21255: Fix missing get_task_mm() declaration. Let me know whether you need any more info. Cheers, Stephan -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.12.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages systemtap depends on: ii libavahi-client3 0.6.32-2 ii libavahi-common3 0.6.32-2 ii libc6 2.24-17 ii libdw1 0.170-0.1 ii libelf1 0.170-0.1 ii libgcc1 1:7.2.0-5 ii libnspr4 2:4.16-1 ii libnss3 2:3.32-2 ii libsqlite3-0 3.20.1-1 ii libstdc++6 7.2.0-5 ii lsb-release 9.20170808 ii make 4.1-9.1 ii systemtap-common 3.1-2 ii systemtap-runtime 3.1-2 systemtap recommends no packages. Versions of packages systemtap suggests: pn systemtap-doc <none> pn vim-addon-manager <none> -- no debconf information