-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -DAARCH64_BRANCH_PROTECTION_SUPPORTED=1 -O2 -flto=auto -ffat-lto-objects -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 -fasynchronous-unwind-tables -fstack-clash-protection -O2 -flto=auto -ffat-lto-objects -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 -fasynchronous-unwind-tables -fstack-clash-protection -module -o annobin.la -rpath /usr/lib/gcc/riscv64-redhat-linux/12/plugin annobin.lo riscv.annobin.lo libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/riscv64-redhat-linux/12/crti.o /usr/lib/gcc/riscv64-redhat-linux/12/crtbeginS.o .libs/annobin.o .libs/riscv.annobin.o -L/usr/lib/gcc/riscv64-redhat-linux/12 -L/lib64/lp64d/../lib64/lp64d -L/usr/lib64/lp64d/../lib64/lp64d -L/lib/../lib64/lp64d -L/usr/lib/../lib64/lp64d -L/lib64/lp64d -L/usr/lib64/lp64d -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/riscv64-redhat-linux/12/crtendS.o /usr/lib/gcc/riscv64-redhat-linux/12/crtn.o -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -flto=auto -g -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -O2 -flto=auto -g -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -O2 -flto=auto -g -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -Wl,-soname -Wl,annobin.so.0 -o .libs/annobin.so.0.0.0 libtool: link: (cd ".libs" && rm -f "annobin.so.0" && ln -s "annobin.so.0.0.0" "annobin.so.0") libtool: link: (cd ".libs" && rm -f "annobin.so" && ln -s "annobin.so.0.0.0" "annobin.so") libtool: link: ( cd ".libs" && rm -f "annobin.la" && ln -s "../annobin.la" "annobin.la" ) make[2]: Leaving directory '/builddir/build/BUILD/annobin-10.91/gcc-plugin' Making all in clang-plugin make[1]: Entering directory '/builddir/build/BUILD/annobin-10.91/clang-plugin' clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -shared -fPIC -Wall -O2 -flto -g -grecord-gcc-switches -Wl,--build-id=md5 -Wl,-z,now -I./.. -lLLVM annobin.cpp -o annobin-for-clang.so make[1]: Leaving directory '/builddir/build/BUILD/annobin-10.91/clang-plugin' In file included from annobin.cpp:15: In file included from /usr/include/clang/Frontend/FrontendPluginRegistry.h:16: In file included from /usr/include/clang/Frontend/FrontendAction.h:21: In file included from /usr/include/clang/Basic/LLVM.h:21: In file included from /usr/include/llvm/Support/Casting.h:17: In file included from /usr/include/llvm/ADT/Optional.h:19: In file included from /usr/include/llvm/ADT/Hashing.h:49: /usr/include/llvm/Support/SwapByteOrder.h:17:10: fatal error: 'cstddef' file not found #include ^~~~~~~~~ 1 error generated. make[1]: *** [Makefile:33: annobin-for-clang.so] Error 1 make: *** [Makefile:429: all-recursive] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.KhAjpR (%build) Bad exit status from /var/tmp/rpm-tmp.KhAjpR (%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/annobin.spec