Re: [dpdk-dev] [PATCH] event/octeontx: fix clang 6 linker error

2018-05-09 Thread Jerin Jacob
-Original Message- > Date: Wed, 9 May 2018 07:23:08 +0530 > From: Jerin Jacob > To: Pavan Nikhilesh > CC: santosh.shu...@caviumnetworks.com, arybche...@solarflare.com, > dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] event/octeontx: fix clang 6 linker error > U

Re: [dpdk-dev] [PATCH] event/octeontx: fix clang 6 linker error

2018-05-08 Thread Jerin Jacob
-Original Message- > Date: Wed, 9 May 2018 02:56:00 +0530 > From: Pavan Nikhilesh > To: jerin.ja...@caviumnetworks.com, santosh.shu...@caviumnetworks.com, > arybche...@solarflare.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH] event/octeontx:

[dpdk-dev] [PATCH] event/octeontx: fix clang 6 linker error

2018-05-08 Thread Pavan Nikhilesh
Clang 6 & 7 fail to naturally align packed structs due to this clang can't use 8byte atomic primitives and splits them into lesser atomic primitives. To use lesser atomic primitives we need to link libatomic (-latomic), instead supply alignment attribute to the compiler. timvf_worker.c:(.text+0x49