mon.o gpio-event-mon.c gpio-event-mon.c: In function 'monitor_device': gpio-event-mon.c:40:8: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration] 40 | ret = asprintf(&chrdev_name, "/dev/%s", device_name); | ^~~~~~~~ | vsprintf ld -r -o gpio-event-mon-in.o gpio-event-mon.o gpio-utils.o make[1]: Leaving directory '/builddir/build/BUILD/kernel-5.13.fc33/linux-5.13/tools/gpio' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -O2 -Wall -g -D_GNU_SOURCE -Iinclude -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld gpio-event-mon-in.o -o gpio-event-mon make -f /builddir/build/BUILD/kernel-5.13.fc33/linux-5.13/tools/build/Makefile.build dir=. obj=gpio-watch make[1]: Entering directory '/builddir/build/BUILD/kernel-5.13.fc33/linux-5.13/tools/gpio' gcc -Wp,-MD,./.gpio-watch.o.d -Wp,-MT,gpio-watch.o -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -D"BUILD_STR(s)=#s" -c -o gpio-watch.o gpio-watch.c ld -r -o gpio-watch-in.o gpio-watch.o make[1]: Leaving directory '/builddir/build/BUILD/kernel-5.13.fc33/linux-5.13/tools/gpio' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fcommon -fasynchronous-unwind-tables -fstack-clash-protection -O2 -Wall -g -D_GNU_SOURCE -Iinclude -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld gpio-watch-in.o -o gpio-watch + popd ~/build/BUILD/kernel-5.13.fc33/linux-5.13 ++ rpm -qa ++ grep kernel-devel ++ grep 5.13 + develpackage= RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.cTRqaw (%build) 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.cTRqaw (%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 32c7b20a6c9042b7a39a54bec6a406a1 -D /var/lib/mock/f33-build-631854-67655/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.h5tnou34:/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