atomic_compare_exchange_2' BUILDSTDERR: /usr/bin/ld: test_atomic.o: in function `AO_fetch_and_add': BUILDSTDERR: /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' BUILDSTDERR: /usr/bin/ld: test_atomic.o: in function `AO_short_load': BUILDSTDERR: /builddir/build/BUILD/libatomic_ops-7.6.10/tests/../src/atomic_ops/sysdeps/gcc/generic-small.h:181: undefined reference to `__atomic_compare_exchange_2' BUILDSTDERR: /usr/bin/ld: test_atomic.o: in function `AO_short_fetch_and_add': BUILDSTDERR: /builddir/build/BUILD/libatomic_ops-7.6.10/tests/../src/atomic_ops/sysdeps/gcc/generic-arithm.h:71: undefined reference to `__atomic_compare_exchange_2' BUILDSTDERR: /usr/bin/ld: test_atomic.o: in function `test_atomic_dd_acquire_read': BUILDSTDERR: /builddir/build/BUILD/libatomic_ops-7.6.10/tests/test_atomic_include.h:4824: undefined reference to `__atomic_compare_exchange_1' BUILDSTDERR: /usr/bin/ld: test_atomic.o: in function `AO_char_fetch_and_add': BUILDSTDERR: /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' BUILDSTDERR: /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' BUILDSTDERR: /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' BUILDSTDERR: collect2: error: ld returned 1 exit status BUILDSTDERR: make[3]: *** [Makefile:618: test_atomic] Error 1 BUILDSTDERR: 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' BUILDSTDERR: make[2]: *** [Makefile:977: check-am] Error 2 BUILDSTDERR: make[1]: *** [Makefile:980: check] Error 2 BUILDSTDERR: make: *** [Makefile:475: check-recursive] Error 1 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.GibxQY (%check) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.GibxQY (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, in do 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