cpy' offset [275, 511] from the object at '' is out of the bounds of referenced subobject 'd_name' with type 'char[256]' at offset 19 [-Warray-bounds] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/dirent.h:61, from util/parse-events.c:5: util/parse-events.c: In function 'tracepoint_id_to_path': /usr/include/bits/dirent.h:33:10: note: subobject 'd_name' declared here 33 | char d_name[256]; /* We must not include limits.h! */ | ^~~~~~ ld -r -o util/perf-in.o util/annotate.o util/block-info.o util/block-range.o util/build-id.o util/cacheline.o util/config.o util/copyfile.o util/ctype.o util/db-export.o util/env.o util/event.o util/evlist.o util/evsel.o util/evsel_fprintf.o util/perf_event_attr_fprintf.o util/evswitch.o util/find_bit.o util/get_current_dir_name.o util/kallsyms.o util/levenshtein.o util/llvm-utils.o util/mmap.o util/memswap.o util/parse-events.o util/perf_regs.o util/path.o util/print_binary.o util/rlimit.o util/argv_split.o util/rbtree.o util/libstring.o util/bitmap.o util/hweight.o util/smt.o util/strbuf.o util/string.o util/strlist.o util/strfilter.o util/top.o util/usage.o util/dso.o util/dsos.o util/symbol.o util/symbol_fprintf.o util/color.o util/color_config.o util/metricgroup.o util/header.o util/callchain.o util/values.o util/debug.o util/fncache.o util/machine.o util/map.o util/pstack.o util/session.o util/sample-raw.o util/s390-sample-raw.o util/syscalltbl.o util/ordered-events.o util/namespaces.o util/comm.o util/thread.o util/thread_map.o util/trace-event-parse.o util/parse-events-flex.o util/parse-events-bison.o util/pmu.o util/pmu-flex.o util/pmu-bison.o util/trace-event-read.o util/trace-event-info.o util/trace-event-scripting.o util/trace-event.o util/svghelper.o util/sort.o util/hist.o util/util.o util/cpumap.o util/affinity.o util/cputopo.o util/cgroup.o util/target.o util/rblist.o util/intlist.o util/vdso.o util/counts.o util/stat.o util/stat-shadow.o util/stat-display.o util/record.o util/srcline.o util/srccode.o util/synthetic-events.o util/data.o util/tsc.o util/cloexec.o util/call-path.o util/rwsem.o util/thread-stack.o util/spark.o util/auxtrace.o util/intel-pt-decoder/perf-in.o util/intel-pt.o util/intel-bts.o util/arm-spe.o util/arm-spe-pkt-decoder.o util/s390-cpumsf.o util/parse-branch-options.o util/dump-insn.o util/parse-regs-options.o util/term.o util/help-unknown-cmd.o util/mem-events.o util/vsprintf.o util/units.o util/time-utils.o util/expr-bison.o util/branch.o util/mem2node.o util/bpf-loader.o util/bpf_map.o util/symbol-elf.o util/probe-file.o util/probe-event.o util/scripting-engines/perf-in.o util/zlib.o util/lzma.o util/demangle-java.o util/demangle-rust.o util/perf-hooks.o util/bpf-event.o make[2]: *** [Makefile.perf:616: perf-in.o] Error 2 make[1]: *** [Makefile.perf:225: sub-make] Error 2 make: *** [Makefile:70: all] Error 2 make: Leaving directory '/builddir/build/BUILD/kernel-5.4.fc33/linux-5.4/tools/perf' error: Bad exit status from /var/tmp/rpm-tmp.yzZJdo (%build) RPM build errors: extra tokens at the end of %endif directive in line 271: %endif #turbostat/x86_energy_perf_policy extra tokens at the end of %endif directive in line 358: %endif #turbostat/x86_energy_perf_policy Bad exit status from /var/tmp/rpm-tmp.yzZJdo (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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