> On 19 Feb 2025, at 18:51, Fabio Estevam via lists.openembedded.org 
> <festevam=gmail....@lists.openembedded.org> wrote:
> +Subject: [PATCH v4 mtd-utils 3/4] configure.ac: Add a check for execinfo and 
> backtrace
> +
> +musl relies on an external execinfo library to provide backtrace
> +functionality. If musl cannot link to libexecinfo, the following link
> +error happens:
> +
> +| 
> /work/festevam/oe/poky/build/tmp/work/core2-64-poky-linux-musl/mtd-utils/2.3.0/recipe-sysroot-native/usr/bin/x86_64-poky-linux-musl/../../libexec/x86_64-poky-linux-musl/gcc/x86_64-poky-linux-musl/14.2.0/ld:
>  ubifs-utils/libubifs/mkfs_ubifs-io.o: in function `dump_stack':
> +| /usr/src/debug/mtd-utils/2.3.0/ubifs-utils/common/defs.h:71:(.text+0x25): 
> undefined reference to `backtrace'
> +....
> +| collect2: error: ld returned 1 exit status
> +| make: *** [Makefile:2959: mkfs.ubifs] Error 1
> +
> +Fix the problem by checking for backtrace support in libc first and if not
> +found, then check for backtrace support in the external libexecinfo.

mtd-utils already has a stub implementation of backtrace() for when a libc with 
execinfo.h is being used, the unifs-utils just need to actually use it. 
Alternatively, if the answer is to rely on an external libexecinfo, then the 
stubs should be removed.

I’ve just sent a patch upstream that uses the stub, let’s discuss there what 
direction is best so we don’t end up carrying surplus patches.

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#211971): 
https://lists.openembedded.org/g/openembedded-core/message/211971
Mute This Topic: https://lists.openembedded.org/mt/111275286/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to