DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1060] GCC 12 build errors with -Dcpu_instruction_set=nehalem
@ 2022-07-25 14:49 bugzilla
  2022-10-10 10:40 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2022-07-25 14:49 UTC (permalink / raw)
  To: dev

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug 1060] GCC 12 build errors with -Dcpu_instruction_set=nehalem
  2022-07-25 14:49 [Bug 1060] GCC 12 build errors with -Dcpu_instruction_set=nehalem bugzilla
@ 2022-10-10 10:40 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2022-10-10 10:40 UTC (permalink / raw)
  To: dev

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

Thomas Monjalon (thomas@monjalon.net) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|CONFIRMED                   |RESOLVED

--- Comment #2 from Thomas Monjalon (thomas@monjalon.net) ---
Resolved in http://git.dpdk.org/dpdk/commit/?id=2be383423e

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-10 10:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-25 14:49 [Bug 1060] GCC 12 build errors with -Dcpu_instruction_set=nehalem bugzilla
2022-10-10 10:40 ` 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).