d/BUILD/kernel-5.19.fc37/linux-5.19/tools/include/uapi -I/builddir/build/BUILD/kernel-5.19.fc37/linux-5.19/tools/arch/riscv/include/ -I/builddir/build/BUILD/kernel-5.19.fc37/linux-5.19/tools/arch/riscv/ -I/builddir/build/BUILD/kernel-5.19.fc37/linux-5.19/tools/perf/util -I/builddir/build/BUILD/kernel-5.19.fc37/linux-5.19/tools/perf -I/builddir/build/BUILD/kernel-5.19.fc37/linux-5.19/tools/lib/ -DHAVE_PTHREAD_ATTR_SETAFFINITY_NP -DHAVE_PTHREAD_BARRIER -DHAVE_EVENTFD_SUPPORT -DHAVE_GET_CURRENT_DIR_NAME -DHAVE_GETTID -DHAVE_FILE_HANDLE -DHAVE_DWARF_GETLOCATIONS_SUPPORT -DHAVE_GLIBC_SUPPORT -DHAVE_AIO_SUPPORT -DHAVE_SCHED_GETCPU_SUPPORT -DHAVE_SETNS_SUPPORT -DHAVE_LIBELF_SUPPORT -DHAVE_ELF_GETPHDRNUM_SUPPORT -DHAVE_GELF_GETNOTE_SUPPORT -DHAVE_ELF_GETSHDRSTRNDX_SUPPORT -DHAVE_DWARF_SUPPORT -DHAVE_LIBBPF_SUPPORT -DHAVE_LIBBPF_BTF__LOAD_FROM_KERNEL_BY_ID -DHAVE_LIBBPF_BPF_PROG_LOAD -DHAVE_LIBBPF_BPF_OBJECT__NEXT_PROGRAM -DHAVE_LIBBPF_BPF_OBJECT__NEXT_MAP -DHAVE_LIBBPF_BTF__RAW_DATA -DHAVE_BPF_PROLOGUE -DHAVE_SDT_EVENT -DHAVE_JITDUMP -DHAVE_DWARF_UNWIND_SUPPORT -DHAVE_LIBAUDIT_SUPPORT -DHAVE_LIBCRYPTO_SUPPORT -DHAVE_SLANG_SUPPORT -DHAVE_LIBPERL_SUPPORT -DHAVE_TIMERFD_SUPPORT -DHAVE_LIBPYTHON_SUPPORT -DHAVE_LIBBFD_BUILDID_SUPPORT -DHAVE_CPLUS_DEMANGLE_SUPPORT -DHAVE_LIBBFD_SUPPORT -DHAVE_ZLIB_SUPPORT -DHAVE_LZMA_SUPPORT -DHAVE_ZSTD_SUPPORT -DHAVE_LIBCAP_SUPPORT -DHAVE_BACKTRACE_SUPPORT -DHAVE_LIBNUMA_SUPPORT -DDISASM_FOUR_ARGS_SIGNATURE -DHAVE_LIBBABELTRACE_SUPPORT -DHAVE_AUXTRACE_SUPPORT -DHAVE_JVMTI_CMLR -DLIBTRACEEVENT_VERSION=66303 -D"BUILD_STR(s)=#s" -c -o tests/llvm-src-relocation.o tests/llvm-src-relocation.c ld -r -o tests/perf-in.o tests/builtin-test.o tests/parse-events.o tests/dso-data.o tests/attr.o tests/vmlinux-kallsyms.o tests/openat-syscall.o tests/openat-syscall-all-cpus.o tests/openat-syscall-tp-fields.o tests/mmap-basic.o tests/perf-record.o tests/evsel-roundtrip-name.o tests/evsel-tp-sched.o tests/fdarray.o tests/pmu.o tests/pmu-events.o tests/hists_common.o tests/hists_link.o tests/hists_filter.o tests/hists_output.o tests/hists_cumulate.o tests/python-use.o tests/bp_signal.o tests/bp_signal_overflow.o tests/bp_account.o tests/wp.o tests/task-exit.o tests/sw-clock.o tests/mmap-thread-lookup.o tests/thread-maps-share.o tests/switch-tracking.o tests/keep-tracking.o tests/code-reading.o tests/sample-parsing.o tests/parse-no-sample-id-all.o tests/kmod-path.o tests/thread-map.o tests/llvm.o tests/llvm-src-base.o tests/llvm-src-kbuild.o tests/llvm-src-prologue.o tests/llvm-src-relocation.o tests/bpf.o tests/topology.o tests/mem.o tests/cpumap.o tests/stat.o tests/event_update.o tests/event-times.o tests/expr.o tests/backward-ring-buffer.o tests/sdt.o tests/is_printable_array.o tests/bitmap.o tests/perf-hooks.o tests/clang.o tests/unit_number__scnprintf.o tests/mem2node.o tests/maps.o tests/time-utils-test.o tests/genelf.o tests/api-io.o tests/demangle-java-test.o tests/demangle-ocaml-test.o tests/pfm.o tests/parse-metric.o tests/pe-file-parsing.o tests/expand-cgroup.o tests/perf-time-to-tsc.o tests/dlfilter-test.o tests/sigtrap.o make[2]: *** [Makefile.perf:664: perf-in.o] Error 2 make[1]: *** [Makefile.perf:240: sub-make] Error 2 make: Leaving directory '/builddir/build/BUILD/kernel-5.19.fc37/linux-5.19/tools/perf' make: *** [Makefile:70: all] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.g8xK0G (%build) Bad exit status from /var/tmp/rpm-tmp.g8xK0G (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/kernel-tools.spec