next-20140529 - 'perf' fails to build on Fedora Rawhide...
So what did I do wrong with this build of 'perf' (other than trying to do it on a Fedora Rawhide box updated to last night? :)
(The obvious hack fix is to change the '#define _BSD_SOURCE 1' in util/util.h to use _DEFAULT_SOURCE instead, but not sure how that plays on older userspaces, as that was a glibc 2.19 feature that only escaped about 3 months ago....)
[/usr/src/linux-next/tools/perf] make
BUILD: Doing 'make -j4' parallel build
config/Makefile:580: No numa.h found, disables 'perf bench numa mem' benchmark, please install numactl-devel/libnuma-devel/libnuma-dev
Auto-detecting system features:
... dwarf: [ on ] ... glibc: [ on ] ... gtk2: [ on ] ... libaudit: [ on ] ... libbfd: [ on ] ... libelf: [ on ] ... libnuma: [ OFF ] ... libperl: [ OFF ] ... libpython: [ on ] ... libslang: [ on ] ... libunwind: [ on ] ... libdw-dwarf-unwind: [ on ]
... DWARF post unwind library: libunwind
GEN common-cmds.h
FLAGS: * new build flags or prefix
CC bench/mem-memcpy-x86-64-asm.o
CC bench/mem-memset-x86-64-asm.o
CC bench/mem-memcpy.o
CC bench/mem-memset.o
CC bench/futex-hash.o
CC bench/futex-wake.o
CC bench/futex-requeue.o
CC builtin-diff.o
In file included from /usr/include/unistd.h:25:0,
from util/util.h:44,
from builtin.h:4,
from builtin-diff.c:7:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^
CC builtin-evlist.o
CC builtin-help.o
In file included from /usr/include/unistd.h:25:0,
from util/util.h:44,
from builtin.h:4,
from builtin-evlist.c:5:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
^
cc1: all warnings being treated as errors
make[1]: *** [builtin-evlist.o] Error 1
make[1]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[1]: *** [builtin-diff.o] Error 1
PERF_VERSION = 3.15.rc7.g531a53
make: *** [all] Error 2