[SOLVED] sys-libs/glibc-2.42-r5 missing symbols for avx512

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
ololoshwin
n00b
n00b
Posts: 16
Joined: Thu Nov 25, 2021 8:13 am

[SOLVED] sys-libs/glibc-2.42-r5 missing symbols for avx512

Post by ololoshwin »

I've installed sys-libs/glibc-2.42-r5:2.2::gentoo with FEATURES="splitdebug"

Unfortunately I can't find glibc function names in the back-traces and can't set working breakpoints to strlen()

strlen@plt redirect to the avx512 implementation.

Is it a bug?
Last edited by ololoshwin on Thu Mar 26, 2026 5:42 pm, edited 1 time in total.
User avatar
GDH-gentoo
Advocate
Advocate
Posts: 2110
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

Post by GDH-gentoo »

GNU libc's code is not the easiest to read, but, if I understand correctly, strlen() is defined as an indirect function on amd64, so that would match what you observe. It looks like the "resolver function" is named strlen_ifunc(), and the actual implementations, __strlen_variant() (e. g. __strlen_avx2, __strlen_evex, etc.).
NeddySeagoon wrote:I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
ololoshwin
n00b
n00b
Posts: 16
Joined: Thu Nov 25, 2021 8:13 am

Post by ololoshwin »

Found out USE=multiarch causing this weird things.
ololoshwin
n00b
n00b
Posts: 16
Joined: Thu Nov 25, 2021 8:13 am

Post by ololoshwin »

My bad. Real issue was missing -ggdb in CFLAGS and producing incomplete debug file. Now it works with multiarch too.
Post Reply