[dpdk-dev] mlx debug build error with clang
Ferruh Yigit
ferruh.yigit at intel.com
Tue Jun 13 17:32:03 CEST 2017
Hi Adrien, Nelio,
I am getting following build error [1] with clang [2] when debug enabled
for mlx4 and mlx5.
This started after I update my box, not sure what triggered this.
Can you please help fixing this?
Thanks,
ferruh
[1]
.../drivers/net/mlx4/mlx4_flow.c:731:3: error: use of GNU statement
expression extension [-Werror,-Wgnu-statement-expression]
claim_zero(ibv_destroy_qp(fdq->qp));
^
.../drivers/net/mlx4/mlx4.h:185:25: note: expanded from macro 'claim_zero'
#define claim_zero(...) assert((__VA_ARGS__) == 0)
^
/usr/include/assert.h:95:6: note: expanded from macro 'assert'
({ \
^
....
.../drivers/net/mlx5/mlx5_fdir.c:278:2: error: use of GNU statement
expression extension [-Werror,-Wgnu-statement-expression]
assert(((uint8_t *)attr + sizeof(*attr)) == (uint8_t *)spec_offset);
^
/usr/include/assert.h:95:6: note: expanded from macro 'assert'
({ \
^
[Many of similar ...]
[2]
target: x86_64-native-linuxapp-clang
clang version 4.0.0 (tags/RELEASE_400/final)
More information about the dev
mailing list