linux_dsm_epyc7002/tools/build/feature
Petri Gynther f151f53aa4 perf tools: Fix build errors with mipsel-linux-uclibc compiler
linux/tools$ make ARCH=mips CROSS_COMPILE=mipsel-linux- perf
...
config/Makefile:256: *** No gnu/libc-version.h found, please install
glibc-dev[el].  Stop.
make[1]: *** [all] Error 2
make: *** [perf] Error 2

...
In file included from builtin-sched.c:13:0:
util/cloexec.h:8:12: error: redundant redeclaration of ‘sched_getcpu’
 [-Werror=redundant-decls]
 extern int sched_getcpu(void) __THROW;

mipsel-buildroot-linux-uclibc/sysroot/usr/include/bits/sched.h:88:12:
 note: previous declaration of ‘sched_getcpu’ was here
 extern int sched_getcpu (void) __THROW;

uclibc info:
sysroot/usr/include/bits/uClibc_config.h
__UCLIBC_MAJOR__ 0
__UCLIBC_MINOR__ 9
__UCLIBC_SUBLEVEL__ 33

sysroot/usr/include/features.h
__UCLIBC__ 1
__GLIBC__ 2
__GLIBC_MINOR__ 2

Signed-off-by: Petri Gynther <pgynther@google.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1438735081-24131-1-git-send-email-pgynther@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-05 16:56:16 -03:00
..
.gitignore perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
Makefile tools build: Add feature check for lzma library 2015-03-21 14:53:39 -03:00
test-all.c tools build: Add feature check for lzma library 2015-03-21 14:53:39 -03:00
test-backtrace.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-bionic.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-compile.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-cplus-demangle.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-dwarf.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-fortify-source.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-glibc.c perf tools: Fix build errors with mipsel-linux-uclibc compiler 2015-08-05 16:56:16 -03:00
test-gtk2-infobar.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-gtk2.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-hello.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libaudit.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libbabeltrace.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libbfd.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libdw-dwarf-unwind.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libelf-getphdrnum.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libelf-mmap.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libelf.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libnuma.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libperl.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libpython-version.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libpython.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libslang.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libunwind-debug-frame.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-libunwind.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-lzma.c tools build: Add feature check for lzma library 2015-03-21 14:53:39 -03:00
test-pthread-attr-setaffinity-np.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-stackprotector-all.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-sync-compare-and-swap.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-timerfd.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00
test-zlib.c perf build: Move feature checks code under tools/build 2015-03-21 14:53:35 -03:00