Bugzilla – Bug 1216122
systemtap non compilation
Last modified: 2023-10-11 11:24:29 UTC
Created attachment 870080 [details] hwinfo output I upgraded my system to 15.5 recently hoping that this would give a nice consistent/stable base for eg. stap usage :-) Quite possibly this is some weirdo upgrade artifact from tumbleweed -> 15.5 but anyhow - I just want to check that system-tap works nicely out of the box for someone :-) my stap script: #! /usr/bin/env stap probe vm.write_shared { print_ubacktrace() } probe begin { printf("Starting data collection\n") } probe end { printf("Terminating data collection\n") the compile output: sudo stap online-memory-cow.stap WARNING: cannot find module kernel debuginfo: No DWARF information found [man warning::debuginfo] warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (SUSE Linux) 11.2.1 20220316 [revision 6a1150d1524aeda3381b2171712e1a6611d441d6] You are using: gcc (SUSE Linux) 11.3.0 ./tools/objtool/objtool: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by ./tools/objtool/objtool) ./tools/objtool/objtool: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by ./tools/objtool/objtool) make[1]: *** [/usr/src/linux-5.17.3-1/scripts/Makefile.build:289: /tmp/stapgh5XAX/stap_9ff2df12bd5b4c094c10efccc229a1cd_1416_aux_0.o] Error 1 make[1]: *** Deleting file '/tmp/stapgh5XAX/stap_9ff2df12bd5b4c094c10efccc229a1cd_1416_aux_0.o' make[1]: *** Waiting for unfinished jobs.... In file included from /usr/share/systemtap/runtime/transport/procfs.c:13, from /usr/share/systemtap/runtime/transport/transport.c:72, from /usr/share/systemtap/runtime/linux/print.c:17, from /usr/share/systemtap/runtime/print.c:17, from /usr/share/systemtap/runtime/runtime_context.h:22, from /tmp/stapgh5XAX/stap_9ff2df12bd5b4c094c10efccc229a1cd_1416_src.c:57: /usr/share/systemtap/runtime/proc_fs_compatibility.h:29:13: error: static declaration of ‘proc_set_user’ follows non-static declaration 29 | static void proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid) | ^~~~~~~~~~~~~ In file included from /usr/share/systemtap/runtime/linux/runtime.h:22, from /usr/share/systemtap/runtime/runtime.h:26, from /tmp/stapgh5XAX/stap_9ff2df12bd5b4c094c10efccc229a1cd_1416_src.c:21: /usr/src/linux-5.17.3-1/include/linux/proc_fs.h:112:13: note: previous declaration of ‘proc_set_user’ with type ‘void(struct proc_dir_entry *, kuid_t, kgid_t)’ 112 | extern void proc_set_user(struct proc_dir_entry *, kuid_t, kgid_t); | ^~~~~~~~~~~~~ In file included from /usr/share/systemtap/runtime/transport/procfs.c:13, from /usr/share/systemtap/runtime/transport/transport.c:72, from /usr/share/systemtap/runtime/linux/print.c:17, from /usr/share/systemtap/runtime/print.c:17, from /usr/share/systemtap/runtime/runtime_context.h:22, from /tmp/stapgh5XAX/stap_9ff2df12bd5b4c094c10efccc229a1cd_1416_src.c:57: /usr/share/systemtap/runtime/proc_fs_compatibility.h: In function ‘proc_set_user’: /usr/share/systemtap/runtime/proc_fs_compatibility.h:31:11: error: invalid use of undefined type ‘struct proc_dir_entry’ 31 | de->uid = __kuid_val(uid); | ^~ /usr/share/systemtap/runtime/proc_fs_compatibility.h:32:11: error: invalid use of undefined type ‘struct proc_dir_entry’ 32 | de->gid = __kgid_val(gid); | ^~ and more. I hope that helps someone. Thanks!
Hmm - I suspect this is because my system still has various Tumbleweed packages on it - including the kernel (despite my attempt to upgrade from USB key) - bother. Sorry for the noise.