[PATCH mtd-utils 4/5] configure.ac: Add a check for execinfo and backtrace

Fabio Estevam festevam at gmail.com
Tue Feb 18 03:01:50 PST 2025


Hi Zhihao,

Thanks for your review.

On Tue, Feb 18, 2025 at 6:48 AM Zhihao Cheng <chengzhihao1 at huawei.com> wrote:

> Hi Fabio,
> I'm not sure which lib is depended for execinfo by musl. We don't depend
> any libs for other common compilers, otherwise we could get following
> messgags for doing configure:

The musl library doe not provide execinfo.
It relies on an external execinfo library to provide backtrace support.

>   checking for sys/random.h... yes
> checking for backtrace in -lexecinfo... no  # In fact backtrace is
> supported, but the message tells us not.

That message is OK. In this case, the backtrace does not come from the
external libexecinfo.
It comes from the C library. It does not mean that backtrace is not
supported. It only means that
backtrace does not come from the external libexecinfo.

With musl, the following is seen:

checking for backtrace in -lexecinfo... yes

This means that backtrace comes from the external libexecinfo.

I will address your other comments and submit a v2 soon.

Thanks



More information about the linux-mtd mailing list