DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1011] [dpdk-22.07*] lib/vhost  meson build failed with gcc12.1.1 on Fedora36/64
@ 2022-05-17  9:35 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2022-05-17  9:35 UTC (permalink / raw)
  To: dev

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

            Bug ID: 1011
           Summary: [dpdk-22.07*] lib/vhost  meson build failed with
                    gcc12.1.1 on Fedora36/64
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: daxuex.gao@intel.com
  Target Milestone: ---

[DPDK Version]
dpdk latest code dpdk-next-* and dpdk branch  

[OS version]
Fedora Linux 36/5.17.7-300.fc36.x86_64
GCC12.1.1

[Test Setup]
# meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--default-library=static gcc-linux-app 
# ninja -C gcc-linux-app

[Error log]
FAILED: lib/librte_vhost.a.p/vhost_vhost_crypto.c.o 
gcc -Ilib/librte_vhost.a.p -Ilib -I../lib -Ilib/vhost -I../lib/vhost -I. -I..
-Iconfig -I../config -Ilib/eal/include -I../lib/eal/include
-Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/x86/include
-I../lib/eal/x86/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal
-I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics
-Ilib/telemetry -I../lib/telemetry -Ilib/ethdev -I../lib/ethdev -Ilib/net
-I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring
-I../lib/ring -Ilib/meter -I../lib/meter -Ilib/cryptodev -I../lib/cryptodev
-Ilib/rcu -I../lib/rcu -Ilib/hash -I../lib/hash -Ilib/pci -I../lib/pci
-Ilib/dmadev -I../lib/dmadev -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64
-Wall -Winvalid-pch -Wextra -Werror -O3 -include rte_config.h -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:46,
                 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:1656: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:1656: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:1656: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:1656: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:1685: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:1685: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:1685: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:1685: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
[670/3545] Compiling C object
drivers/libtmp_rte_bus_dpaa.a.p/bus_dpaa_base_qbman_qman_driver.c.o
[671/3545] Compiling C object
drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_fslmc_bus.c.o
[672/3545] Compiling C object
drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_portal_dpaa2_hw_dpbp.c.o
[673/3545] Compiling C object
drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_fslmc_vfio.c.o
[674/3545] Compiling C object
drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_portal_dpaa2_hw_dpci.c.o
[675/3545] Compiling C object
drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_portal_dpaa2_hw_dpio.c.o
[676/3545] Compiling C object
drivers/libtmp_rte_bus_fslmc.a.p/bus_fslmc_portal_dpaa2_hw_dprc.c.o
[677/3545] Compiling C object
drivers/libtmp_rte_bus_dpaa.a.p/bus_dpaa_base_qbman_qman.c.o
[678/3545] Compiling C object
lib/librte_pipeline.a.p/pipeline_rte_table_action.c.o
ninja: build stopped: subcommand failed.

[Bad commit]
I can't find bad commit

-- 
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:[~2022-05-17  9:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-17  9:35 [Bug 1011] [dpdk-22.07*] lib/vhost meson build failed with gcc12.1.1 on Fedora36/64 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).