he ‘< >’ 424 | TYPE (const TYPE&) = delete; \ | ^ ui-out.h:394:3: note: in expansion of macro ‘DISABLE_COPY_AND_ASSIGN’ 394 | DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ./../gdbsupport/common-defs.h:104, from defs.h:28, from xml-syscall.c:21: ./../include/ansidecl.h:424:8: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor] 424 | TYPE (const TYPE&) = delete; \ | ^ ui-out.h:394:3: note: in expansion of macro ‘DISABLE_COPY_AND_ASSIGN’ 394 | DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); | ^~~~~~~~~~~~~~~~~~~~~~~ ./../include/ansidecl.h:424:8: note: remove the ‘< >’ 424 | TYPE (const TYPE&) = delete; \ | ^ ui-out.h:394:3: note: in expansion of macro ‘DISABLE_COPY_AND_ASSIGN’ 394 | DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ./../gdbsupport/common-defs.h:104, from defs.h:28, from xml-tdesc.c:22: ./../include/ansidecl.h:424:8: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor] 424 | TYPE (const TYPE&) = delete; \ | ^ ui-out.h:394:3: note: in expansion of macro ‘DISABLE_COPY_AND_ASSIGN’ 394 | DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); | ^~~~~~~~~~~~~~~~~~~~~~~ ./../include/ansidecl.h:424:8: note: remove the ‘< >’ 424 | TYPE (const TYPE&) = delete; \ | ^ ui-out.h:394:3: note: in expansion of macro ‘DISABLE_COPY_AND_ASSIGN’ 394 | DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from ./../gdbsupport/common-defs.h:104, from ./defs.h:28, from gdbtk/generic/gdbtk-main.c:23: ./../include/ansidecl.h:424:8: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor] 424 | TYPE (const TYPE&) = delete; \ | ^ ./ui-out.h:394:3: note: in expansion of macro ‘DISABLE_COPY_AND_ASSIGN’ 394 | DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); | ^~~~~~~~~~~~~~~~~~~~~~~ ./../include/ansidecl.h:424:8: note: remove the ‘< >’ 424 | TYPE (const TYPE&) = delete; \ | ^ ./ui-out.h:394:3: note: in expansion of macro ‘DISABLE_COPY_AND_ASSIGN’ 394 | DISABLE_COPY_AND_ASSIGN (ui_out_emit_type); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [Makefile:1894: gdbtk/generic/gdbtk-main.o] Error 1 make[2]: *** Waiting for unfinished jobs.... cc1plus: all warnings being treated as errors make[2]: *** [Makefile:1894: xml-support.o] Error 1 cc1plus: all warnings being treated as errors make[2]: *** [Makefile:1894: xml-tdesc.o] Error 1 cc1plus: all warnings being treated as errors make[2]: Leaving directory '/builddir/build/BUILD/insight-13.0.50.20220502/gdb' make[2]: *** [Makefile:1894: xml-syscall.o] Error 1 make[1]: *** [Makefile:10939: all-gdb] Error 2 make[1]: Leaving directory '/builddir/build/BUILD/insight-13.0.50.20220502' make: *** [Makefile:1001: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.qrFEDO (%build) Bad exit status from /var/tmp/rpm-tmp.qrFEDO (%build) RPM build errors: 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/insight.spec