BUILD: Doing 'make -j3' parallel build
Auto-detecting system features:
... dwarf: [ OFF ]
... glibc: [ on ]
... gtk2: [ OFF ]
... libaudit: [ OFF ]
... libbfd: [ OFF ]
... libelf: [ OFF ]
... libnuma: [ OFF ]
... numa_num_possible_cpus: [ OFF ]
... libperl: [ OFF ]
... libpython: [ OFF ]
... libslang: [ OFF ]
... libunwind: [ OFF ]
... libdw-dwarf-unwind: [ OFF ]
... zlib: [ OFF ]
... lzma: [ OFF ]
... get_cpuid: [ on ]
... bpf: [ on ]
config/Makefile:251: No libelf found, disables 'probe' tool and BPF support in 'perf record', please install elfutils-libelf-devel/libelf-dev
config/Makefile:350: Disabling post unwind, no support found.
config/Makefile:391: No libaudit.h found, disables 'trace' tool, please install audit-libs-devel or libaudit-dev
config/Makefile:406: slang not found, disables TUI support. Please install slang-devel or libslang-dev
config/Makefile:420: GTK2 not found, disables GTK2 support. Please install gtk2-devel or libgtk2.0-dev
config/Makefile:448: Missing perl devel files. Disabling perl scripting support, please install perl-ExtUtils-Embed/libperl-dev
config/Makefile:479: No 'python-config' tool was found: disables Python support - please install python-devel/python-dev
config/Makefile:581: No liblzma found, disables xz kernel module decompression, please install xz-devel/liblzma-dev
config/Makefile:594: No numa.h found, disables 'perf bench numa mem' benchmark, please install numactl-devel/libnuma-devel/libnuma-dev
GEN common-cmds.h
CC fixdep.o
LD fixdep-in.o
LINK fixdep
CC util/abspath.o
CC fd/array.o
LD fd/libapi-in.o
CC fs/fs.o
CC util/alias.o
CC fs/tracing_path.o
CC util/annotate.o
LD fs/libapi-in.o
CC cpu.o
PERF_VERSION = 4.4.94
CC event-parse.o
LD libapi-in.o
AR libapi.a
CC builtin-bench.o
CC builtin-annotate.o
CC event-plugin.o
CC trace-seq.o
CC builtin-diff.o
CC parse-filter.o
CC util/build-id.o
CC parse-utils.o
CC kbuffer-parse.o
LD libtraceevent-in.o
LINK libtraceevent.a
CC plugin_jbd2.o
CC util/config.o
LD plugin_jbd2-in.o
CC plugin_hrtimer.o
LD plugin_hrtimer-in.o
CC plugin_kmem.o
LD plugin_kmem-in.o
CC builtin-evlist.o
CC plugin_kvm.o
LD plugin_kvm-in.o
CC plugin_mac80211.o
LD plugin_mac80211-in.o
CC util/ctype.o
CC builtin-help.o
CC plugin_sched_switch.o
LD plugin_sched_switch-in.o
CC plugin_function.o
CC util/db-export.o
LD plugin_function-in.o
CC plugin_xen.o
LD plugin_xen-in.o
CC plugin_scsi.o
CC builtin-sched.o
LD plugin_scsi-in.o
CC plugin_cfg80211.o
LD plugin_cfg80211-in.o
LINK plugin_jbd2.so
LINK plugin_hrtimer.so
CC util/env.o
LINK plugin_kmem.so
LINK plugin_kvm.so
LINK plugin_mac80211.so
LINK plugin_sched_switch.so
LINK plugin_function.so
CC util/environment.o
LINK plugin_xen.so
LINK plugin_scsi.so
LINK plugin_cfg80211.so
GEN perf-archive
GEN perf-with-kcore
CC util/event.o
GEN libtraceevent-dynamic-list
CC util/evlist.o
CC builtin-buildid-list.o
CC util/evsel.o
CC builtin-buildid-cache.o
CC builtin-list.o
CC util/exec_cmd.o
CC builtin-record.o
CC util/find_next_bit.o
CC util/help.o
CC builtin-report.o
CC util/kallsyms.o
CC util/levenshtein.o
CC util/llvm-utils.o
CC util/parse-options.o
CC builtin-stat.o
BISON util/parse-events-bison.c
CC util/perf_regs.o
CC util/path.o
CC util/rbtree.o
CC util/bitmap.o
CC util/hweight.o
CC util/run-command.o
CC builtin-timechart.o
CC builtin-top.o
CC util/quote.o
CC util/strbuf.o
CC util/string.o
CC util/strlist.o
CC util/strfilter.o
CC util/top.o
CC builtin-script.o
CC util/usage.o
CC util/wrapper.o
CC builtin-kmem.o
CC util/sigchain.o
CC util/dso.o
CC builtin-lock.o
CC builtin-kvm.o
CC util/symbol.o
CC builtin-inject.o
CC builtin-mem.o
CC builtin-data.o
CC bench/sched-messaging.o
CC tests/builtin-test.o
CC util/color.o
CC bench/sched-pipe.o
CC tests/parse-events.o
CC util/pager.o
CC bench/mem-functions.o
CC util/header.o
CC bench/futex-hash.o
In file included from bench/futex-hash.c:17:0:
bench/futex.h: In function ‘futex_wait’:
bench/futex.h:36:10: error: ‘SYS_futex’ undeclared (first use in this function); did you mean ‘futex’?
syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3)
^
bench/futex.h:45:9: note: in expansion of macro ‘futex’
return futex(uaddr, FUTEX_WAIT, val, timeout, NULL, 0, opflags);
^~~~~
bench/futex.h:36:10: note: each undeclared identifier is reported only once for each function it appears in
syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3)
^
bench/futex.h:45:9: note: in expansion of macro ‘futex’
return futex(uaddr, FUTEX_WAIT, val, timeout, NULL, 0, opflags);
^~~~~
bench/futex.h: In function ‘futex_wake’:
bench/futex.h:36:10: error: ‘SYS_futex’ undeclared (first use in this function); did you mean ‘futex’?
syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3)
^
bench/futex.h:55:9: note: in expansion of macro ‘futex’
return futex(uaddr, FUTEX_WAKE, nr_wake, NULL, NULL, 0, opflags);
^~~~~
bench/futex.h: In function ‘futex_lock_pi’:
bench/futex.h:36:10: error: ‘SYS_futex’ undeclared (first use in this function); did you mean ‘futex’?
syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3)
^
bench/futex.h:66:9: note: in expansion of macro ‘futex’
return futex(uaddr, FUTEX_LOCK_PI, detect, timeout, NULL, 0, opflags);
^~~~~
bench/futex.h: In function ‘futex_unlock_pi’:
bench/futex.h:36:10: error: ‘SYS_futex’ undeclared (first use in this function); did you mean ‘futex’?
syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3)
^
bench/futex.h:75:9: note: in expansion of macro ‘futex’
return futex(uaddr, FUTEX_UNLOCK_PI, 0, NULL, NULL, 0, opflags);
^~~~~
bench/futex.h: In function ‘futex_cmp_requeue’:
bench/futex.h:36:10: error: ‘SYS_futex’ undeclared (first use in this function); did you mean ‘futex’?
syscall(SYS_futex, uaddr, op | opflags, val, timeout, uaddr2, val3)
^
bench/futex.h:87:9: note: in expansion of macro ‘futex’
return futex(uaddr, FUTEX_CMP_REQUEUE, nr_wake, nr_requeue, uaddr2,
^~~~~
bench/futex.h: In function ‘futex_wait’:
bench/futex.h:46:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
mv: 无法获取'bench/.futex-hash.o.tmp' 的文件状态(stat): 没有那个文件或目录
/home/user/Desktop/test/T40_INDUS_20221128/SDK_20221128/Zeratul_T40_Release_20220526/os/kernel/tools/build/Makefile.build:77: recipe for target 'bench/futex-hash.o' failed
make[3]: *** [bench/futex-hash.o] Error 1
/home/user/Desktop/test/T40_INDUS_20221128/SDK_20221128/Zeratul_T40_Release_20220526/os/kernel/tools/build/Makefile.build:116: recipe for target 'bench' failed
make[2]: *** [bench] Error 2
make[2]: *** 正在等待未完成的任务....
CC util/callchain.o
CC tests/dso-data.o
CC util/values.o
CC tests/attr.o
CC util/debug.o
CC util/machine.o
CC tests/vmlinux-kallsyms.o
CC util/map.o
CC tests/openat-syscall.o
CC tests/openat-syscall-all-cpus.o
CC util/pstack.o
CC tests/openat-syscall-tp-fields.o
CC util/session.o
CC util/ordered-events.o
CC tests/mmap-basic.o
CC tests/perf-record.o
CC util/comm.o
CC arch/common.o
CC tests/evsel-roundtrip-name.o
CC arch/x86/util/header.o
CC tests/evsel-tp-sched.o
CC util/thread.o
CC arch/x86/util/tsc.o
CC tests/fdarray.o
CC arch/x86/util/pmu.o
CC util/thread_map.o
CC tests/pmu.o
CC arch/x86/util/kvm-stat.o
CC tests/hists_common.o
CC arch/x86/util/perf_regs.o
CC util/trace-event-parse.o
CC arch/x86/util/auxtrace.o
CC tests/hists_link.o
CC util/parse-events-bison.o
CC arch/x86/util/intel-pt.o
CC tests/hists_filter.o
BISON util/pmu-bison.c
CC util/trace-event-read.o
CC tests/hists_output.o
CC arch/x86/util/intel-bts.o
CC util/trace-event-info.o
LD arch/x86/util/libperf-in.o
CC arch/x86/tests/arch-tests.o
CC tests/hists_cumulate.o
CC arch/x86/tests/rdpmc.o
CC util/trace-event-scripting.o
CC arch/x86/tests/perf-time-to-tsc.o
CC util/trace-event.o
CC tests/python-use.o
CC util/svghelper.o
CC arch/x86/tests/insn-x86.o
CC tests/bp_signal.o
CC arch/x86/tests/intel-cqm.o
CC tests/bp_signal_overflow.o
CC tests/task-exit.o
LD arch/x86/tests/libperf-in.o
LD arch/x86/libperf-in.o
LD arch/libperf-in.o
CC ui/setup.o
CC util/sort.o
CC tests/sw-clock.o
CC ui/helpline.o
CC tests/mmap-thread-lookup.o
CC ui/progress.o
tests/mmap-thread-lookup.c: In function ‘thread_init’:
tests/mmap-thread-lookup.c:42:20: error: ‘SYS_gettid’ undeclared (first use in this function); did you mean ‘__NR_gettid’?
td->tid = syscall(SYS_gettid);
^~~~~~~~~~
__NR_gettid
tests/mmap-thread-lookup.c:42:20: note: each undeclared identifier is reported only once for each function it appears in
mv: 无法获取'tests/.mmap-thread-lookup.o.tmp' 的文件状态(stat): 没有那个文件或目录
/home/user/Desktop/test/T40_INDUS_20221128/SDK_20221128/Zeratul_T40_Release_20220526/os/kernel/tools/build/Makefile.build:77: recipe for target 'tests/mmap-thread-lookup.o' failed
make[3]: *** [tests/mmap-thread-lookup.o] Error 1
/home/user/Desktop/test/T40_INDUS_20221128/SDK_20221128/Zeratul_T40_Release_20220526/os/kernel/tools/build/Makefile.build:116: recipe for target 'tests' failed
make[2]: *** [tests] Error 2
Makefile.perf:313: recipe for target 'perf-in.o' failed
make[1]: *** [perf-in.o] Error 2
make[1]: *** 正在等待未完成的任务....
CC ui/util.o
CC ui/hist.o
CC ui/stdio/hist.o
CC util/hist.o
CC util/util.o
CC util/xyarray.o
CC util/cpumap.o
LD ui/libperf-in.o
CC util/cgroup.o
CC util/target.o
CC util/rblist.o
CC util/intlist.o
CC util/vdso.o
CC util/counts.o
CC util/stat.o
CC util/stat-shadow.o
CC util/record.o
CC util/srcline.o
CC util/data.o
CC util/tsc.o
CC util/cloexec.o
CC util/thread-stack.o
CC util/auxtrace.o
CC util/intel-pt-decoder/intel-pt-pkt-decoder.o
GEN util/intel-pt-decoder/inat-tables.c
CC util/intel-pt-decoder/intel-pt-log.o
LD util/scripting-engines/libperf-in.o
LD scripts/libperf-in.o
CC util/intel-pt.o
CC util/intel-pt-decoder/intel-pt-decoder.o
CC util/intel-bts.o
CC util/parse-branch-options.o
CC util/parse-regs-options.o
CC util/symbol-minimal.o
CC util/intel-pt-decoder/intel-pt-insn-decoder.o
FLEX util/parse-events-flex.c
FLEX util/pmu-flex.c
CC util/pmu-bison.o
CC util/parse-events.o
CC util/parse-events-flex.o
LD util/intel-pt-decoder/libperf-in.o
CC util/pmu.o
CC util/pmu-flex.o
LD util/libperf-in.o
LD libperf-in.o
Makefile:68: recipe for target 'all' failed
make: *** [all] Error 2
解决方法:https://lkml.iu.edu/hypermail/linux/kernel/1711.1/03156.html