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 -ftemplate-depth=512 -Wno-format-zero-length -lboost_system -lssl -lcrypto -L/usr/lib64 -L/builddir/build/BUILD/libtorrent-rasterbar-1.2.10/build/src/.libs -o client_test client_test.o print.o session_view.o torrent_view.o ../src/libtorrent-rasterbar.la -lboost_system -lpthread libtool: link: g++ -std=c++14 -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 -ftemplate-depth=512 -Wno-format-zero-length -o .libs/client_test client_test.o print.o session_view.o torrent_view.o -L/builddir/build/BUILD/libtorrent-rasterbar-1.2.10/build/src/.libs -L/usr/lib64 ../src/.libs/libtorrent-rasterbar.so -lssl -lcrypto -lboost_system -lpthread /bin/sh ../libtool --tag=CXX --mode=link g++ -std=c++14 -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 -ftemplate-depth=512 -Wno-format-zero-length -lboost_system -lssl -lcrypto -L/usr/lib64 -L/builddir/build/BUILD/libtorrent-rasterbar-1.2.10/build/src/.libs -o stats_counters stats_counters.o ../src/libtorrent-rasterbar.la -lboost_system -lpthread libtool: link: g++ -std=c++14 -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 -ftemplate-depth=512 -Wno-format-zero-length -o .libs/stats_counters stats_counters.o -L/builddir/build/BUILD/libtorrent-rasterbar-1.2.10/build/src/.libs -L/usr/lib64 ../src/.libs/libtorrent-rasterbar.so -lssl -lcrypto -lboost_system -lpthread /usr/bin/ld: ../src/.libs/libtorrent-rasterbar.so: undefined reference to `__atomic_exchange_1' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:555: stats_counters] Error 1 make[1]: *** Waiting for unfinished jobs.... /usr/bin/ld: ../src/.libs/libtorrent-rasterbar.so: undefined reference to `__atomic_exchange_1' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:531: client_test] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/libtorrent-rasterbar-1.2.10/build/examples' make: *** [Makefile:654: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.U9oDat (%build) RPM build errors: extra tokens at the end of %endif directive in line 121: %endif # with python3 extra tokens at the end of %endif directive in line 212: %endif # with_python3 extra tokens at the end of %endif directive in line 251: %endif # with python3 extra tokens at the end of %endif directive in line 300: %endif # with python3 Bad exit status from /var/tmp/rpm-tmp.U9oDat (%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/rb_libtorrent.spec