[dpdk-dev] [PATCH] examples/performance-thread: fix build issue with clang 12.0.1

Ali Alnubani alialnu at oss.nvidia.com
Thu Aug 19 09:09:27 CEST 2021


> -----Original Message-----
> From: jerinj at marvell.com <jerinj at marvell.com>
> Sent: Monday, August 16, 2021 4:19 PM
> To: John McNamara <john.mcnamara at intel.com>; Ian Betts
> <ian.betts at intel.com>; Tomasz Kulasek <tomaszx.kulasek at intel.com>
> Cc: dev at dpdk.org; NBU-Contact-Thomas Monjalon
> <thomas at monjalon.net>; bruce.richardson at intel.com;
> david.marchand at redhat.com; Jerin Jacob <jerinj at marvell.com>; Ali
> Alnubani <alialnu at nvidia.com>
> Subject: [PATCH] examples/performance-thread: fix build issue with clang
> 12.0.1
> 
> From: Jerin Jacob <jerinj at marvell.com>
> 
> In clang 12.0.1 version, the use of pthread_yield() deprecated, use
> sched_yield() instead.
> 
> log:
> 
> Compiling C object
> examples/dpdk-pthread_shim.p/performance-
> thread_pthread_shim_main.c.o
> ../examples/performance-thread/pthread_shim/main.c: In function
> 'helloworld_pthread':
> ../examples/performance-thread/pthread_shim/main.c:75:9: warning:
> 'pthread_yield' is deprecated: pthread_yield is deprecated, use sched_yield
> instead [-Wdeprecated-declarations]
> 
> Fixes: 433ba6228f9a ("examples/performance-thread: add pthread_shim
> app")
> 
> Bugzilla ID: 745
> 
> Cc: alialnu at oss.nvidia.com
> 
> Signed-off-by: Jerin Jacob <jerinj at marvell.com>
> ---

I think this issue might be specific to Fedora Rawhide's build of clang 12.0.1, see my comment in the ticket:
https://bugs.dpdk.org/show_bug.cgi?id=745#c3

Tested-by: Ali Alnubani <alialnu at nvidia.com>

Thanks Jerin.

Ali


More information about the dev mailing list