[PATCH mtd-utils 4/5] configure.ac: Add a check for execinfo and backtrace
Khem Raj
raj.khem at gmail.com
Tue Feb 18 08:21:24 PST 2025
On 2/18/25 3:01 AM, Fabio Estevam wrote:
> 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.
maybe check for backtrace function in libc first and if not found then
try libexecinfo check.
>
> I will address your other comments and submit a v2 soon.
>
> Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xBB053355919D3314.asc
Type: application/pgp-keys
Size: 2570 bytes
Desc: OpenPGP public key
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20250218/24eff876/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20250218/24eff876/attachment.sig>
More information about the linux-mtd
mailing list