Project

General

Profile

Actions

Bug #13920

closed

build failure due to distribution implicit compiler files: _FORTIFY_SOURCE on Gentoo

Added by Robin Johnson over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Gentoo's compiler patches include -D_FORTIFY_SOURCE=2 if -O2 or higher are used.

https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo/src/patchsets/gcc/4.9.3/gentoo/10_all_default-fortify-source.patch?view=markup

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.

Actions #1

Updated by Robin Johnson over 8 years ago

PR for fix is here: https://github.com/ceph/ceph/pull/6739
should be backported as well, but not 100% required.

Actions #2

Updated by Alfredo Deza over 8 years ago

  • Project changed from teuthology to Ceph
Actions #3

Updated by Sage Weil over 8 years ago

  • Status changed from New to 7
Actions #4

Updated by Samuel Just over 8 years ago

  • Assignee set to Samuel Just
Actions #5

Updated by Samuel Just over 8 years ago

  • Status changed from 7 to Resolved
Actions

Also available in: Atom PDF