Re: [PATCH] buildtools: fix build with clang 17 and ASan

2024-07-12 Thread David Marchand
On Fri, Jul 12, 2024 at 4:29 AM Jiale, SongX wrote: > > ASan included in clang 17 and later suffixes symbols. > > $ nm build/drivers/libtmp_rte_net_null.a | grep this_pmd > > r this_pmd_name3 > > n > > this_pmd_name3.f2cd16678ab09dba8fd23405d8d11fce > > > > This b

RE: [PATCH] buildtools: fix build with clang 17 and ASan

2024-07-11 Thread Jiale, SongX
> -Original Message- > From: David Marchand > Sent: Thursday, July 11, 2024 7:39 PM > To: dev@dpdk.org > Cc: sta...@dpdk.org; Ali Alnubani ; Jiale, SongX > ; Dmitry Kozlyuk > Subject: [PATCH] buildtools: fix build with clang 17 and ASan > > ASan included in

[PATCH] buildtools: fix build with clang 17 and ASan

2024-07-11 Thread David Marchand
ASan included in clang 17 and later suffixes symbols. $ nm build/drivers/libtmp_rte_net_null.a | grep this_pmd r this_pmd_name3 n this_pmd_name3.f2cd16678ab09dba8fd23405d8d11fce This breaks the detection of driver symbols in pmdinfogen which then creates duplicate

RE: [PATCH] buildtools: fix build with clang 17

2024-06-27 Thread Ali Alnubani
> -Original Message- > From: David Marchand > Sent: Thursday, June 27, 2024 3:37 PM > To: Ali Alnubani > Cc: dev@dpdk.org; NBU-Contact-Thomas Monjalon (EXTERNAL) > ; sta...@dpdk.org; Bruce Richardson > ; Mingjin Ye > Subject: Re: [PATCH] buildtools: fix build w

Re: [PATCH] buildtools: fix build with clang 17

2024-06-27 Thread David Marchand
On Wed, Mar 20, 2024 at 5:30 PM David Marchand wrote: > > Hello Ali, Thomas, > > On Wed, Mar 20, 2024 at 5:01 PM Ali Alnubani wrote: > > > > On Fedora 39 with Clang 17.0.3 and ASan enabled, > > RTE_PMD_EXPORT_NAME seems to be done twice for a single > > lib, which results in load_drivers() return

Re: [PATCH] buildtools: fix build with clang 17

2024-03-20 Thread David Marchand
Hello Ali, Thomas, On Wed, Mar 20, 2024 at 5:01 PM Ali Alnubani wrote: > > On Fedora 39 with Clang 17.0.3 and ASan enabled, > RTE_PMD_EXPORT_NAME seems to be done twice for a single > lib, which results in load_drivers() returning a list > consisting of 2 drivers (e.g., ['mlx5_common_pci', '']).

[PATCH] buildtools: fix build with clang 17

2024-03-20 Thread Ali Alnubani
On Fedora 39 with Clang 17.0.3 and ASan enabled, RTE_PMD_EXPORT_NAME seems to be done twice for a single lib, which results in load_drivers() returning a list consisting of 2 drivers (e.g., ['mlx5_common_pci', '']). image.find_by_prefix("this_pmd_name") returns 2 symbols in this case, "mlx5_common_