DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [BUG] mlx5 build failure on Debian testing
@ 2018-07-11 21:07 Stephen Hemminger
  2018-07-12  5:49 ` Shahaf Shuler
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2018-07-11 21:07 UTC (permalink / raw)
  To: yskoh, shahafs, matan; +Cc: dev

I am seeing a build failure of MLX5 driver on Debian testing (buster)
with dpdk.org master branch.

This is using libibverbs-dev version 19.0-1

The failure is:
mlx5_glue.h:94:11: error: ‘struct ibv_counter_set_init_attr’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
    struct ibv_counter_set_init_attr *init_attr);
           ^~~~~~~~~~~~~~~~~~~~~~~~~

It looks like this is being caused because HAVE_IBV_DEVICE_COUNTERS_SET_SUPPORT is not set, but
the header file does not have the counter stuff.

The Makefile is generating this mlx5 autoconf file by looking for "enum IBV_FLOW_SPEC_ACTION_COUNT"
in /usr/include/infiniband/verbs.h.  This enum is present, but counters are not.

$ grep IBV_FLOW_SPEC_ACTION /usr/include/infiniband/verbs.h 
	IBV_FLOW_SPEC_ACTION_TAG	= 0x1000,
	IBV_FLOW_SPEC_ACTION_DROP	= 0x1001,
	IBV_FLOW_SPEC_ACTION_HANDLE	= 0x1002,
	IBV_FLOW_SPEC_ACTION_COUNT	= 0x1003,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [BUG] mlx5 build failure on Debian testing
  2018-07-11 21:07 [dpdk-dev] [BUG] mlx5 build failure on Debian testing Stephen Hemminger
@ 2018-07-12  5:49 ` Shahaf Shuler
  0 siblings, 0 replies; 2+ messages in thread
From: Shahaf Shuler @ 2018-07-12  5:49 UTC (permalink / raw)
  To: Stephen Hemminger, Yongseok Koh, Matan Azrad; +Cc: dev

Hi Stephen,

Thursday, July 12, 2018 12:08 AM, Stephen Hemminger:
> Subject: [BUG] mlx5 build failure on Debian testing
> 
> I am seeing a build failure of MLX5 driver on Debian testing (buster) with
> dpdk.org master branch.
> 
> This is using libibverbs-dev version 19.0-1
> 
> The failure is:
> mlx5_glue.h:94:11: error: ‘struct ibv_counter_set_init_attr’ declared inside
> parameter list will not be visible outside of this definition or declaration [-
> Werror]
>     struct ibv_counter_set_init_attr *init_attr);
>            ^~~~~~~~~~~~~~~~~~~~~~~~~
> 
> It looks like this is being caused because
> HAVE_IBV_DEVICE_COUNTERS_SET_SUPPORT is not set, but the header file
> does not have the counter stuff.
> 
> The Makefile is generating this mlx5 autoconf file by looking for "enum
> IBV_FLOW_SPEC_ACTION_COUNT"
> in /usr/include/infiniband/verbs.h.  This enum is present, but counters are
> not.
> 
> $ grep IBV_FLOW_SPEC_ACTION /usr/include/infiniband/verbs.h
> 	IBV_FLOW_SPEC_ACTION_TAG	= 0x1000,
> 	IBV_FLOW_SPEC_ACTION_DROP	= 0x1001,
> 	IBV_FLOW_SPEC_ACTION_HANDLE	= 0x1002,
> 	IBV_FLOW_SPEC_ACTION_COUNT	= 0x1003,

Thanks for reporting, this was also raised by Ferruh.
We will fix this issue. The fix is pending series [1] as it changes the entire flow engine.

[1]
https://patches.dpdk.org/project/dpdk/list/?series=512


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-12  5:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-11 21:07 [dpdk-dev] [BUG] mlx5 build failure on Debian testing Stephen Hemminger
2018-07-12  5:49 ` Shahaf Shuler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).