DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 849] gcc12 build error, net/ena
@ 2021-10-28 12:04 bugzilla
  2022-06-15  8:37 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2021-10-28 12:04 UTC (permalink / raw)
  To: dev

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

            Bug ID: 849
           Summary: gcc12 build error, net/ena
           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)"

[73/183] Compiling C object drivers/libtmp_rte_net_ena.a.p/net_ena_ena_rss.c.o
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 ../drivers/net/ena/ena_ethdev.h:10,                       
                 from ../drivers/net/ena/ena_rss.c:6:                           
In function ‘_mm256_loadu_si256’,                                               
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:319:9,      
    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 ‘ena_rss_key_fill’ at ../drivers/net/ena/ena_rss.c:62:2:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:929:10:
warning: array subscript ‘__m256i_u[1]’ is partly outside array bounds of
‘uint8_t[40]’ {aka ‘unsigned char[40]’} [-Warray-bounds]
  929 |   return *__P;
      |          ^~~~
../drivers/net/ena/ena_rss.c: In function ‘ena_rss_key_fill’:
../drivers/net/ena/ena_rss.c:51:24: note: at offset 32 into object
‘default_key’ of size 40
   51 |         static uint8_t default_key[ENA_HASH_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 ../drivers/net/ena/ena_ethdev.h:10,
                 from ../drivers/net/ena/ena_rss.c:6:
In function ‘_mm256_loadu_si256’,
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:319:9,
    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 ‘ena_rss_key_fill’ at ../drivers/net/ena/ena_rss.c:62:2:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:929:10:
warning: array subscript 2 is outside array bounds of ‘uint8_t[40]’ {aka
‘unsigned char[40]’} [-Warray-bounds]
  929 |   return *__P;
      |          ^~~~
../drivers/net/ena/ena_rss.c: In function ‘ena_rss_key_fill’:
../drivers/net/ena/ena_rss.c:51:24: note: at offset 64 into object
‘default_key’ of size 40
   51 |         static uint8_t default_key[ENA_HASH_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 ../drivers/net/ena/ena_ethdev.h:10,
                 from ../drivers/net/ena/ena_rss.c:6:
In function ‘_mm256_loadu_si256’,
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:319:9,
    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 ‘ena_rss_key_fill’ at ../drivers/net/ena/ena_rss.c:62:2:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:929:10:
warning: array subscript 3 is outside array bounds of ‘uint8_t[40]’ {aka
‘unsigned char[40]’} [-Warray-bounds]
  929 |   return *__P;
      |          ^~~~
../drivers/net/ena/ena_rss.c: In function ‘ena_rss_key_fill’:
../drivers/net/ena/ena_rss.c:51:24: note: at offset 96 into object
‘default_key’ of size 40
   51 |         static uint8_t default_key[ENA_HASH_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 ../drivers/net/ena/ena_ethdev.h:10,
                 from ../drivers/net/ena/ena_rss.c:6:
In function ‘_mm256_loadu_si256’,
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:319:9,
    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 ‘ena_rss_key_fill’ at ../drivers/net/ena/ena_rss.c:62:2:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:929:10:
warning: array subscript ‘__m256i_u[1]’ is partly outside array bounds of
‘const void[40]’ [-Warray-bounds]
  929 |   return *__P;
      |          ^~~~
../drivers/net/ena/ena_rss.c: In function ‘ena_rss_key_fill’:
../drivers/net/ena/ena_rss.c:51:24: note: at offset 32 into object
‘default_key’ of size 40
   51 |         static uint8_t default_key[ENA_HASH_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 ../drivers/net/ena/ena_ethdev.h:10,
                 from ../drivers/net/ena/ena_rss.c:6:
In function ‘_mm256_loadu_si256’,
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:319:9,
    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 ‘ena_rss_key_fill’ at ../drivers/net/ena/ena_rss.c:62:2:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:929:10:
warning: array subscript [3, 288230376151711743] is outside array bounds of
‘const void[40]’ [-Warray-bounds]
  929 |   return *__P;
      |          ^~~~
In function ‘_mm256_loadu_si256’,
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:319:9,
    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 ‘ena_rss_key_fill’ at ../drivers/net/ena/ena_rss.c:62:2:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:929:10:
warning: array subscript [3, 288230376151711744] is outside array bounds of
‘const void[40]’ [-Warray-bounds]
  929 |   return *__P;
      |          ^~~~
In function ‘_mm256_loadu_si256’,
    inlined from ‘rte_mov32’ at ../lib/eal/x86/include/rte_memcpy.h:319:9,
    inlined from ‘rte_memcpy_generic’ at
../lib/eal/x86/include/rte_memcpy.h:431:3,
    inlined from ‘rte_memcpy’ at ../lib/eal/x86/include/rte_memcpy.h:882:10,
    inlined from ‘ena_rss_key_fill’ at ../drivers/net/ena/ena_rss.c:62:2:
/usr/local/gcc-latest/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/avxintrin.h:929:10:
warning: array subscript ‘__m256i_u[0]’ is partly outside array bounds of
‘uint8_t[40]’ {aka ‘unsigned char[40]’} [-Warray-bounds]
  929 |   return *__P;
      |          ^~~~
../drivers/net/ena/ena_rss.c: In function ‘ena_rss_key_fill’:
../drivers/net/ena/ena_rss.c:51:24: note: at offset [17, 32] into object
‘default_key’ of size 40
   51 |         static uint8_t default_key[ENA_HASH_KEY_SIZE];
      |                        ^~~~~~~~~~~
[183/183] Linking target app/test/dpdk-test

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

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

* [Bug 849] gcc12 build error, net/ena
  2021-10-28 12:04 [dpdk-dev] [Bug 849] gcc12 build error, net/ena bugzilla
@ 2022-06-15  8:37 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2022-06-15  8:37 UTC (permalink / raw)
  To: dev

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

David Marchand (david.marchand@redhat.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |david.marchand@redhat.com
         Resolution|---                         |FIXED

--- Comment #1 from David Marchand (david.marchand@redhat.com) ---
Fixed in https://git.dpdk.org/dpdk/commit/?id=244994958466

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

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

end of thread, other threads:[~2022-06-15  8:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 12:04 [dpdk-dev] [Bug 849] gcc12 build error, net/ena bugzilla
2022-06-15  8:37 ` 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).