Table_cache_instance::lock_and_check_contention(unsigned int, unsigned int)': /builddir/build/BUILD/mariadb-10.4.12/sql/table_cache.cc:181: undefined reference to `__atomic_exchange_1' /usr/bin/ld: ../libmariadbd.a(buf0buf.cc.o): in function `buf_pool_t::io_buf_t::reserve()': /builddir/build/BUILD/mariadb-10.4.12/storage/innobase/include/buf0buf.h:2267: undefined reference to `__atomic_exchange_1' collect2: error: ld returned 1 exit status make[2]: *** [libmysqld/examples/CMakeFiles/mysqltest_embedded.dir/build.make:91: libmysqld/examples/mysqltest_embedded] Error 1 make[1]: *** [CMakeFiles/Makefile2:10030: libmysqld/examples/CMakeFiles/mysqltest_embedded.dir/all] Error 2 make[2]: Entering directory '/builddir/build/BUILD/mariadb-10.4.12' [ 84%] Linking CXX executable mysql_client_test_embedded cd /builddir/build/BUILD/mariadb-10.4.12/libmysqld/examples && /usr/bin/cmake -E cmake_link_script CMakeFiles/mysql_client_test_embedded.dir/link.txt --verbose=1 /usr/bin/c++ -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 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -O3 -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -Wno-uninitialized -D_FORTIFY_SOURCE=2 -DDBUG_OFF -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--export-dynamic CMakeFiles/mysql_client_test_embedded.dir/__/__/tests/mysql_client_test.c.o -o mysql_client_test_embedded -lpthread ../libmariadbd.a -lpthread -lz -lm -ldl -lssl -lcrypto -lpcre -lcrypt -llz4 -llzma -laio -lsystemd -lsystemd make[2]: Leaving directory '/builddir/build/BUILD/mariadb-10.4.12' /usr/bin/ld: ../libmariadbd.a(lib_sql.cc.o): in function `.L0 ': /builddir/build/BUILD/mariadb-10.4.12/libmysqld/../sql/mysqld.cc:231: warning: fedisableexcept is not implemented and will always fail /usr/bin/ld: ../libmariadbd.a(table_cache.cc.o): in function `Table_cache_instance::lock_and_check_contention(unsigned int, unsigned int)': /builddir/build/BUILD/mariadb-10.4.12/sql/table_cache.cc:181: undefined reference to `__atomic_exchange_1' /usr/bin/ld: ../libmariadbd.a(buf0buf.cc.o): in function `buf_pool_t::io_buf_t::reserve()': /builddir/build/BUILD/mariadb-10.4.12/storage/innobase/include/buf0buf.h:2267: undefined reference to `__atomic_exchange_1' collect2: error: ld returned 1 exit status make[2]: *** [libmysqld/examples/CMakeFiles/mysql_client_test_embedded.dir/build.make:91: libmysqld/examples/mysql_client_test_embedded] Error 1 make[1]: *** [CMakeFiles/Makefile2:9922: libmysqld/examples/CMakeFiles/mysql_client_test_embedded.dir/all] Error 2 make: *** [Makefile:166: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.Yz2E8V (%build) RPM build errors: extra tokens at the end of %endif directive in line 797: %endif # f32 extra tokens at the end of %endif directive in line 799: %endif # debug extra tokens at the end of %endif directive in line 808: %endif # f32 extra tokens at the end of %endif directive in line 809: %endif # debug extra tokens at the end of %endif directive in line 1137: %endif # embedded Bad exit status from /var/tmp/rpm-tmp.Yz2E8V (%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/mariadb.spec