-D_LARGEFILE_SOURCE -D_LARGE_FILES -pipe -D _GNU_SOURCE -I../include -Werror -Wall -g -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wstrict-prototypes -c emu_list.c -fPIC -DPIC -o .libs/emu_list.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D _GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -pipe -D _GNU_SOURCE -I../include -Werror -Wall -g -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wstrict-prototypes -c emu_list.c -o emu_list.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D _GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -pipe -D _GNU_SOURCE -I../include -Werror -Wall -g -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wstrict-prototypes -c emu_hashtable.c -o emu_hashtable.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D _GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -pipe -D _GNU_SOURCE -I../include -Werror -Wall -g -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -Wstrict-prototypes -c emu_graph.c -o emu_graph.o >/dev/null 2>&1 make[3]: *** [Makefile:846: emu_list.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [Makefile:846: emu_hashtable.lo] Error 1 make[3]: *** [Makefile:846: emu_graph.lo] Error 1 make[3]: Leaving directory '/builddir/build/BUILD/libemu-ab48695b7113db692982a1839e3d6eb9e73e90a9/src' make[2]: *** [Makefile:865: all-recursive] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/libemu-ab48695b7113db692982a1839e3d6eb9e73e90a9/src' make[1]: *** [Makefile:465: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/libemu-ab48695b7113db692982a1839e3d6eb9e73e90a9' make: *** [Makefile:374: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.y0DWdq (%build) RPM build errors: extra tokens at the end of %endif directive in line 102: %endif #build_release extra tokens at the end of %endif directive in line 245: %endif #with_python2 extra tokens at the end of %endif directive in line 261: %endif #with_python3 extra tokens at the end of %endif directive in line 325: %endif #with_python2 extra tokens at the end of %endif directive in line 332: %endif #with_python3 extra tokens at the end of %endif directive in line 391: %endif #with_python3 Bad exit status from /var/tmp/rpm-tmp.y0DWdq (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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/libemu.spec