Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 937446

Summary: sys-devel/gcc-14.2.0, undefined referece to _Unwind_GetIP, on ARM MUSL
Product: Gentoo Linux Reporter: Marius Dinu <marius+gentoo>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: normal CC: marius+gentoo
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build log

Description Marius Dinu 2024-08-06 09:02:48 UTC
emerge sys-devel/gcc-14.2.0 fails with this error:

/usr/lib/gcc/armv7a-unknown-linux-musleabihf/14/../../../../armv7a-unknown-linux-musleabihf/bin/ld: ../libbacktrace/.libs/libbacktrace.a(backtrace.o): in function `unwind':
backtrace.c:(.text+0x1c): undefined reference to `_Unwind_GetIP'
collect2: error: ld returned 1 exit status

Thank you.

Reproducible: Always
Comment 1 Marius Dinu 2024-08-06 09:03:29 UTC
Created attachment 899274 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-06 09:05:10 UTC
Please include gcc-build-logs.tar.xz.
Comment 3 Marius Dinu 2024-08-06 09:07:49 UTC
Created attachment 899275 [details]
build log
Comment 4 Marius Dinu 2024-08-06 18:56:34 UTC
I did more tests:
- emerge sys-devel/gcc:13 fails with the same error
- after installing gcc:13 binpkg and activating it in eselect gcc, emerge sys-devel/gcc:14 fails with the same error.

I don't know if it's important or not, but I'm using kernel v6.10 from github/torvalds and linux-headers v6.9 from portage. I couldn't find a guide how to install headers from an external kernel source. Running make headers_install in the kernel source dir made a mess in /usr/include.