eference to `__atomic_fetch_add_1' /usr/bin/ld: /builddir/build/BUILD/libatomic_ops-7.6.10/tests/test_atomic_include.h:4510: undefined reference to `__atomic_fetch_add_1' /usr/bin/ld: test_atomic.o: in function `fprintf': /usr/include/bits/stdio2.h:100: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: test_atomic.o: in function `AO_fetch_and_add': /builddir/build/BUILD/libatomic_ops-7.6.10/tests/../src/atomic_ops/sysdeps/gcc/generic-arithm.h:171: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: test_atomic.o: in function `test_atomic_dd_acquire_read': /builddir/build/BUILD/libatomic_ops-7.6.10/tests/test_atomic_include.h:4806: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: /builddir/build/BUILD/libatomic_ops-7.6.10/tests/test_atomic_include.h:4818: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: test_atomic.o: in function `AO_short_fetch_and_add': /builddir/build/BUILD/libatomic_ops-7.6.10/tests/../src/atomic_ops/sysdeps/gcc/generic-arithm.h:71: undefined reference to `__atomic_compare_exchange_1' /usr/bin/ld: test_atomic.o: in function `test_atomic_dd_acquire_read': /builddir/build/BUILD/libatomic_ops-7.6.10/tests/test_atomic_include.h:4852: undefined reference to `__atomic_compare_exchange_1' /usr/bin/ld: test_atomic.o: in function `AO_char_fetch_and_add': /builddir/build/BUILD/libatomic_ops-7.6.10/tests/../src/atomic_ops/sysdeps/gcc/generic-arithm.h:21: undefined reference to `__atomic_compare_exchange_1' /usr/bin/ld: /builddir/build/BUILD/libatomic_ops-7.6.10/tests/../src/atomic_ops/sysdeps/gcc/generic-arithm.h:21: undefined reference to `__atomic_compare_exchange_1' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:618: test_atomic] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Entering directory '/builddir/build/BUILD/libatomic_ops-7.6.10/tests' gcc -DHAVE_CONFIG_H -DAO_PREFER_GENERALIZED -DAO_TEST_EMULATION -I../src -I../src -I../tests -I../tests -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o test_atomic_generalized-test_atomic.o `test -f 'test_atomic.c' || echo './'`test_atomic.c make[3]: Leaving directory '/builddir/build/BUILD/libatomic_ops-7.6.10/tests' make[3]: Entering directory '/builddir/build/BUILD/libatomic_ops-7.6.10/tests' gcc -DHAVE_CONFIG_H -DAO_USE_PTHREAD_DEFS -I../src -I../src -I../tests -I../tests -Wall -Wextra -Wpedantic -Wno-long-long -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o test_atomic_pthreads-test_atomic.o `test -f 'test_atomic.c' || echo './'`test_atomic.c make[3]: Leaving directory '/builddir/build/BUILD/libatomic_ops-7.6.10/tests' make[2]: *** [Makefile:977: check-am] Error 2 make[1]: *** [Makefile:980: check] Error 2 make: *** [Makefile:475: check-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.yMgA5g (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.yMgA5g (%check) 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/libatomic_ops.spec