ns.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/include/haproxy/buf.h:142: undefined reference to `__atomic_fetch_add_1' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans33.ltrans.o: in function `.L0 ': /usr/include/bits/string_fortified.h:34: undefined reference to `__atomic_fetch_add_1' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans33.ltrans.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/src/trace.c:467: undefined reference to `__atomic_exchange_2' /usr/bin/ld: /builddir/build/BUILD/haproxy-2.2.2/src/trace.c:615: undefined reference to `__atomic_fetch_and_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans33.ltrans.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/include/haproxy/trace.h:114: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans33.ltrans.o:/builddir/build/BUILD/haproxy-2.2.2/src/trace.c:617: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans33.ltrans.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/src/task.c:381: undefined reference to `__atomic_exchange_2' /usr/bin/ld: /builddir/build/BUILD/haproxy-2.2.2/src/task.c:672: undefined reference to `__atomic_fetch_and_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans33.ltrans.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/include/import/eb32sctree.h:108: undefined reference to `__atomic_fetch_and_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans33.ltrans.o: in function `.LVL2515': /builddir/build/BUILD/haproxy-2.2.2/src/vars.c:50: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans33.ltrans.o: in function `action_clear': /builddir/build/BUILD/haproxy-2.2.2/src/vars.c:681: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans34.ltrans.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/include/haproxy/fd.h:266: undefined reference to `__atomic_fetch_or_1' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans34.ltrans.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/src/frontend.c:81: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans34.ltrans.o:/builddir/build/BUILD/haproxy-2.2.2/src/frontend.c:81: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans34.ltrans.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/src/frontend.c:237: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans34.ltrans.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/src/extcheck.c:171: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: /builddir/build/BUILD/haproxy-2.2.2/src/extcheck.c:158: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans34.ltrans.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/include/haproxy/task.h:185: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans34.ltrans.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/src/mailers.c:191: undefined reference to `__atomic_fetch_or_1' /usr/bin/ld: /tmp/haproxy.z8kxTC.ltrans35.ltrans.o: in function `.L0 ': /builddir/build/BUILD/haproxy-2.2.2/src/fd.c:418: undefined reference to `__atomic_fetch_or_1' collect2: error: ld returned 1 exit status make: *** [Makefile:864: haproxy] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.wEmypi (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.wEmypi (%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