Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828065 - dev-db/mariadb-10.6.5-r1: missing library atomic in RISC-V
Summary: dev-db/mariadb-10.6.5-r1: missing library atomic in RISC-V
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL: https://github.com/MariaDB/server/pul...
Whiteboard:
Keywords:
Depends on:
Blocks: libatomic-linking
  Show dependency tree
 
Reported: 2021-12-03 10:02 UTC by Yixun Lan
Modified: 2022-02-16 13:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.xz,40.75 KB, application/x-xz)
2021-12-03 10:03 UTC, Yixun Lan
Details
fix-check-libatomic.patch (mariadb-fix-libatomic.patch.patch,2.54 KB, patch)
2021-12-30 11:08 UTC, Alex Fan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2021-12-03 10:02:30 UTC
.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
Comment 1 Yixun Lan archtester gentoo-dev 2021-12-03 10:03:34 UTC
Created attachment 757253 [details]
build.log
Comment 2 Daniel Black 2021-12-29 23:48:19 UTC
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.
Comment 3 Yixun Lan archtester gentoo-dev 2021-12-30 02:52:08 UTC
(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
Comment 4 Alex Fan archtester 2021-12-30 11:08:37 UTC
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.
Comment 5 Yixun Lan archtester gentoo-dev 2022-01-31 10:23:22 UTC
@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)
Comment 6 Larry the Git Cow gentoo-dev 2022-02-16 13:32:30 UTC
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(-)