DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1062] GCC 12 build errors with --buildtype=debug
@ 2022-08-04  9:17 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2022-08-04  9:17 UTC (permalink / raw)
  To: dev

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

            Bug ID: 1062
           Summary: GCC 12 build errors with --buildtype=debug
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: jerinjacobk@gmail.com
  Target Milestone: ---

Reproducer:

meson --werror --buildtype=debug build
ninja -C build

gcc version:
gcc version 12.1.1 20220730 (GCC) (Archlinux)

Log:

../lib/eventdev/rte_event_eth_rx_adapter.c: In function
‘rxa_intr_ring_dequeue’:
../lib/eventdev/rte_event_eth_rx_adapter.c:1213:34: note: destination object
‘qd’ of size 8
 1213 |                 union queue_data qd  = rx_adapter->qd;
      |                                  ^~
In function ‘__rte_ring_dequeue_elems_128’,
    inlined from ‘__rte_ring_dequeue_elems’ at
../lib/ring/rte_ring_elem_pvt.h:262:3,
    inlined from ‘__rte_ring_do_hts_dequeue_elem’ at
../lib/ring/rte_ring_hts_elem_pvt.h:237:3,
    inlined from ‘rte_ring_mc_hts_dequeue_bulk_elem’ at
../lib/ring/rte_ring_hts.h:83:9,
    inlined from ‘rte_ring_dequeue_bulk_elem’ at
../lib/ring/rte_ring_elem.h:391:10,
    inlined from ‘rte_ring_dequeue_elem’ at ../lib/ring/rte_ring_elem.h:476:9,
    inlined from ‘rte_ring_dequeue’ at ../lib/ring/rte_ring.h:480:9,
    inlined from ‘rxa_intr_ring_dequeue’ at
../lib/eventdev/rte_event_eth_rx_adapter.c:1220:10:
../lib/ring/rte_ring_elem_pvt.h:234:25: error: ‘memcpy’ writing 32 bytes into a
region of size 8 overflows the destination [-Werror=stringop-overflow=]
  234 |                         memcpy((void *)(obj + i), (void *)(ring + idx),
32);
      |                        
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/eventdev/rte_event_eth_rx_adapter.c: In function
‘rxa_intr_ring_dequeue’:
../lib/eventdev/rte_event_eth_rx_adapter.c:1213:34: note: destination object
‘qd’ of size 8

-- 
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-08-04  9:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-04  9:17 [Bug 1062] GCC 12 build errors with --buildtype=debug 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).