DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Red Hat 6.5 compilation failure
@ 2016-10-31 10:43 Nélio Laranjeiro
  2016-10-31 11:27 ` Thomas Monjalon
  2016-10-31 14:16 ` Neil Horman
  0 siblings, 2 replies; 3+ messages in thread
From: Nélio Laranjeiro @ 2016-10-31 10:43 UTC (permalink / raw)
  To: dev, Thomas Monjalon, Bruce Richardson

Hi all,

Am facing an issue with compilation on redhat 6.5 of DPDK v16.11-rc2,
compilation fails with:

  cc1: warnings being treated as errors
  /root/dpdk/drivers/net/i40e/i40e_ethdev_vf.c: In function ‘i40evf_dev_interrupt_handler’:
  /root/dpdk/drivers/net/i40e/i40e_ethdev_vf.c:1391: error: dereferencing pointer ‘v_msg’ does break strict-aliasing rules
  /root/dpdk/drivers/net/i40e/i40e_ethdev_vf.c:1397: error: dereferencing pointer ‘v_msg’ does break strict-aliasing rules
  /root/dpdk/drivers/net/i40e/i40e_ethdev_vf.c:1398: error: dereferencing pointer ‘v_msg’ does break strict-aliasing rules
  /root/dpdk/drivers/net/i40e/i40e_ethdev_vf.c:1376: note: initialized from here


  cc1: warnings being treated as errors
  /root/dpdk/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_func_driver_unregister’:
  /root/dpdk/drivers/net/bnxt/bnxt_hwrm.c:105: error: dereferencing pointer ‘req’ does break strict-aliasing rules
  /root/dpdk/drivers/net/bnxt/bnxt_hwrm.c:66: note: initialized from here


  cc1: warnings being treated as errors
  /root/dpdk/drivers/net/qede/base/ecore_mcp.c: In function ‘ecore_mcp_nvm_rd_cmd’:
  /root/dpdk/build/include/rte_memcpy.h:740: error: array subscript is above array bounds
  /root/dpdk/drivers/net/qede/base/ecore_mcp.c: In function ‘ecore_mcp_nvm_wr_cmd’:
  /root/dpdk/build/include/rte_memcpy.h:740: error: array subscript is above array bounds
  At top level:
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
  cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"

In doc/guides/rel_notes/supported_os.rst we still support
"Red Hat Enterprise Linux 6.5".

Do we still want to support it, or should we update the documentation to
remove it?

Regards,

-- 
Nélio Laranjeiro
6WIND

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

* Re: [dpdk-dev] Red Hat 6.5 compilation failure
  2016-10-31 10:43 [dpdk-dev] Red Hat 6.5 compilation failure Nélio Laranjeiro
@ 2016-10-31 11:27 ` Thomas Monjalon
  2016-10-31 14:16 ` Neil Horman
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2016-10-31 11:27 UTC (permalink / raw)
  To: Nélio Laranjeiro; +Cc: dev

2016-10-31 11:43, Nélio Laranjeiro:
> Hi all,
> 
> Am facing an issue with compilation on redhat 6.5 of DPDK v16.11-rc2,

Thanks Nelio for raising the issue.

> compilation fails with:
[...]
> In doc/guides/rel_notes/supported_os.rst we still support
> "Red Hat Enterprise Linux 6.5".
> 
> Do we still want to support it, or should we update the documentation to
> remove it?

I vote for dropping RHEL6 support in DPDK 16.11.

Any other comment in the community?
Please give your voice, whether you agree or disagree.

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

* Re: [dpdk-dev] Red Hat 6.5 compilation failure
  2016-10-31 10:43 [dpdk-dev] Red Hat 6.5 compilation failure Nélio Laranjeiro
  2016-10-31 11:27 ` Thomas Monjalon
@ 2016-10-31 14:16 ` Neil Horman
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Horman @ 2016-10-31 14:16 UTC (permalink / raw)
  To: Nélio Laranjeiro; +Cc: dev

On Mon, Oct 31, 2016 at 11:43:18AM +0100, Nélio Laranjeiro wrote:
> Hi all,
> 
> Am facing an issue with compilation on redhat 6.5 of DPDK v16.11-rc2,
> compilation fails with:
> 
>   cc1: warnings being treated as errors
>   /root/dpdk/drivers/net/i40e/i40e_ethdev_vf.c: In function ‘i40evf_dev_interrupt_handler’:
>   /root/dpdk/drivers/net/i40e/i40e_ethdev_vf.c:1391: error: dereferencing pointer ‘v_msg’ does break strict-aliasing rules
>   /root/dpdk/drivers/net/i40e/i40e_ethdev_vf.c:1397: error: dereferencing pointer ‘v_msg’ does break strict-aliasing rules
>   /root/dpdk/drivers/net/i40e/i40e_ethdev_vf.c:1398: error: dereferencing pointer ‘v_msg’ does break strict-aliasing rules
>   /root/dpdk/drivers/net/i40e/i40e_ethdev_vf.c:1376: note: initialized from here
> 
> 
>   cc1: warnings being treated as errors
>   /root/dpdk/drivers/net/bnxt/bnxt_hwrm.c: In function ‘bnxt_hwrm_func_driver_unregister’:
>   /root/dpdk/drivers/net/bnxt/bnxt_hwrm.c:105: error: dereferencing pointer ‘req’ does break strict-aliasing rules
>   /root/dpdk/drivers/net/bnxt/bnxt_hwrm.c:66: note: initialized from here
> 
> 
>   cc1: warnings being treated as errors
>   /root/dpdk/drivers/net/qede/base/ecore_mcp.c: In function ‘ecore_mcp_nvm_rd_cmd’:
>   /root/dpdk/build/include/rte_memcpy.h:740: error: array subscript is above array bounds
>   /root/dpdk/drivers/net/qede/base/ecore_mcp.c: In function ‘ecore_mcp_nvm_wr_cmd’:
>   /root/dpdk/build/include/rte_memcpy.h:740: error: array subscript is above array bounds
>   At top level:
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
>   cc1: error: unrecognized command line option "-Wno-maybe-uninitialized"
> 
> In doc/guides/rel_notes/supported_os.rst we still support
> "Red Hat Enterprise Linux 6.5".
> 
Most of these errors stems from the fact that in i40e there is alot of casting
from structs which lay out data in typed members to structs which have flat
memory buffers, which can cause problems if the alignment of the former isn't
what you expect.  You can disable strict aliasing if you want, but its a much
better idea to fix it properly.

The subscript above array options is pretty straightforward.  rte_memcpy has
a case statement that blocks memory copies to be more efficient.  I would
presume that there is a call site for a ecore read operation where the buffer
array is smaller than the number of bytes copied, and the compiler noticed.

> Do we still want to support it, or should we update the documentation to
> remove it?
> 
I think support probably doesn't matter, but regardless of that decision, you
should likely look a bit more closely at these errors.

Neil

> Regards,
> 
> -- 
> Nélio Laranjeiro
> 6WIND
> 

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

end of thread, other threads:[~2016-10-31 14:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-31 10:43 [dpdk-dev] Red Hat 6.5 compilation failure Nélio Laranjeiro
2016-10-31 11:27 ` Thomas Monjalon
2016-10-31 14:16 ` Neil Horman

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).