.6.5_build/sql && /usr/bin/cmake -E create_symlink mariadbd mysqld /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.1/../../../../riscv64-unknown-linux-gnu/bin/ld: sql/libsql.a(mysqld.cc.o): in function `.L 0 ': mysqld.cc:(.text+0x49fe): warning: fedisableexcept is not implemented and will always fail /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.1/../../../../riscv64-unknown-linux-gnu/bin/ld: storage/innobase/libinnobase.a(lock0lock.c c.o): in function `.L302': lock0lock.cc:(.text+0xa5c): undefined reference to `__atomic_fetch_and_1' /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.1/../../../../riscv64-unknown-linux-gnu/bin/ld: storage/innobase/libinnobase.a(lock0lock.c c.o): in function `lock_grant(ib_lock_t*)': lock0lock.cc:(.text+0xb6a): undefined reference to `__atomic_fetch_and_1' /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.1/../../../../riscv64-unknown-linux-gnu/bin/ld: storage/innobase/libinnobase.a(lock0lock.c c.o): in function `.L0 ': Reproducible: Always
Created attachment 757253 [details] build.log
If someone with Riscv64 hardware could test https://github.com/MariaDB/server/pull/1974 that was submitted upstream to fix that I'd appreciate it.
(In reply to Daniel Black from comment #2) > If someone with Riscv64 hardware could test > https://github.com/MariaDB/server/pull/1974 that was submitted upstream to > fix that I'd appreciate it. thanks for ping us, I've cherry-picked the patch and apply to 10.6.5, it works fine ~ I've commented on github's PR
Created attachment 760827 [details, diff] fix-check-libatomic.patch This patch can fix the issue and has been accepted upstream. It is based on 10.3 branch, so is compatible with 10.{4,5}. I have also tested 10.3 version on riscv64.
@mysql team, generally ping for this.. anyone is able to take care of this? otherwise I will make it a timeout, and commit myself in one week (2022/02/07)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c33132321de38c4b0b847827120be207a45b4e2f commit c33132321de38c4b0b847827120be207a45b4e2f Author: Yixun Lan <dlan@gentoo.org> AuthorDate: 2022-02-16 13:30:03 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2022-02-16 13:31:39 +0000 dev-db/mariadb: fix missing atomic lib issue Closes: https://bugs.gentoo.org/828065 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Yixun Lan <dlan@gentoo.org> dev-db/mariadb/Manifest | 2 +- dev-db/mariadb/mariadb-10.6.5-r1.ebuild | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)