UILD/libatomic_ops-7.6.10/tests/test_atomic_include.h:4391: undefined reference to `__atomic_compare_exchange_1' /usr/bin/ld: /tmp/test_atomic_generalized.lqRtHI.ltrans0.ltrans.o:/builddir/build/BUILD/libatomic_ops-7.6.10/tests/test_atomic_include.h:4414: undefined reference to `__atomic_compare_exchange_1' /usr/bin/ld: /tmp/test_atomic_generalized.lqRtHI.ltrans0.ltrans.o: in function `.L0 ': /builddir/build/BUILD/libatomic_ops-7.6.10/tests/../src/atomic_ops/sysdeps/gcc/generic-small.h:268: undefined reference to `__atomic_compare_exchange_1' /usr/bin/ld: /tmp/test_atomic_generalized.lqRtHI.ltrans0.ltrans.o: in function `.L0 ': /builddir/build/BUILD/libatomic_ops-7.6.10/tests/../src/atomic_ops/generalize-small.h:1445: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: /tmp/test_atomic_generalized.lqRtHI.ltrans0.ltrans.o: in function `.L0 ': /usr/include/bits/stdio2.h:103: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: /tmp/test_atomic_generalized.lqRtHI.ltrans0.ltrans.o: in function `.L0 ': /builddir/build/BUILD/libatomic_ops-7.6.10/tests/test_atomic_include.h:4770: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: /tmp/test_atomic_generalized.lqRtHI.ltrans0.ltrans.o: in function `.L0 ': /usr/include/bits/stdio2.h:103: undefined reference to `__atomic_compare_exchange_2' /usr/bin/ld: /usr/include/bits/stdio2.h:103: undefined reference to `__atomic_compare_exchange_1' /usr/bin/ld: /usr/include/bits/stdio2.h:103: undefined reference to `__atomic_compare_exchange_1' /usr/bin/ld: /usr/include/bits/stdio2.h:103: undefined reference to `__atomic_compare_exchange_1' /usr/bin/ld: /usr/include/bits/stdio2.h:103: undefined reference to `__atomic_compare_exchange_1' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:622: test_atomic_generalized] Error 1 make[3]: Entering directory '/builddir/build/BUILD/libatomic_ops-7.6.10/tests' /bin/sh ../libtool --tag=CC --mode=link gcc -Wall -Wextra -Wpedantic -Wno-long-long -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 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o test_atomic_pthreads test_atomic_pthreads-test_atomic.o -lpthread ../src/libatomic_ops.la libtool: link: gcc -Wall -Wextra -Wpedantic -Wno-long-long -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 -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/test_atomic_pthreads test_atomic_pthreads-test_atomic.o -lpthread ../src/.libs/libatomic_ops.so 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.mSyMmn (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.mSyMmn (%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