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 B87AFA00C4; Mon, 25 Jul 2022 16:49:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8CD6F410FA; Mon, 25 Jul 2022 16:49:28 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id A5EBE40684 for ; Mon, 25 Jul 2022 16:49:26 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 7A48AA034C; Mon, 25 Jul 2022 16:49:26 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1060] GCC 12 build errors with -Dcpu_instruction_set=nehalem Date: Mon, 25 Jul 2022 14:49:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: other X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jerinjacobk@gmail.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=3D1060 Bug ID: 1060 Summary: GCC 12 build errors with -Dcpu_instruction_set=3Dnehalem Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: jerinjacobk@gmail.com Target Milestone: --- How to reproduce: meson build --werror -Dcpu_instruction_set=3Dnehalem ninja -C build gcc version:=20 $ gcc -v Using built-in specs. COLLECT_GCC=3D/usr/bin/gcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /build/gcc/src/gcc/configure --enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++,d --enable-boots= trap --prefix=3D/usr --libdir=3D/usr/lib --libexecdir=3D/usr/lib --mandir=3D/usr= /share/man --infodir=3D/usr/share/info --with-bugur l=3Dhttps://bugs.archlinux.org/ --with-build-config=3Dbootstrap-lto --with-linker-hash-style=3Dgnu --with-system-zlib --enable-__cxa_atexit --enable-cet=3Dauto --enable-checking=3Drelease --enable-clocale=3Dgnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=3D1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=3Dposix --disable-l ibssp --disable-libstdcxx-pch --disable-werror Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.1.0 (GCC) log: config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-exte= rns -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=3Dnehalem -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=3D lib.ipsec -MD -MQ lib/librte_ipsec.a.p/ipsec_esp_outb.c.o -MF lib/librte_ipsec.a.p/ipsec_esp_outb.c.o.d -o lib/librte_ipsec.a.p/ipsec_esp_outb.c.o -c ../lib/ipsec/esp_outb.c In file included from ../lib/eal/x86/include/rte_atomic.h:15, from ../lib/eal/include/generic/rte_pause.h:19, from ../lib/eal/x86/include/rte_pause.h:12, from ../lib/eal/include/generic/rte_spinlock.h:25, from ../lib/eal/x86/include/rte_spinlock.h:12, from ../lib/mempool/rte_mempool.h:41, from ../lib/mbuf/rte_mbuf.h:38, from ../lib/cryptodev/rte_crypto.h:20, from ../lib/cryptodev/rte_cryptodev.h:22, from ../lib/ipsec/rte_ipsec_sa.h:15, from ../lib/ipsec/rte_ipsec.h:17, from ../lib/ipsec/esp_outb.c:5: In function =E2=80=98_mm_loadu_si128=E2=80=99, inlined from =E2=80=98rte_mov16=E2=80=99 at ../lib/eal/x86/include/rte_= memcpy.h:514:9, inlined from =E2=80=98rte_mov128=E2=80=99 at ../lib/eal/x86/include/rte= _memcpy.h:556:2, inlined from =E2=80=98rte_memcpy_generic=E2=80=99 at ../lib/eal/x86/include/rte_memcpy.h:719:4, inlined from =E2=80=98rte_memcpy=E2=80=99 at ../lib/eal/x86/include/rte= _memcpy.h:851:10, inlined from =E2=80=98outb_tun_pkt_prepare=E2=80=99 at ../lib/ipsec/esp= _outb.c:223:2: /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include/emmintrin.h:703:10: error: array subscript =E2=80=98__m128i_u[15]=E2=80=99 is partly outside array bou= nds of =E2=80=98const uint8_t[255]=E2=80=99 {aka =E2=80=98const unsigned char[255]=E2=80=99} [-We= rror=3Darray-bounds] 703 | return *__P; | ^~~~ In file included from ../lib/ipsec/esp_outb.c:16: ../lib/ipsec/pad.h: In function =E2=80=98outb_tun_pkt_prepare=E2=80=99: ../lib/ipsec/pad.h:10:22: note: at offset 240 into object =E2=80=98esp_pad_= bytes=E2=80=99 of size 255 10 | static const uint8_t esp_pad_bytes[IPSEC_MAX_PAD_SIZE] =3D { | ^~~~~~~~~~~~~ In function =E2=80=98_mm_loadu_si128=E2=80=99, inlined from =E2=80=98rte_mov16=E2=80=99 at ../lib/eal/x86/include/rte_= memcpy.h:514:9, inlined from =E2=80=98rte_mov128=E2=80=99 at ../lib/eal/x86/include/rte= _memcpy.h:556:2, inlined from =E2=80=98rte_memcpy_generic=E2=80=99 at ../lib/eal/x86/include/rte_memcpy.h:719:4, inlined from =E2=80=98rte_memcpy=E2=80=99 at ../lib/eal/x86/include/rte= _memcpy.h:851:10, inlined from =E2=80=98outb_trs_pkt_prepare=E2=80=99 at ../lib/ipsec/esp= _outb.c:420:2: /usr/lib/gcc/x86_64-pc-linux-gnu/12.1.0/include/emmintrin.h:703:10: error: array subscript =E2=80=98__m128i_u[15]=E2=80=99 is partly outside array bou= nds of =E2=80=98const uint8_t[255]=E2=80=99 {aka =E2=80=98const unsigned char[255]=E2=80=99} [-We= rror=3Darray-bounds] 703 | return *__P; | ^~~~ ../lib/ipsec/pad.h: In function =E2=80=98outb_trs_pkt_prepare=E2=80=99: ../lib/ipsec/pad.h:10:22: note: at offset 240 into object =E2=80=98esp_pad_= bytes=E2=80=99 of size 255 10 | static const uint8_t esp_pad_bytes[IPSEC_MAX_PAD_SIZE] =3D { | ^~~~~~~~~~~~~ --=20 You are receiving this mail because: You are the assignee for the bug.=