from staptree.h:13, from main.cxx:12: /usr/include/features.h:397:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] 397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ In file included from /usr/include/libintl.h:23, from session.h:14, ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_no_multilib_hardened-j3-20210606-185202 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.1.0 * Python 3.9.5 Available Ruby profiles: (none found) HEAD of ::gentoo commit 446ccb2c3eb0341ed3159be9a59ccdb53e04b5c1 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sun Jun 6 20:20:15 2021 +0000 2021-06-06 20:20:14 UTC emerge -qpvO dev-util/systemtap [ebuild N ] dev-util/systemtap-4.5 USE="ssl -libvirt (-selinux) -sqlite -test -zeroconf" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
Created attachment 714066 [details] emerge-info.txt
Created attachment 714069 [details] dev-util:systemtap-4.5:20210606-205744.log
Created attachment 714072 [details] emerge-history.txt
Created attachment 714075 [details] environment
Created attachment 714078 [details] etc.portage.tar.bz2
Created attachment 714081 [details] logs.tar.bz2
Created attachment 714084 [details] temp.tar.bz2
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d48b4e3e35ab368d7e219601194abd4b0ccd0a93 commit d48b4e3e35ab368d7e219601194abd4b0ccd0a93 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-05-24 18:56:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-05-24 18:58:01 +0000 dev-util/systemtap: don't force -D_FORTIFY_SOURCE=2 We already set it in the toolchain and forcing it (by default --enable-ssp) has two problems: 1. It prevents upgrading to -D_FORTIFY_SOURCE=3; 2. It prevents builds with no optimisation (as fortify requires it). --disable-ssp just disables *appending* -fstack-protector* and F_S=2, it doesn't actually disable the features by passing the negated flags like -fno* or -U*, so it's fine to do this. Closes: https://bugs.gentoo.org/794667 Signed-off-by: Sam James <sam@gentoo.org> dev-util/systemtap/systemtap-4.5-r1.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)