event_value' diff.running = after->running - before->running; ~~~~~^ /builddir/build/BUILD/kernel-5.14.fc33/linux-5.14/tools/lib/bpf/bpf_helper_defs.h:7:8: note: forward declaration of 'struct bpf_perf_event_value' struct bpf_perf_event_value; ^ skeleton/profiler.bpf.c:82:41: error: incomplete definition of type 'struct bpf_perf_event_value' diff.running = after->running - before->running; ~~~~~~^ /builddir/build/BUILD/kernel-5.14.fc33/linux-5.14/tools/lib/bpf/bpf_helper_defs.h:7:8: note: forward declaration of 'struct bpf_perf_event_value' struct bpf_perf_event_value; ^ skeleton/profiler.bpf.c:86:9: error: incomplete definition of type 'struct bpf_perf_event_value' accum->counter += diff.counter; ~~~~~^ /builddir/build/BUILD/kernel-5.14.fc33/linux-5.14/tools/lib/bpf/bpf_helper_defs.h:7:8: note: forward declaration of 'struct bpf_perf_event_value' struct bpf_perf_event_value; ^ skeleton/profiler.bpf.c:87:9: error: incomplete definition of type 'struct bpf_perf_event_value' accum->enabled += diff.enabled; ~~~~~^ /builddir/build/BUILD/kernel-5.14.fc33/linux-5.14/tools/lib/bpf/bpf_helper_defs.h:7:8: note: forward declaration of 'struct bpf_perf_event_value' struct bpf_perf_event_value; ^ skeleton/profiler.bpf.c:88:9: error: incomplete definition of type 'struct bpf_perf_event_value' accum->running += diff.running; ~~~~~^ /builddir/build/BUILD/kernel-5.14.fc33/linux-5.14/tools/lib/bpf/bpf_helper_defs.h:7:8: note: forward declaration of 'struct bpf_perf_event_value' struct bpf_perf_event_value; ^ skeleton/profiler.bpf.c:96:38: error: array has incomplete element type 'struct bpf_perf_event_value' struct bpf_perf_event_value readings[MAX_NUM_MATRICS]; ^ /builddir/build/BUILD/kernel-5.14.fc33/linux-5.14/tools/lib/bpf/bpf_helper_defs.h:7:8: note: forward declaration of 'struct bpf_perf_event_value' struct bpf_perf_event_value; ^ 15 errors generated. make: *** [Makefile:164: profiler.bpf.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.wWLnht (%build) RPM build errors: extra tokens at the end of %endif directive in line 268: %endif #turbostat/x86_energy_perf_policy extra tokens at the end of %endif directive in line 368: %endif #turbostat/x86_energy_perf_policy bogus date in %changelog: Mon Jul 08 2020 Jeff Law - 5.8.0-0.rc4.git0.2 Bad exit status from /var/tmp/rpm-tmp.wWLnht (%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: # /usr/bin/systemd-nspawn -q -M 3ee817a144bd4236880b3c153a8f77bd -D /var/lib/mock/f33-build-632148-68016/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.uflmeaqq:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/kernel-tools.spec