+ rm -f /builddir/build/BUILDROOT/gdb-12.1-5.0.riscv64.fc33.riscv64/usr/share/info/ctf-spec.info + rm -f /builddir/build/BUILDROOT/gdb-12.1-5.0.riscv64.fc33.riscv64/usr/share/info/dir + rm -f /builddir/build/BUILDROOT/gdb-12.1-5.0.riscv64.fc33.riscv64/usr/share/gdb/system-gdbinit/elinos.py + rm -f /builddir/build/BUILDROOT/gdb-12.1-5.0.riscv64.fc33.riscv64/usr/share/gdb/system-gdbinit/wrs-linux.py + rmdir /builddir/build/BUILDROOT/gdb-12.1-5.0.riscv64.fc33.riscv64/usr/share/gdb/system-gdbinit + rm -fv /builddir/build/BUILDROOT/gdb-12.1-5.0.riscv64.fc33.riscv64/usr/lib/debug/usr/bin/ rm: cannot remove '/builddir/build/BUILDROOT/gdb-12.1-5.0.riscv64.fc33.riscv64/usr/lib/debug/usr/bin/': Is a directory error: Bad exit status from /var/tmp/rpm-tmp.tZSg21 (%install) RPM build errors: /usr/lib/rpm/macros.d/macros.build-constraints: line 12: Macro %constrain_build has unterminated body /usr/lib/rpm/macros.d/macros.build-constraints: line 12: Macro %constrain_build has unterminated body Macro expanded in comment on line 63: %{tarname}.tar.xz extra tokens at the end of %endif directive in line 72: %endif # 0%{?_build_minimal} extra tokens at the end of %endif directive in line 250: %endif # 0%{?rhel:1} && 0%{?rhel} <= 7 extra tokens at the end of %endif directive in line 251: %endif # 0%{!?_without_python:1} extra tokens at the end of %else directive in line 322: %else #!s390x extra tokens at the end of %else directive in line 325: %else #!ppc extra tokens at the end of %endif directive in line 328: %endif #sparc64 ppc64 s390x x86_64 extra tokens at the end of %endif directive in line 329: %endif #!ppc extra tokens at the end of %endif directive in line 330: %endif #!s390x extra tokens at the end of %endif directive in line 428: %endif # 0%{?_with_testsuite:1} extra tokens at the end of %endif directive in line 460: %endif # 0%{?_build_minimal} extra tokens at the end of %endif directive in line 498: %endif # 0%{?rhel:1} && 0%{?rhel} <= 7 extra tokens at the end of %endif directive in line 660: %endif # 0%{?_build_minimal} extra tokens at the end of %endif directive in line 931: %endif # 0%{?_build_minimal} extra tokens at the end of %endif directive in line 941: %endif # 0%{!?_build_minimal} extra tokens at the end of %endif directive in line 970: %endif # 0%{?rhel:1} && 0%{?rhel} <= 6 extra tokens at the end of %endif directive in line 990: %endif # 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1} extra tokens at the end of %endif directive in line 1006: %endif # 0%{!?rhel:1} || 0%{?rhel} > 6 extra tokens at the end of %endif directive in line 1023: %endif # 0%{?rhel:1} && 0%{?rhel} <= 7 extra tokens at the end of %endif directive in line 1028: %endif # 0%{!?_without_python:1} extra tokens at the end of %endif directive in line 1129: %endif # 0%{?rhel:1} && 0%{?rhel} <= 6 extra tokens at the end of %endif directive in line 1138: %endif # 0%{?_build_minimal} extra tokens at the end of %endif directive in line 1146: %endif # %{have_inproctrace} extra tokens at the end of %endif directive in line 1163: %endif # 0%{!?rhel:1} extra tokens at the end of %endif directive in line 1164: %endif # 0%{!?_without_python:1} Bad exit status from /var/tmp/rpm-tmp.tZSg21 (%install) error: /usr/lib/rpm/macros.d/macros.build-constraints: line 12: Macro %constrain_build has unterminated body 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/gdb.spec