All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [Bug 925] lib/vhost build failure with gcc 12
Date: Sun, 23 Jan 2022 10:57:04 +0000	[thread overview]
Message-ID: <bug-925-3@http.bugs.dpdk.org/> (raw)

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.

             reply	other threads:[~2022-01-23 10:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-23 10:57 bugzilla [this message]
2022-05-17  9:55 ` [Bug 925] lib/vhost build failure with gcc 12 bugzilla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-925-3@http.bugs.dpdk.org/ \
    --to=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.