Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 794667 - dev-util/systemtap-4.5 - /.../features.h: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
Summary: dev-util/systemtap-4.5 - /.../features.h: error: #warning _FORTIFY_SOURCE req...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-07 06:40 UTC by Toralf Förster
Modified: 2022-05-24 18:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,14.37 KB, text/plain)
2021-06-07 06:40 UTC, Toralf Förster
Details
dev-util:systemtap-4.5:20210606-205744.log (dev-util:systemtap-4.5:20210606-205744.log,19.90 KB, text/plain)
2021-06-07 06:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,9.51 KB, text/plain)
2021-06-07 06:40 UTC, Toralf Förster
Details
environment (environment,106.33 KB, text/plain)
2021-06-07 06:40 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.48 KB, application/x-bzip)
2021-06-07 06:40 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,12.03 KB, application/x-bzip)
2021-06-07 06:40 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,28.06 KB, application/x-bzip)
2021-06-07 06:40 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-06-07 06:40:03 UTC
                 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"
Comment 1 Toralf Förster gentoo-dev 2021-06-07 06:40:04 UTC
Created attachment 714066 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-06-07 06:40:06 UTC
Created attachment 714069 [details]
dev-util:systemtap-4.5:20210606-205744.log
Comment 3 Toralf Förster gentoo-dev 2021-06-07 06:40:07 UTC
Created attachment 714072 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-06-07 06:40:08 UTC
Created attachment 714075 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-06-07 06:40:09 UTC
Created attachment 714078 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-06-07 06:40:11 UTC
Created attachment 714081 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-06-07 06:40:12 UTC
Created attachment 714084 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-05-24 18:58:08 UTC
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(-)