Bug #13920
build failure due to distribution implicit compiler files: _FORTIFY_SOURCE on Gentoo
0%
Description
Gentoo's compiler patches include -D_FORTIFY_SOURCE=2 if -O2 or higher are used.
This causes lots of error spew that _FORTIFY_SOURCE is defined twice when compiling on Gentoo:
CXX cls/version/cls_version_client.o
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
To resolve this, we should explicitly undefine _FORTIFY_SOURCE before trying to define it again.
Associated revisions
Gentoo: _FORTIFY_SOURCE fix.
GCC under Gentoo has a patch that has a built-in define for
_FORTIFY_SOURCE if -O2 or higher are used. This causes warnings about
_FORTIFY_SOURCE redefined for every single object compiled.
Work around the issue by explicitly undefining _FORTIFY_SOURCE before we
define it again.
http://tracker.ceph.com/issues/13920 Fixes: #13920
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
History
#1 Updated by Robin Johnson almost 6 years ago
PR for fix is here: https://github.com/ceph/ceph/pull/6739
should be backported as well, but not 100% required.
#2 Updated by Alfredo Deza almost 6 years ago
- Project changed from teuthology to Ceph
#3 Updated by Sage Weil almost 6 years ago
- Status changed from New to 7
#4 Updated by Samuel Just almost 6 years ago
- Assignee set to Samuel Just
#5 Updated by Samuel Just almost 6 years ago
- Status changed from 7 to Resolved