From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9AF8FA04A2; Sun, 23 Jan 2022 11:57:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 455A040689; Sun, 23 Jan 2022 11:57:06 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 3513840040 for ; Sun, 23 Jan 2022 11:57:05 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 0BCB9A04A3; Sun, 23 Jan 2022 11:57:04 +0100 (CET) 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 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: vhost/virtio X-Bugzilla-Version: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alialnu@nvidia.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org https://bugs.dpdk.org/show_bug.cgi?id=3D925 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=3Dtrue -Ddisable_drivers=3D*/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=3Dalways -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Werror -O3 -include rte_confi= g.h -Wextra -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-secu= rity -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-align= ed -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -fPIC -march=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DVHOST_GCC_UNROLL_PRAGMA -fno-strict-aliasing -DRTE_LOG_DEFAULT_LOGTYPE=3Dlib.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=3Darray-bounds] 935 | *__P =3D __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 s= ize 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=3Darray-bounds] 935 | *__P =3D __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 s= ize 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=3Darray-bounds] 935 | *__P =3D __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 'r= eq' 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 'r= eq' 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=3Darray-bounds] 935 | *__P =3D __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 'r= eq' 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 'r= eq' 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=3Darray-bounds] 935 | *__P =3D __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 s= ize 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=3Darray-bounds] 935 | *__P =3D __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 s= ize 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=3Darray-bounds] 935 | *__P =3D __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 'r= eq' 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 'r= eq' 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=3Darray-bounds] 935 | *__P =3D __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 'r= eq' 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 'r= eq' 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 comm= and (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) --=20 You are receiving this mail because: You are the assignee for the bug.=