DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1016] [dpdk-22.07*] drivers/net/ice  meson build failed with gcc12.1.1 on Fedora36/64
@ 2022-05-23  7:44 bugzilla
  2022-06-15  8:30 ` bugzilla
  0 siblings, 1 reply; 2+ messages in thread
From: bugzilla @ 2022-05-23  7:44 UTC (permalink / raw)
  To: dev

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

            Bug ID: 1016
           Summary: [dpdk-22.07*] drivers/net/ice  meson build failed with
                    gcc12.1.1 on Fedora36/64
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: daxuex.gao@intel.com
  Target Milestone: ---

[DPDK Version]
dpdk latest code dpdk-next-* and dpdk branch  

[OS version]
Fedora Linux 36/5.17.7-300.fc36.x86_64
GCC12.1.1

[Test Setup]
This error is to fix https://bugs.dpdk.org/show_bug.cgi?id=1011 

# wget
http://patchwork.dpdk.org/project/dpdk/patch/20220519160711.159618-1-roy.fan.zhang@intel.com/mbox/
-O /tmp/a.patch
# git apply /tmp/a.patch
# meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--default-library=static gcc-linux-app 
# ninja -C gcc-linux-app

[Error log]
[705/3546] Compiling C object
drivers/net/ice/base/libice_base.a.p/ice_switch.c.o
FAILED: drivers/net/ice/base/libice_base.a.p/ice_switch.c.o
cc -Idrivers/net/ice/base/libice_base.a.p -Idrivers/net/ice/base
-I../drivers/net/ice/base -I. -I.. -Iconfig -I../config -Ilib/eal/include
-I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include
-Ilib/eal/x86/include -I../lib/eal/x86/include -Ilib/eal/common
-I../lib/eal/common -Ilib/eal -I../lib/eal -Ilib/kvargs -I../lib/kvargs
-Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry
-fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra
-Werror -O3 -include rte_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=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API
-Wno-format-truncation -Wno-unused-value -Wno-unused-but-set-variable
-Wno-unused-variable -Wno-unused-parameter -Wno-array-bounds -MD -MQ
drivers/net/ice/base/libice_base.a.p/ice_switch.c.o -MF
drivers/net/ice/base/libice_base.a.p/ice_switch.c.o.d -o
drivers/net/ice/base/libice_base.a.p/ice_switch.c.o -c
../drivers/net/ice/base/ice_switch.c
../drivers/net/ice/base/ice_switch.c: In function ‘ice_add_sw_recipe’:
../drivers/net/ice/base/ice_switch.c:7219:61: error: writing 1 byte into a
region of size 0 [-Werror=stringop-overflow=]
 7219 |                         buf[recps].content.lkup_indx[i + 1] =
entry->fv_idx[i];
      |                        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from ../drivers/net/ice/base/ice_controlq.h:8,
                 from ../drivers/net/ice/base/ice_type.h:54,
                 from ../drivers/net/ice/base/ice_common.h:8,
                 from ../drivers/net/ice/base/ice_switch.h:8,
                 from ../drivers/net/ice/base/ice_switch.c:5:
../drivers/net/ice/base/ice_adminq_cmd.h:744:12: note: at offset 5 into
destination object ‘lkup_indx’ of size 5
  744 |         u8 lkup_indx[5];
      |            ^~~~~~~~~
../drivers/net/ice/base/ice_switch.c:7219:61: error: writing 1 byte into a
region of size 0 [-Werror=stringop-overflow=]
 7219 |                         buf[recps].content.lkup_indx[i + 1] =
entry->fv_idx[i];
      |                        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
../drivers/net/ice/base/ice_adminq_cmd.h:744:12: note: at offset [6, 254] into
destination object ‘lkup_indx’ of size 5
  744 |         u8 lkup_indx[5];
      |            ^~~~~~~~~
../drivers/net/ice/base/ice_switch.c:7219:61: error: writing 1 byte into a
region of size 0 [-Werror=stringop-overflow=]
 7219 |                         buf[recps].content.lkup_indx[i + 1] =
entry->fv_idx[i];
      |                        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
../drivers/net/ice/base/ice_adminq_cmd.h:744:12: note: at offset [7, 255] into
destination object ‘lkup_indx’ of size 5
  744 |         u8 lkup_indx[5];
      |            ^~~~~~~~~
cc1: all warnings being treated as errors
[734/3546] Compiling C object
lib/librte_pipeline.a.p/pipeline_rte_table_action.c.o
ninja: build stopped: subcommand failed.

[Bad commit]
This is a problem on a new os, no problem on fedora35

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

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

* [Bug 1016] [dpdk-22.07*] drivers/net/ice  meson build failed with gcc12.1.1 on Fedora36/64
  2022-05-23  7:44 [Bug 1016] [dpdk-22.07*] drivers/net/ice meson build failed with gcc12.1.1 on Fedora36/64 bugzilla
@ 2022-06-15  8:30 ` bugzilla
  0 siblings, 0 replies; 2+ messages in thread
From: bugzilla @ 2022-06-15  8:30 UTC (permalink / raw)
  To: dev

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

David Marchand (david.marchand@redhat.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |david.marchand@redhat.com
         Resolution|---                         |DUPLICATE

--- Comment #4 from David Marchand (david.marchand@redhat.com) ---
Please, don't mix several issues in the same report.
I'll focus on the initial report, about net/ice which is a duplicate of bug
852.

*** This bug has been marked as a duplicate of bug 852 ***

-- 
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-06-15  8:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23  7:44 [Bug 1016] [dpdk-22.07*] drivers/net/ice meson build failed with gcc12.1.1 on Fedora36/64 bugzilla
2022-06-15  8:30 ` 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).