[PATCH 21.11] build: detect backtrace availability

Kevin Traynor ktraynor at redhat.com
Fri Apr 21 16:14:41 CEST 2023


On 18/04/2023 10:03, Kevin Traynor wrote:
> From: Thomas Monjalon<thomas at monjalon.net>
> 
> [ upstream commit bc1db4f45af35c87e7d97db7a24d479674aa8a43 ]
> 
> Backtrace dump is available:
> 	- always on Windows
> 	- on Linux/BSD if execinfo.h is available (not anymore on Alpine)
> 
> The flag RTE_BACKTRACE was set unconditionally in rte_config.h.
> It is now set only if the feature is available.
> 
> Note: Alpine Linux has decided to remove libexecinfo support,
> so this change will allow to compile DPDK on recent Alpine Linux.
> 
> Signed-off-by: Thomas Monjalon<thomas at monjalon.net>
> Acked-by: Bruce Richardson<bruce.richardson at intel.com>
> ---
> This is need to fix Alpine Linux compile failure in 21.11 UNH CI [0]
> Tested on 21.11-staging branch [1]
> 
> Thomas, any objection to backporting this patch?
> 
> [0]https://dpdkdashboard.iol.unh.edu/results/dashboard/tarballs/24280/#env-45
> 
> Project version: 21.11.4-rc1
> C compiler for the host machine: ccache cc
> (gcc 12.2.1 "cc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924")
> ...
> [2604/2949] Compiling C object 'lib/76b5a35@@rte_eal at sta/eal_linux_eal_debug.c.o'.
> ../lib/eal/linux/eal_debug.c:6:10: fatal error: execinfo.h: No such file or directory
>      6 | #include <execinfo.h>
>        |          ^~~~~~~~~~~~
> compilation terminated.
> 
> [1]https://dpdkdashboard.iol.unh.edu/results/dashboard/tarballs/24284/#env-45
> ---
>   config/meson.build                | 3 ++-
>   config/rte_config.h               | 1 -
>   doc/guides/linux_gsg/sys_reqs.rst | 2 +-
>   3 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.



More information about the stable mailing list