Description of problem: Package systemtap fails to build from source in Fedora Rawhide. Version-Release number of selected component (if applicable): 4.7~pre16395042gefae8a3d-2.fc36 Steps to Reproduce: koji build --scratch f36 systemtap-4.7~pre16395042gefae8a3d-2.fc36.src.rpm Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/systemtap
This has been fixed in the upstream version of systemtap by: commit 56c498d95c4749f15980da73b4933e7443b3f26c Author: Jonathan Wakely <jwakely.gcc> Date: Tue Jan 18 15:52:18 2022 -0500 gcc12 c++ compatibility tweak: use lambdas instead of ptr_fun<> Even while stap is a c++11 code base, such cleanups make code nicer to look at.
Attempted a respin of the systemtap git sources for rawhide, https://koji.fedoraproject.org/koji/taskinfo?taskID=81941041 . All the architectures built except armv7hl. A number of errors of the form: In file included from staptree.cxx:10: staptree.h: In member function 'next_statement::~next_statement()': staptree.h:841:8: error: pointer used after 'operator delete(void*, unsigned int)' [-Werror=use-after-free] 841 | struct next_statement: public statement | ^~~~~~~~~~~~~~ staptree.h:841:8: note: call to 'operator delete(void*, unsigned int)' here staptree.h: In member function 'continue_statement::~continue_statement()': staptree.h:834:8: error: pointer used after 'operator delete(void*, unsigned int)' [-Werror=use-after-free] 834 | struct continue_statement: public statement | ^~~~~~~~~~~~~~~~~~ Given that this is arch specific, it is looking like these use-after-free warning/errors may be a problem in gcc 12 rather than systemtap.
Have work around in the current systemtap.spec file for 247316, so the SRPM builds for rawhide.