DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 850] gcc12 build error, net/ice
@ 2021-10-28 12:11 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2021-10-28 12:11 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=850

            Bug ID: 850
           Summary: gcc12 build error, net/ice
           Product: DPDK
           Version: 20.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: other
          Assignee: dev@dpdk.org
          Reporter: ferruh.yigit@intel.com
  Target Milestone: ---

With gcc 12.0.0 "gcc (GCC) 12.0.0 20211024 (experimental)"

In file included from
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/immintrin.h:43,
                 from
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/x86intrin.h:32,
                 from ../lib/eal/x86/include/rte_vect.h:31,
                 from ../lib/eal/x86/include/rte_memcpy.h:17,                   
                 from ../lib/net/rte_ether.h:21,                                
                 from ../lib/ethdev/rte_ethdev.h:166,                           
                 from ../lib/ethdev/ethdev_driver.h:18,                         
                 from ../lib/ethdev/ethdev_pci.h:13,                            
                 from ../drivers/net/ice/ice_ethdev.c:6:                        
In function ‘_mm256_storeu_si256’,                                              
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:320:2,      
    inlined from ‘rte_mov128’ at ../lib/eal/x86/include/rte_memcpy.h:342:2,
    inlined from ‘rte_memcpy_generic’ at
../lib/eal/x86/include/rte_memcpy.h:438:4,                                    
    inlined from ‘rte_memcpy’ at ../lib/eal/x86/include/rte_memcpy.h:882:10,    
    inlined from ‘ice_init_rss’ at ../drivers/net/ice/ice_ethdev.c:3238:2,      
    inlined from ‘ice_dev_configure’ at ../drivers/net/ice/ice_ethdev.c:3292:9: 
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:935:8:
warning: array subscript ‘__m256i_u[1]’ is partly outside array bounds of
‘struct ice_aqc_get_set_rss_keys[1]’ [-Warray-bounds]
  935 |   *__P = __A;                                                           
      |   ~~~~~^~~~~                                                            
../drivers/net/ice/ice_ethdev.c: In function ‘ice_dev_configure’:
../drivers/net/ice/ice_ethdev.c:3190:41: note: at offset 32 into object ‘key’
of size 52
 3190 |         struct ice_aqc_get_set_rss_keys key;      
      |                                         ^~~  
In file included from
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/immintrin.h:43,
                 from
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/x86intrin.h:32,
                 from ../lib/eal/x86/include/rte_vect.h:31,
                 from ../lib/eal/x86/include/rte_memcpy.h:17,
                 from ../lib/net/rte_ether.h:21,
                 from ../lib/ethdev/rte_ethdev.h:166,
                 from ../lib/ethdev/ethdev_driver.h:18,
                 from ../lib/ethdev/ethdev_pci.h:13,
                 from ../drivers/net/ice/ice_ethdev.c:6:
In function ‘_mm256_storeu_si256’,
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:320:2,
    inlined from ‘rte_mov128’ at ../lib/eal/x86/include/rte_memcpy.h:343:2,
    inlined from ‘rte_memcpy_generic’ at
../lib/eal/x86/include/rte_memcpy.h:438:4,
    inlined from ‘rte_memcpy’ at ../lib/eal/x86/include/rte_memcpy.h:882:10,
    inlined from ‘ice_init_rss’ at ../drivers/net/ice/ice_ethdev.c:3238:2,
    inlined from ‘ice_dev_configure’ at ../drivers/net/ice/ice_ethdev.c:3292:9:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:935:8:
warning: array subscript 2 is outside array bounds of ‘struct
ice_aqc_get_set_rss_keys[1]’ [-Warray-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
../drivers/net/ice/ice_ethdev.c: In function ‘ice_dev_configure’:
../drivers/net/ice/ice_ethdev.c:3190:41: note: at offset 64 into object ‘key’
of size 52
 3190 |         struct ice_aqc_get_set_rss_keys key;
      |                                         ^~~
In file included from
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/immintrin.h:43,
                 from
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/x86intrin.h:32,
                 from ../lib/eal/x86/include/rte_vect.h:31,
                 from ../lib/eal/x86/include/rte_memcpy.h:17,
                 from ../lib/net/rte_ether.h:21,
                 from ../lib/ethdev/rte_ethdev.h:166,
                 from ../lib/ethdev/ethdev_driver.h:18,
                 from ../lib/ethdev/ethdev_pci.h:13,
                 from ../drivers/net/ice/ice_ethdev.c:6:
In function ‘_mm256_storeu_si256’,
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:320:2,
    inlined from ‘rte_mov128’ at ../lib/eal/x86/include/rte_memcpy.h:344:2,
    inlined from ‘rte_memcpy_generic’ at
../lib/eal/x86/include/rte_memcpy.h:438:4,
    inlined from ‘rte_memcpy’ at ../lib/eal/x86/include/rte_memcpy.h:882:10,
    inlined from ‘ice_init_rss’ at ../drivers/net/ice/ice_ethdev.c:3238:2,
    inlined from ‘ice_dev_configure’ at ../drivers/net/ice/ice_ethdev.c:3292:9:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:935:8:
warning: array subscript 3 is outside array bounds of ‘struct
ice_aqc_get_set_rss_keys[1]’ [-Warray-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
../drivers/net/ice/ice_ethdev.c: In function ‘ice_dev_configure’:
../drivers/net/ice/ice_ethdev.c:3190:41: note: at offset 96 into object ‘key’
of size 52
 3190 |         struct ice_aqc_get_set_rss_keys key;
      |                                         ^~~
In file included from
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/immintrin.h:43,
                 from
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/x86intrin.h:32,
                 from ../lib/eal/x86/include/rte_vect.h:31,
                 from ../lib/eal/x86/include/rte_memcpy.h:17,
                 from ../lib/net/rte_ether.h:21,
                 from ../lib/ethdev/rte_ethdev.h:166,
                 from ../lib/ethdev/ethdev_driver.h:18,
                 from ../lib/ethdev/ethdev_pci.h:13,
                 from ../drivers/net/ice/ice_ethdev.c:6:
In function ‘_mm256_storeu_si256’,
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:320:2,
    inlined from ‘rte_mov64’ at ../lib/eal/x86/include/rte_memcpy.h:331:2,
    inlined from ‘rte_memcpy_generic’ at
../lib/eal/x86/include/rte_memcpy.h:445:4,
    inlined from ‘rte_memcpy’ at ../lib/eal/x86/include/rte_memcpy.h:882:10,
    inlined from ‘ice_init_rss’ at ../drivers/net/ice/ice_ethdev.c:3238:2,
    inlined from ‘ice_dev_configure’ at ../drivers/net/ice/ice_ethdev.c:3292:9:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:935:8:
warning: array subscript ‘__m256i_u[1]’ is partly outside array bounds of
‘void[52]’ [-Warray-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
In file included from ../drivers/net/ice/base/ice_controlq.h:8,
                 from ../drivers/net/ice/base/ice_type.h:54,
                 from ../drivers/net/ice/base/ice_common.h:8,
                 from ../drivers/net/ice/base/ice_sched.h:8,
                 from ../drivers/net/ice/ice_ethdev.c:17:
../drivers/net/ice/base/ice_adminq_cmd.h: In function ‘ice_dev_configure’:
../drivers/net/ice/base/ice_adminq_cmd.h:2062:12: note: at offset 32 into
object ‘standard_rss_key’ of size 40
 2062 |         u8 standard_rss_key[ICE_AQC_GET_SET_RSS_KEY_DATA_RSS_KEY_SIZE];
      |            ^~~~~~~~~~~~~~~~
In file included from
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/immintrin.h:43,
                 from
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/x86intrin.h:32,
                 from ../lib/eal/x86/include/rte_vect.h:31,
                 from ../lib/eal/x86/include/rte_memcpy.h:17,
                 from ../lib/net/rte_ether.h:21,
                 from ../lib/ethdev/rte_ethdev.h:166,
                 from ../lib/ethdev/ethdev_driver.h:18,
                 from ../lib/ethdev/ethdev_pci.h:13,
                 from ../drivers/net/ice/ice_ethdev.c:6:
In function ‘_mm256_storeu_si256’,
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:320:2,
    inlined from ‘rte_memcpy_generic’ at
../lib/eal/x86/include/rte_memcpy.h:450:4,
    inlined from ‘rte_memcpy’ at ../lib/eal/x86/include/rte_memcpy.h:882:10,
    inlined from ‘ice_init_rss’ at ../drivers/net/ice/ice_ethdev.c:3238:2,
    inlined from ‘ice_dev_configure’ at ../drivers/net/ice/ice_ethdev.c:3292:9:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:935:8:
warning: array subscript [3, 134217727] is outside array bounds of ‘void[52]’
[-Warray-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
In function ‘_mm256_storeu_si256’,
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:320:2,
    inlined from ‘rte_memcpy_generic’ at
../lib/eal/x86/include/rte_memcpy.h:451:4,
    inlined from ‘rte_memcpy’ at ../lib/eal/x86/include/rte_memcpy.h:882:10,
    inlined from ‘ice_init_rss’ at ../drivers/net/ice/ice_ethdev.c:3238:2,
    inlined from ‘ice_dev_configure’ at ../drivers/net/ice/ice_ethdev.c:3292:9:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:935:8:
warning: array subscript [3, 134217728] is outside array bounds of ‘void[52]’
[-Warray-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-28 12:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 12:11 [dpdk-dev] [Bug 850] gcc12 build error, net/ice bugzilla

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