DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 925] lib/vhost build failure with gcc 12
@ 2022-01-23 10:57 bugzilla
  2022-05-17  9:55 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2022-01-23 10:57 UTC (permalink / raw)
  To: dev

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

            Bug ID: 925
           Summary: lib/vhost build failure with gcc 12
           Product: DPDK
           Version: 20.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: vhost/virtio
          Assignee: dev@dpdk.org
          Reporter: alialnu@nvidia.com
  Target Milestone: ---

"""
$ meson --werror -Denable_docs=true -Ddisable_drivers=*/cnxk build &&
ninja-build -C build

[..]
[937/2633] Compiling C object lib/librte_vhost.a.p/vhost_vhost_crypto.c.o
FAILED: lib/librte_vhost.a.p/vhost_vhost_crypto.c.o
gcc -Ilib/librte_vhost.a.p -Ilib -Ilib -Ilib/vhost -Ilib/vhost -I.
-I../../root/dpdk -Iconfig -Iconfig -Ilib/eal/include -Ilib/eal/include
-Ilib/eal/linux/include -Ilib/eal/linux/include -Ilib/eal/x86/include
-Ilib/eal/x86/include -Ilib/eal/common -Ilib/eal/common -Ilib/eal -Ilib/eal
-Ilib/kvargs -Ilib/kvargs -Ilib/metrics -Ilib/metrics -Ilib/telemetry
-Ilib/telemetry -Ilib/ethdev -Ilib/ethdev -Ilib/net -Ilib/net -Ilib/mbuf
-Ilib/mbuf -Ilib/mempool -Ilib/mempool -Ilib/ring -Ilib/ring -Ilib/meter
-Ilib/meter -Ilib/cryptodev -Ilib/cryptodev -Ilib/rcu -Ilib/rcu -Ilib/hash
-Ilib/hash -Ilib/pci -Ilib/pci -fdiagnostics-color=always
-D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h
-Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes
-Wundef -Wwrite-strings -Wno-address-of-packed-member -Wno-packed-not-aligned
-Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC
-march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API
-Wno-format-truncation -DVHOST_GCC_UNROLL_PRAGMA -fno-strict-aliasing
-DRTE_LOG_DEFAULT_LOGTYPE=lib.vhost -MD -MQ
lib/librte_vhost.a.p/vhost_vhost_crypto.c.o -MF
lib/librte_vhost.a.p/vhost_vhost_crypto.c.o.d -o
lib/librte_vhost.a.p/vhost_vhost_crypto.c.o -c lib/vhost/vhost_crypto.c
In file included from
/usr/lib/gcc/x86_64-redhat-linux/12/include/immintrin.h:43,
                 from
/usr/lib/gcc/x86_64-redhat-linux/12/include/x86intrin.h:32,
                 from lib/eal/x86/include/rte_vect.h:31,
                 from lib/eal/x86/include/rte_memcpy.h:17,
                 from lib/mempool/rte_mempool.h:50,
                 from lib/mbuf/rte_mbuf.h:38,
                 from lib/vhost/vhost_crypto.c:7:
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 'copy_data' at lib/vhost/vhost_crypto.c:588:2,
    inlined from 'vhost_crypto_process_one_req' at
lib/vhost/vhost_crypto.c:1256:6,
    inlined from 'rte_vhost_crypto_fetch_requests' at
lib/vhost/vhost_crypto.c:1658:8:
/usr/lib/gcc/x86_64-redhat-linux/12/include/avxintrin.h:935:8: error: array
subscript '__m256i_u[2]' is partly outside array bounds of 'struct
virtio_crypto_op_data_req[1]' [-Werror=array-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
lib/vhost/vhost_crypto.c: In function 'rte_vhost_crypto_fetch_requests':
lib/vhost/vhost_crypto.c:1178:42: note: at offset 64 into object 'req' of size
72
 1178 |         struct virtio_crypto_op_data_req req;
      |                                          ^~~
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 'copy_data' at lib/vhost/vhost_crypto.c:588:2,
    inlined from 'vhost_crypto_process_one_req' at
lib/vhost/vhost_crypto.c:1256:6,
    inlined from 'rte_vhost_crypto_fetch_requests' at
lib/vhost/vhost_crypto.c:1658:8:
/usr/lib/gcc/x86_64-redhat-linux/12/include/avxintrin.h:935:8: error: array
subscript 3 is outside array bounds of 'struct virtio_crypto_op_data_req[1]'
[-Werror=array-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
lib/vhost/vhost_crypto.c: In function 'rte_vhost_crypto_fetch_requests':
lib/vhost/vhost_crypto.c:1178:42: note: at offset 96 into object 'req' of size
72
 1178 |         struct virtio_crypto_op_data_req req;
      |                                          ^~~
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 'copy_data' at lib/vhost/vhost_crypto.c:588:2,
    inlined from 'vhost_crypto_process_one_req' at
lib/vhost/vhost_crypto.c:1256:6,
    inlined from 'rte_vhost_crypto_fetch_requests' at
lib/vhost/vhost_crypto.c:1658:8:
/usr/lib/gcc/x86_64-redhat-linux/12/include/avxintrin.h:935:8: error: array
subscript '__m256i_u[2]' is partly outside array bounds of 'void[72]'
[-Werror=array-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
lib/vhost/vhost_crypto.c: In function 'rte_vhost_crypto_fetch_requests':
lib/vhost/vhost_crypto.c:1178:42: note: at offset [0, 64] into object 'req' of
size 72
 1178 |         struct virtio_crypto_op_data_req req;
      |                                          ^~~
lib/vhost/vhost_crypto.c:1178:42: note: at offset [1, 72] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [128, 192] into object 'req'
of size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [0, 64] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [1, 72] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [128, 192] into object 'req'
of size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [0, 64] into object 'req' of
size 72
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 'copy_data' at lib/vhost/vhost_crypto.c:588:2,
    inlined from 'vhost_crypto_process_one_req' at
lib/vhost/vhost_crypto.c:1256:6,
    inlined from 'rte_vhost_crypto_fetch_requests' at
lib/vhost/vhost_crypto.c:1658:8:
/usr/lib/gcc/x86_64-redhat-linux/12/include/avxintrin.h:935:8: error: array
subscript '__m256i_u[2]' is partly outside array bounds of 'void[72]'
[-Werror=array-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
lib/vhost/vhost_crypto.c: In function 'rte_vhost_crypto_fetch_requests':
lib/vhost/vhost_crypto.c:1178:42: note: at offset [1, 65] into object 'req' of
size 72
 1178 |         struct virtio_crypto_op_data_req req;
      |                                          ^~~
lib/vhost/vhost_crypto.c:1178:42: note: at offset [2, 72] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [129, 193] into object 'req'
of size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [1, 65] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [2, 72] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [129, 193] into object 'req'
of size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [1, 65] into object 'req' of
size 72
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 'copy_data' at lib/vhost/vhost_crypto.c:588:2,
    inlined from 'vhost_crypto_process_one_req' at
lib/vhost/vhost_crypto.c:1256:6,
    inlined from 'rte_vhost_crypto_fetch_requests' at
lib/vhost/vhost_crypto.c:1687:8:
/usr/lib/gcc/x86_64-redhat-linux/12/include/avxintrin.h:935:8: error: array
subscript '__m256i_u[2]' is partly outside array bounds of 'struct
virtio_crypto_op_data_req[1]' [-Werror=array-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
lib/vhost/vhost_crypto.c: In function 'rte_vhost_crypto_fetch_requests':
lib/vhost/vhost_crypto.c:1178:42: note: at offset 64 into object 'req' of size
72
 1178 |         struct virtio_crypto_op_data_req req;
      |                                          ^~~
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 'copy_data' at lib/vhost/vhost_crypto.c:588:2,
    inlined from 'vhost_crypto_process_one_req' at
lib/vhost/vhost_crypto.c:1256:6,
    inlined from 'rte_vhost_crypto_fetch_requests' at
lib/vhost/vhost_crypto.c:1687:8:
/usr/lib/gcc/x86_64-redhat-linux/12/include/avxintrin.h:935:8: error: array
subscript 3 is outside array bounds of 'struct virtio_crypto_op_data_req[1]'
[-Werror=array-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
lib/vhost/vhost_crypto.c: In function 'rte_vhost_crypto_fetch_requests':
lib/vhost/vhost_crypto.c:1178:42: note: at offset 96 into object 'req' of size
72
 1178 |         struct virtio_crypto_op_data_req req;
      |                                          ^~~
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 'copy_data' at lib/vhost/vhost_crypto.c:588:2,
    inlined from 'vhost_crypto_process_one_req' at
lib/vhost/vhost_crypto.c:1256:6,
    inlined from 'rte_vhost_crypto_fetch_requests' at
lib/vhost/vhost_crypto.c:1687:8:
/usr/lib/gcc/x86_64-redhat-linux/12/include/avxintrin.h:935:8: error: array
subscript '__m256i_u[2]' is partly outside array bounds of 'void[72]'
[-Werror=array-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
lib/vhost/vhost_crypto.c: In function 'rte_vhost_crypto_fetch_requests':
lib/vhost/vhost_crypto.c:1178:42: note: at offset [0, 64] into object 'req' of
size 72
 1178 |         struct virtio_crypto_op_data_req req;
      |                                          ^~~
lib/vhost/vhost_crypto.c:1178:42: note: at offset [1, 72] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [128, 192] into object 'req'
of size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [0, 64] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [1, 72] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [128, 192] into object 'req'
of size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [0, 64] into object 'req' of
size 72
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 'copy_data' at lib/vhost/vhost_crypto.c:588:2,
    inlined from 'vhost_crypto_process_one_req' at
lib/vhost/vhost_crypto.c:1256:6,
    inlined from 'rte_vhost_crypto_fetch_requests' at
lib/vhost/vhost_crypto.c:1687:8:
/usr/lib/gcc/x86_64-redhat-linux/12/include/avxintrin.h:935:8: error: array
subscript '__m256i_u[2]' is partly outside array bounds of 'void[72]'
[-Werror=array-bounds]
  935 |   *__P = __A;
      |   ~~~~~^~~~~
lib/vhost/vhost_crypto.c: In function 'rte_vhost_crypto_fetch_requests':
lib/vhost/vhost_crypto.c:1178:42: note: at offset [1, 65] into object 'req' of
size 72
 1178 |         struct virtio_crypto_op_data_req req;
      |                                          ^~~
lib/vhost/vhost_crypto.c:1178:42: note: at offset [2, 72] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [129, 193] into object 'req'
of size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [1, 65] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [2, 72] into object 'req' of
size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [129, 193] into object 'req'
of size 72
lib/vhost/vhost_crypto.c:1178:42: note: at offset [1, 65] into object 'req' of
size 72
cc1: all warnings being treated as errors
[970/2633] Generating drivers/rte_common_sfc_efx.sym_chk with a custom command
(wrapped by meson to capture output
ninja: build stopped: subcommand failed.
"""

Meson: 0.60.3
OS: Fedora 36
gcc: 12.0.1 20220118 (Red Hat 12.0.1-0)

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

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

* [Bug 925] lib/vhost build failure with gcc 12
  2022-01-23 10:57 [Bug 925] lib/vhost build failure with gcc 12 bugzilla
@ 2022-05-17  9:55 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2022-05-17  9:55 UTC (permalink / raw)
  To: dev

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

Ali Alnubani (alialnu@nvidia.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from Ali Alnubani (alialnu@nvidia.com) ---
Duplicate of https://bugs.dpdk.org/show_bug.cgi?id=751

*** This bug has been marked as a duplicate of bug 751 ***

-- 
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-05-17  9:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-23 10:57 [Bug 925] lib/vhost build failure with gcc 12 bugzilla
2022-05-17  9:55 ` 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).