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 [thread overview]
Message-ID: <bug-1060-3@http.bugs.dpdk.org/> (raw)
https://bugs.dpdk.org/show_bug.cgi?id=1060
Bug ID: 1060
Summary: GCC 12 build errors with -Dcpu_instruction_set=nehalem
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=nehalem
ninja -C build
gcc version:
$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/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=c,c++,ada,fortran,go,lto,objc,obj-c++,d --enable-bootstrap
--prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugur
l=https://bugs.archlinux.org/ --with-build-config=bootstrap-lto
--with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit
--enable-cet=auto --enable-checking=release --enable-clocale=gnu
--enable-default-pie --enable-default-ssp
--enable-gnu-indirect-function --enable-gnu-unique-object
--enable-libstdcxx-backtrace --enable-link-serialization=1
--enable-linker-build-id --enable-lto --enable-multilib --enable-plugin
--enable-shared --enable-threads=posix --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-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=nehalem -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API
-Wno-format-truncation -DRTE_LOG_DEFAULT_LOGTYPE=
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 ‘_mm_loadu_si128’,
inlined from ‘rte_mov16’ at ../lib/eal/x86/include/rte_memcpy.h:514:9,
inlined from ‘rte_mov128’ at ../lib/eal/x86/include/rte_memcpy.h:556:2,
inlined from ‘rte_memcpy_generic’ at
../lib/eal/x86/include/rte_memcpy.h:719:4,
inlined from ‘rte_memcpy’ at ../lib/eal/x86/include/rte_memcpy.h:851:10,
inlined from ‘outb_tun_pkt_prepare’ 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 ‘__m128i_u[15]’ is partly outside array bounds of ‘const
uint8_t[255]’ {aka ‘const unsigned char[255]’} [-Werror=array-bounds]
703 | return *__P;
| ^~~~
In file included from ../lib/ipsec/esp_outb.c:16:
../lib/ipsec/pad.h: In function ‘outb_tun_pkt_prepare’:
../lib/ipsec/pad.h:10:22: note: at offset 240 into object ‘esp_pad_bytes’ of
size 255
10 | static const uint8_t esp_pad_bytes[IPSEC_MAX_PAD_SIZE] = {
| ^~~~~~~~~~~~~
In function ‘_mm_loadu_si128’,
inlined from ‘rte_mov16’ at ../lib/eal/x86/include/rte_memcpy.h:514:9,
inlined from ‘rte_mov128’ at ../lib/eal/x86/include/rte_memcpy.h:556:2,
inlined from ‘rte_memcpy_generic’ at
../lib/eal/x86/include/rte_memcpy.h:719:4,
inlined from ‘rte_memcpy’ at ../lib/eal/x86/include/rte_memcpy.h:851:10,
inlined from ‘outb_trs_pkt_prepare’ 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 ‘__m128i_u[15]’ is partly outside array bounds of ‘const
uint8_t[255]’ {aka ‘const unsigned char[255]’} [-Werror=array-bounds]
703 | return *__P;
| ^~~~
../lib/ipsec/pad.h: In function ‘outb_trs_pkt_prepare’:
../lib/ipsec/pad.h:10:22: note: at offset 240 into object ‘esp_pad_bytes’ of
size 255
10 | static const uint8_t esp_pad_bytes[IPSEC_MAX_PAD_SIZE] = {
| ^~~~~~~~~~~~~
--
You are receiving this mail because:
You are the assignee for the bug.
next reply other threads:[~2022-07-25 14:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-25 14:49 bugzilla [this message]
2022-10-10 10:40 ` [Bug 1060] GCC 12 build errors with -Dcpu_instruction_set=nehalem 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-1060-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.