Summary: | sys-devel/gettext-0.21.1: Undefined symbols for architecture arm64: "_gl_get_setlocale_null_lock" | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Tom Li <biergaizi2009> |
Component: | Prefix Support | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | ARM64 | ||
OS: | OS X | ||
See Also: | https://github.com/gentoo/gentoo/pull/29655 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 886491 |
Description
Tom Li
2023-02-18 21:55:35 UTC
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b4388cc6898865367e9ae91385449313c5dfb96 commit 7b4388cc6898865367e9ae91385449313c5dfb96 Author: Yifeng Li <tomli@tomli.me> AuthorDate: 2023-02-19 19:21:17 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2023-02-19 19:21:17 +0000 sys-devel/gettext: fix macOS bootstrap build. When bootstrapping Gentoo Prefix on macOS 13.2 (Ventura) on an Apple M1 system, it will fail at stage3 (note that there are other bugs that prevent the bootstrapping from reach stage3, which must also be resolved) due to the following build failure in sys-devel/gettext-0.21.1: Undefined symbols for architecture arm64: "_gl_get_setlocale_null_lock", referenced from: _libgettextpo_setlocale_null_r in libgnu.a(setlocale_null.o) _libgettextpo_setlocale_null in libgnu.a(setlocale_null.o) ld: symbol(s) not found for architecture arm64 A quick search of the symbol "_gl_get_setlocale_null_lock" revealed that the bug is actually already known - GNU gettext bug 62659 [1]. It failed to find the symbol because GNU's libintl was not present during the bootstrap stage (though it would be installed later), and due to the hardcoded OMIT_SETLOCALE_LOCK value, GNU gettext still attempts to use SETLOCALE_LOCK. Currently the Portage tree already contains a patch for musl. The simplest fix is just applying the same patch to Darwin as well. [1] https://savannah.gnu.org/bugs/?62659 Closes: https://github.com/gentoo/gentoo/pull/29655 Closes: https://bugs.gentoo.org/895330 Signed-off-by: Yifeng Li <tomli@tomli.me> Signed-off-by: David Seifert <soap@gentoo.org> sys-devel/gettext/gettext-0.21.1.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) |