Summary: | dev-libs/mimalloc-2.1.2 fails to build on ppc: libmimalloc.so.2.1: undefined reference to `__atomic_load_8' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | matoro <matoro_gentoo> |
Component: | Current packages | Assignee: | Matthew Smith <matthew> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | ionen, matoro_gentoo, mojyack, ppc, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | PPC | ||
OS: | Linux | ||
See Also: | https://github.com/microsoft/mimalloc/pull/898 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 721344, 917271 | ||
Attachments: | build.log and emerge --info |
Description
matoro
2024-01-29 01:22:43 UTC
Created attachment 883510 [details]
build.log and emerge --info
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dcd918b96cdb59f183ba8ae23821c69ad7833f0 commit 5dcd918b96cdb59f183ba8ae23821c69ad7833f0 Author: Matthew Smith <matthew@gentoo.org> AuthorDate: 2024-01-29 09:31:23 +0000 Commit: Matthew Smith <matthew@gentoo.org> CommitDate: 2024-01-29 09:33:48 +0000 dev-libs/mimalloc: append -latomic if required Closes: https://bugs.gentoo.org/923177 Suggested-by: Matoro Mahri <matoro_gentoo@matoro.tk> Signed-off-by: Matthew Smith <matthew@gentoo.org> dev-libs/mimalloc/mimalloc-2.1.2.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Unfortunately, the committed fix does not work, because this is a cmake project, and cmake does not respect LIBS environment variable, which is what is used to implement append-atomic-flags. Haven't looked too closely but last time I quickly checked mimalloc for atomic issues, it had some cmake logic for this already. It's *probably* just failing to use it when it should here. (that was in a rust crate rather than system's mimalloc, and in the end it no longer use mimalloc so don't think anyone went further with resolving that) Either way the append-atomic can be reverted. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8f1993453bb362f73c31b5eaa122f2ee1adf4c5 commit a8f1993453bb362f73c31b5eaa122f2ee1adf4c5 Author: Matthew Smith <matthew@gentoo.org> AuthorDate: 2024-04-23 17:35:46 +0000 Commit: Matthew Smith <matthew@gentoo.org> CommitDate: 2024-04-23 17:36:25 +0000 dev-libs/mimalloc: add 2.1.4 - Add -DMI_USE_LIBATOMIC=ON to force -latomic (#923177) - Add new -DMI_LIBC_MUSL if elibc_musl. Bug: https://bugs.gentoo.org/923177 Signed-off-by: Matthew Smith <matthew@gentoo.org> dev-libs/mimalloc/Manifest | 1 + dev-libs/mimalloc/mimalloc-2.1.4.ebuild | 37 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) I sent fix to upstream https://github.com/microsoft/mimalloc/pull/898 Thanks! |