Created attachment 896775 [details] build.log from build.log: ``` make[4]: Entering directory '/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/testsuite' Run "make check" or "make installcheck". make check-DEJAGNU make[5]: Entering directory '/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/testsuite' Making a new site.exp file ... srcdir='.'; export srcdir; \ EXPECT=expect; export EXPECT; \ if /bin/sh -c "env --unset=DEBUGINFOD_VERBOSE --unset=DEBUGINFOD_PROGRESS XDG_DATA_DIRS= SYSTEMTAP_SYNC=1 LANG=C SYSTEMTAP_TESTREMOTES= SYSTEMTAP_TESTAPPS= SYSTEMTAP_RUNTIME=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/runtime SYSTEMTAP_TAPSET=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/tapset CRASH_LIBDIR=/usr/lib64/systemtap PATH=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0:/usr/sbin:$PATH SYSTEMTAP_PATH=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0 SYSTEMTAP_SPATH=/usr/sbin SYSTEMTAP_INCLUDES=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/includes PKGLIBDIR=/usr/libexec/systemtap PYTHON=/usr/bin/python3.12 PYEXECDIR=/lib/python3.12/site-packages PYTHON3=/usr/bin/python3.12 PY3EXECDIR=/usr/lib/python3.12/site-packages SYSCONFDIR=/etc runtest --version" > /dev/null 2>&1; then \ exit_status=0; l='systemtap'; for tool in $l; do \ if env --unset=DEBUGINFOD_VERBOSE --unset=DEBUGINFOD_PROGRESS XDG_DATA_DIRS= SYSTEMTAP_SYNC=1 LANG=C SYSTEMTAP_TESTREMOTES= SYSTEMTAP_TESTAPPS= SYSTEMTAP_RUNTIME=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/runtime SYSTEMTAP_TAPSET=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/tapset CRASH_LIBDIR=/usr/lib64/systemtap PATH=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0:/usr/sbin:$PATH SYSTEMTAP_PATH=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0 SYSTEMTAP_SPATH=/usr/sbin SYSTEMTAP_INCLUDES=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/includes PKGLIBDIR=/usr/libexec/systemtap PYTHON=/usr/bin/python3.12 PYEXECDIR=/lib/python3.12/site-packages PYTHON3=/usr/bin/python3.12 PY3EXECDIR=/usr/lib/python3.12/site-packages SYSCONFDIR=/etc runtest --tool $tool --srcdir /var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/testsuite ; \ then :; else exit_status=1; fi; \ done; \ else echo "WARNING: could not find 'env --unset=DEBUGINFOD_VERBOSE --unset=DEBUGINFOD_PROGRESS XDG_DATA_DIRS= SYSTEMTAP_SYNC=1 LANG=C SYSTEMTAP_TESTREMOTES= SYSTEMTAP_TESTAPPS= SYSTEMTAP_RUNTIME=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/runtime SYSTEMTAP_TAPSET=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/tapset CRASH_LIBDIR=/usr/lib64/systemtap PATH=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0:/usr/sbin:$PATH SYSTEMTAP_PATH=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0 SYSTEMTAP_SPATH=/usr/sbin SYSTEMTAP_INCLUDES=/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/includes PKGLIBDIR=/usr/libexec/systemtap PYTHON=/usr/bin/python3.12 PYEXECDIR=/lib/python3.12/site-packages PYTHON3=/usr/bin/python3.12 PY3EXECDIR=/usr/lib/python3.12/site-packages SYSCONFDIR=/etc runtest'" 1>&2; :;\ fi; \ exit $exit_status WARNING: Couldn't find the global config file. Using /var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/testsuite/lib/systemtap.exp as tool init file. Checking for 64-bit support... spawn -ignore SIGHUP gcc hello.c -g -m64 -lm -o hello-m64 x86_64 64-bit support available Checking for 32-bit support... spawn -ignore SIGHUP gcc hello.c -g -m32 -lm -o hello-m32 x86_64 32-bit support available kernel location: kernel version: 6.6.28-gentoo-dist systemtap location: /var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/stap systemtap version: version 5.0/0.190, non-git sources gcc location: /usr/bin/gcc gcc version: gcc (Gentoo 13.2.1_p20240210 p14) 13.2.1 20240210 **** failed systemtap kernel-debuginfo smoke test: semantic error: while resolving probe point: identifier 'kernel' at <input>:1:7 source: probe kernel.function("do_exit") {println ($code)} ^ semantic error: no match Pass 2: analysis failed. [man error::pass2] child process exited abnormally **** aborting testing. make[5]: *** [Makefile:293: check-DEJAGNU] Error 1 make[5]: Leaving directory '/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/testsuite' make[4]: *** [Makefile:330: check-am] Error 2 make[4]: Leaving directory '/var/tmp/portage/dev-debug/systemtap-5.0-r1/work/systemtap-5.0/testsuite' ```
Created attachment 896776 [details] environment // profile default/linux/amd64/23.0/split-usr/desktop/plasma gcc-13.2.1_p20240210 O3 pipe march=native(verbose) lto graphite ggdb3
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d0a6ed89648091f6e250d6aa866cd2e7c1a29fe commit 4d0a6ed89648091f6e250d6aa866cd2e7c1a29fe Author: Sam James <sam@gentoo.org> AuthorDate: 2024-08-21 04:55:31 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-08-21 04:57:18 +0000 dev-debug/systemtap: make tests more robust They failed for me with my usual CFLAGS otherwise (the sanity check / smoketest failed, even). Bug: https://bugs.gentoo.org/868408 Bug: https://bugs.gentoo.org/935333 Signed-off-by: Sam James <sam@gentoo.org> dev-debug/systemtap/systemtap-5.1.ebuild | 16 +++++++++++++++- dev-debug/systemtap/systemtap-9999.ebuild | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-)
Created attachment 903044 [details] how_it_was_called.txt emerge_--info.txt /var/tmp/portage/dev-debug/systemtap-5.1-r1/{build-info/,files/,temp/,work/**{.log}} /var/lib/portage/ /etc/portage/ elog IDK how now it treats all warnings as error. from tarball -> /var/tmp/portage/dev-debug/systemtap-5.1-r1/temp/build.log : ``` **** failed systemtap kernel-devel smoke test: make[6]: warning: -j25 forced in submake: resetting jobserver mode. In file included from /var/tmp/portage/dev-debug/systemtap-5.1-r1/work/systemtap-5.1/runtime/runtime.h:26, from /var/tmp/portage/dev-debug/systemtap-5.1-r1/temp/stap57i98A/stap_7939021c90dbf3360afd910e7a74d9ec_1622_src.c:21: /var/tmp/portage/dev-debug/systemtap-5.1-r1/work/systemtap-5.1/runtime/stp_task_work.c: In function 'stp_task_work_cancel': /var/tmp/portage/dev-debug/systemtap-5.1-r1/work/systemtap-5.1/runtime/stp_task_work.c:13:123: error: passing argument 2 of '(bool (*)(struct task_struct *, struct callback_head *))kallsyms_task_work_cancel' from incompatible pointer type [-Werror=incompatible-pointer-types] 13 | #define task_work_cancel(a,b) ibt_wrapper(struct callback_head *, (* (task_work_cancel_fn)kallsyms_task_work_cancel)((a), (b))) | ^~~ | | | task_work_func_t {aka void (*)(struct callback_head *)} /var/tmp/portage/dev-debug/systemtap-5.1-r1/work/systemtap-5.1/runtime/linux/runtime.h:317:21: note: in definition of macro 'ibt_wrapper' 317 | rettype retval = (function); \ | ^~~~~~~~ /var/tmp/portage/dev-debug/systemtap-5.1-r1/work/systemtap-5.1/runtime/stp_task_work.c:107:17: note: in expansion of macro 'task_work_cancel' 107 | twork = task_work_cancel(task, func); | ^~~~~~~~~~~~~~~~ /var/tmp/portage/dev-debug/systemtap-5.1-r1/work/systemtap-5.1/runtime/stp_task_work.c:13:123: note: expected 'struct callback_head *' but argument is of type 'task_work_func_t' {aka 'void (*)(struct callback_head *)'} 13 | #define task_work_cancel(a,b) ibt_wrapper(struct callback_head *, (* (task_work_cancel_fn)kallsyms_task_work_cancel)((a), (b))) | ^~~ /var/tmp/portage/dev-debug/systemtap-5.1-r1/work/systemtap-5.1/runtime/linux/runtime.h:317:21: note: in definition of macro 'ibt_wrapper' 317 | rettype retval = (function); \ | ^~~~~~~~ /var/tmp/portage/dev-debug/systemtap-5.1-r1/work/systemtap-5.1/runtime/stp_task_work.c:107:17: note: in expansion of macro 'task_work_cancel' 107 | twork = task_work_cancel(task, func); | ^~~~~~~~~~~~~~~~ /var/tmp/portage/dev-debug/systemtap-5.1-r1/work/systemtap-5.1/runtime/linux/runtime.h:317:20: error: incompatible types when initializing type 'struct callback_head *' using type 'bool' {aka '_Bool'} 317 | rettype retval = (function); \ | ^ /var/tmp/portage/dev-debug/systemtap-5.1-r1/work/systemtap-5.1/runtime/stp_task_work.c:13:31: note: in expansion of macro 'ibt_wrapper' 13 | #define task_work_cancel(a,b) ibt_wrapper(struct callback_head *, (* (task_work_cancel_fn)kallsyms_task_work_cancel)((a), (b))) | ^~~~~~~~~~~ /var/tmp/portage/dev-debug/systemtap-5.1-r1/work/systemtap-5.1/runtime/stp_task_work.c:107:17: note: in expansion of macro 'task_work_cancel' 107 | twork = task_work_cancel(task, func); | ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[7]: *** [scripts/Makefile.build:243: /var/tmp/portage/dev-debug/systemtap-5.1-r1/temp/stap57i98A/stap_7939021c90dbf3360afd910e7a74d9ec_1622_src.o] Error 1 make[7]: Target '/var/tmp/portage/dev-debug/systemtap-5.1-r1/temp/stap57i98A/' not remade because of errors. make[6]: *** [Makefile:1921: /var/tmp/portage/dev-debug/systemtap-5.1-r1/temp/stap57i98A] Error 2 make[6]: Target 'modules' not remade because of errors. WARNING: kbuild exited with status: 2 Pass 4: compilation failed. [man error::pass4] Kernel version 6.6.47 is within tested range 2.6.32 ... 6.9-rc0 child process exited abnormally **** aborting testing. ```
(In reply to Arniii from comment #3) > Created attachment 903044 [details] > how_it_was_called.txt emerge_--info.txt > /var/tmp/portage/dev-debug/systemtap-5.1-r1/{build-info/,files/,temp/,work/ > **{.log}} /var/lib/portage/ /etc/portage/ elog > > IDK how now it treats all warnings as error. > That's misunderstanding the problem. systemtap is, by nature, unless using the BPF backend, sensitive to kernel version. I think some change got backported to 6.6 which broke it. 9999 should fix it.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f88644752f1c7080d1bb74de7c556c79f2d5cee commit 5f88644752f1c7080d1bb74de7c556c79f2d5cee Author: Sam James <sam@gentoo.org> AuthorDate: 2025-03-03 20:50:24 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-03-03 20:50:24 +0000 dev-debug/systemtap: restrict tests They don't pass on Gentoo -- some investigation is needed but when I last looked at it, even cloning from git & running outside of the ebuild, they fail because of some assumptions that would need fixing. No point in these blocking stabilisation right now. Closes: https://bugs.gentoo.org/923597 Closes: https://bugs.gentoo.org/935333 Closes: https://bugs.gentoo.org/946628 Signed-off-by: Sam James <sam@gentoo.org> dev-debug/systemtap/systemtap-5.1-r1.ebuild | 3 ++- dev-debug/systemtap/systemtap-5.2.ebuild | 5 +++-- dev-debug/systemtap/systemtap-9999.ebuild | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-)