forked from Minki/linux
cf9162c290
An i386 binary can be linked correctly even without correct headers. Which causes problem. For exmaple: $ mv /tmp/oxygen_root/usr/include/gnu/stubs-32.h{,.bak} $ make tools/perf Auto-detecting system features: ... dwarf: [ on ] [SNIP] GEN common-cmds.h CC perf-read-vdso32 In file included from /tmp/oxygen_root/usr/include/features.h:388:0, from /tmp/oxygen_root/usr/include/stdio.h:27, from perf-read-vdso.c:1: /tmp/oxygen_root/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory # include <gnu/stubs-32.h> ^ compilation terminated. ... In this patch we checks not only compiler and linker, but also basic headers in test-compile test case, make it fail on a platform lacking correct headers. Signed-off-by: Wang Nan <wangnan0@huawei.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Li Zefan <lizefan@huawei.com> Link: http://lkml.kernel.org/r/1453893742-20603-1-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
test-all.c | ||
test-backtrace.c | ||
test-bionic.c | ||
test-bpf.c | ||
test-compile.c | ||
test-cplus-demangle.c | ||
test-dwarf.c | ||
test-fortify-source.c | ||
test-get_cpuid.c | ||
test-glibc.c | ||
test-gtk2-infobar.c | ||
test-gtk2.c | ||
test-hello.c | ||
test-libaudit.c | ||
test-libbabeltrace.c | ||
test-libbfd.c | ||
test-libdw-dwarf-unwind.c | ||
test-libelf-getphdrnum.c | ||
test-libelf-mmap.c | ||
test-libelf.c | ||
test-libnuma.c | ||
test-libperl.c | ||
test-libpython-version.c | ||
test-libpython.c | ||
test-libslang.c | ||
test-libunwind-debug-frame.c | ||
test-libunwind.c | ||
test-lzma.c | ||
test-numa_num_possible_cpus.c | ||
test-pthread-attr-setaffinity-np.c | ||
test-stackprotector-all.c | ||
test-sync-compare-and-swap.c | ||
test-timerfd.c | ||
test-zlib.c |