d: src/fd.o: in function `fd_insert': /builddir/build/BUILD/haproxy-2.1.6/include/proto/fd.h:374: undefined reference to `__atomic_fetch_or_1' /usr/bin/ld: src/proto_uxst.o: in function `uxst_connect_server': /builddir/build/BUILD/haproxy-2.1.6/src/proto_uxst.c:511: undefined reference to `__atomic_fetch_or_1' /usr/bin/ld: src/proto_uxst.o: in function `uxst_bind_listener': /builddir/build/BUILD/haproxy-2.1.6/src/proto_uxst.c:315: undefined reference to `__atomic_fetch_or_1' /usr/bin/ld: src/ring.o: in function `cli_io_release_show_ring': /builddir/build/BUILD/haproxy-2.1.6/src/ring.c:353: undefined reference to `__atomic_fetch_sub_1' /usr/bin/ld: src/ring.o: in function `cli_io_handler_show_ring': /builddir/build/BUILD/haproxy-2.1.6/src/ring.c:281: undefined reference to `__atomic_fetch_sub_1' /usr/bin/ld: src/ring.o: in function `b_peek_ofs': /builddir/build/BUILD/haproxy-2.1.6/include/common/buf.h:166: undefined reference to `__atomic_fetch_add_1' /usr/bin/ld: src/ring.o: in function `si_rx_room_blk': /builddir/build/BUILD/haproxy-2.1.6/include/proto/stream_interface.h:324: undefined reference to `__atomic_fetch_add_1' /usr/bin/ld: src/ring.o: in function `cli_io_handler_show_ring': /builddir/build/BUILD/haproxy-2.1.6/src/ring.c:269: undefined reference to `__atomic_fetch_add_1' /usr/bin/ld: src/ring.o: in function `b_orig': /builddir/build/BUILD/haproxy-2.1.6/include/common/buf.h:82: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld: src/ring.o: in function `task_wakeup': /builddir/build/BUILD/haproxy-2.1.6/include/proto/task.h:138: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: src/applet.o: in function `task_wakeup': /builddir/build/BUILD/haproxy-2.1.6/include/proto/task.h:138: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld: /builddir/build/BUILD/haproxy-2.1.6/include/proto/task.h:148: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: src/signal.o: in function `task_wakeup': /builddir/build/BUILD/haproxy-2.1.6/include/proto/task.h:138: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld: /builddir/build/BUILD/haproxy-2.1.6/include/proto/task.h:148: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: src/ev_select.o: in function `fd_update_events': /builddir/build/BUILD/haproxy-2.1.6/include/proto/fd.h:358: undefined reference to `__atomic_compare_exchange_1' /usr/bin/ld: src/proto_sockpair.o: in function `fd_may_both': /builddir/build/BUILD/haproxy-2.1.6/include/proto/fd.h:269: undefined reference to `__atomic_fetch_or_1' /usr/bin/ld: src/proto_sockpair.o: in function `fd_insert': /builddir/build/BUILD/haproxy-2.1.6/include/proto/fd.h:377: undefined reference to `__atomic_fetch_or_1' /usr/bin/ld: src/action.o: in function `task_wakeup': /builddir/build/BUILD/haproxy-2.1.6/include/proto/task.h:138: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld: /builddir/build/BUILD/haproxy-2.1.6/include/proto/task.h:148: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: /builddir/build/BUILD/haproxy-2.1.6/include/proto/task.h:138: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld: /builddir/build/BUILD/haproxy-2.1.6/include/proto/task.h:146: undefined reference to `__atomic_compare_exchange_2' collect2: error: ld returned 1 exit status make: *** [Makefile:877: haproxy] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.a7ajXU (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.a7ajXU (%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/haproxy.spec