* compilation|FAILURE| pw(136588) sid(31072) job(PER_PATCH_BUILD10967)common/sfc: replace out of bounds condition with static_assert
@ 2024-02-11 23:28 sys_stv
0 siblings, 0 replies; only message in thread
From: sys_stv @ 2024-02-11 23:28 UTC (permalink / raw)
To: test-report, stephen
[-- Attachment #1: Type: text/plain, Size: 21850 bytes --]
Test-Label: Intel-compilation
Test-Status: FAILURE
http://dpdk.org/patch/136588
_Compilation issues_
Submitter: Stephen Hemminger <stephen@networkplumber.org>
Date: 2024-02-11 22:24:15
Reply_mail: <20240211222543.116113-1-stephen@networkplumber.org>
DPDK git baseline: Repo:dpdk-next-net, CommitID: 7c75d453b719989092e0a53f0c049dc6c247bec0
Meson Build Summary: 24 Builds Done, 20 Successful, 4 Failures, 0 Blocked
+-------------------+------------+--------------+------------+------------+-----------+----------+------------+
| os | gcc-static | clang-static | icc-static | gcc-shared | gcc-debug | document | gcc-16byte |
+-------------------+------------+--------------+------------+------------+-----------+----------+------------+
| OpenAnolis8.8-64 | pass | | | | | | |
| FreeBSD13-64 | pass | fail | | pass | pass | | |
| RHEL92-64 | pass | fail | | pass | pass | | |
| SUSE15-64 | pass | fail | | | | | |
| CBL-Mariner2.0-64 | pass | | | | | | |
| UB2204-32 | pass | | | | | | |
| RHEL89-64 | pass | | | | | | |
| UB2204-64 | pass | fail | | | | pass | pass |
| CentOS79-64 | pass | | | | | | |
| RHEL92-64Rt | pass | | | | | | |
| UB2310-64 | pass | | | | | | |
| FC39-64 | pass | pass | | | | | |
| UB2204-64Rt | pass | | | | | | |
+-------------------+------------+--------------+------------+------------+-----------+----------+------------+
Comments:
Because of DPDK bug (https://bugs.dpdk.org/show_bug.cgi?id=928),
All the dpdk-next-* branch add `Ddisable_drivers=event/cnxk` option when build with ICC complier.
Test environment and configuration as below:
OS: OpenAnolis8.8-64
Kernel Version: 5.10.134-13.an8.x86_64
GCC Version: gcc (GCC) 8.5.0 20210514 (Anolis 8.5.0-10.0.3)
Clang Version: 13.0.1 (Anolis 13.0.1-2.0.2.module+an8.7.0+10996+1588f068)
x86_64-native-linuxapp-gcc
OS: FreeBSD13-64
Kernel Version: 13.2-RELEASE
GCC Version: gcc (FreeBSD Ports Collection) 12.2.0
Clang Version: 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
x86_64-native-bsdapp-gcc
x86_64-native-bsdapp-clang
x86_64-native-bsdapp-gcc+shared
x86_64-native-bsdapp-gcc+debug
OS: RHEL92-64
Kernel Version: 5.14.0-284.11.1.el9_2.x86_64
GCC Version: gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4)
Clang Version: 15.0.7 (Red Hat 15.0.7-2.el9)
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc+shared
x86_64-native-linuxapp-gcc+debug
OS: SUSE15-64
Kernel Version: 5.14.21-150500.53-default
GCC Version: gcc (SUSE Linux) 7.5.0
Clang Version: 15.0.7
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
OS: CBL-Mariner2.0-64
Kernel Version: 5.15.55.1_2e9a4f9+
GCC Version: gcc (GCC) 11.2.0
Clang Version: NA
x86_64-native-linuxapp-gcc
OS: UB2204-32
Kernel Version: 5.15.0-58-generic
GCC Version: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang Version: NA
i686-native-linuxapp-gcc
OS: RHEL89-64
Kernel Version: 4.18.0-513.5.1.el8_9.x86_64
GCC Version: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-20)
Clang Version: 16.0.6 (Red Hat 16.0.6-2.module+el8.9.0+19521+190d7aba)
x86_64-native-linuxapp-gcc
OS: UB2204-64
Kernel Version: 5.15.0-58-generic
GCC Version: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang Version: 14.0.0-1ubuntu1.1
x86_64-native-linuxapp-gcc+16byte
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-doc
OS: CentOS79-64
Kernel Version: 3.10.0-1160.81.1.el7.x86_64
GCC Version: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Clang Version: 3.4.2 (tags/RELEASE_34/dot2-final)
x86_64-native-linuxapp-gcc
OS: RHEL92-64Rt
Kernel Version: 5.14.0-284.11.1.rt14.296.el9_2.x86_64
GCC Version: gcc (GCC) 11.3.1 20221121 (Red Hat 11.3.1-4)
Clang Version: 15.0.7 (Red Hat 15.0.7-2.el9)
x86_64-native-linuxapp-gcc
OS: UB2310-64
Kernel Version: 6.5.0-9-generic
GCC Version: gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0
Clang Version: NA
x86_64-native-linuxapp-gcc
OS: FC39-64
Kernel Version: 6.5.6-300.fc39.x86_64
GCC Version: gcc (GCC) 13.2.1 20230918 (Red Hat 13.2.1-3)
Clang Version: 17.0.6 (Fedora 17.0.6-1.fc39)
x86_64-native-linuxapp-gcc
x86_64-native-linuxapp-clang
OS: UB2204-64Rt
Kernel Version: 5.17.5-051705-generic
GCC Version: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang Version: 14.0.0-1ubuntu1.1
x86_64-native-linuxapp-gcc
*Build Failed #1:
OS: FreeBSD13-64
Target: x86_64-native-bsdapp-clang
FAILED: drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o
clang -Idrivers/common/sfc_efx/base/libsfc_base.a.p -Idrivers/common/sfc_efx/base -I../drivers/common/sfc_efx/base -Idrivers/common/sfc_efx -I../drivers/common/sfc_efx -I. -I.. -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include -Ilib/eal/freebsd/include -I../lib/eal/freebsd/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/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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-missing-field-initializers -D_GNU_SOURCE -D__BSD_VISIBLE -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wdisabled-optimization -Waggregate-return -Wbad-function-cast -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-empty-body -Wno-unused-but-set-variable -MD -MQ drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o -MF drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o.d -o drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o -c ../drivers/common/sfc_efx/base/ef10_filter.c
../drivers/common/sfc_efx/base/ef10_filter.c:503:2: error: static_assert expression is not an integral constant expression
EFX_STATIC_ASSERT((EFX_FIELD_OFFSET(efx_filter_spec_t, efs_outer_vid) %
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx.h:29:18: note: expanded from macro 'EFX_STATIC_ASSERT'
{ static_assert((_cond), #_cond); }
^~~~~~~
../drivers/common/sfc_efx/base/ef10_filter.c:503:21: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression
EFX_STATIC_ASSERT((EFX_FIELD_OFFSET(efx_filter_spec_t, efs_outer_vid) %
^
../drivers/common/sfc_efx/base/efx.h:35:3: note: expanded from macro 'EFX_FIELD_OFFSET'
((size_t)&(((_type *)0)->_field))
^
../drivers/common/sfc_efx/base/ef10_filter.c:1246:18: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
matches_count = MCDI_OUT_DWORD(req,
^~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_mcdi.h:493:2: note: expanded from macro 'MCDI_OUT_DWORD'
EFX_DWORD_FIELD(*MCDI_OUT2(_emr, efx_dword_t, _ofst), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:533:30: note: expanded from macro 'EFX_DWORD_FIELD'
EFX_HIGH_BIT(_field)) & EFX_MASK32(_field))
^~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:145:23: note: expanded from macro 'EFX_MASK32'
(((((uint32_t)1) << EFX_WIDTH(_field))) - 1))
^ ~~~~~~~~~~~~~~~~~
2 errors generated.
[644/1917] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/rhead_tunnel.c.o
[645/1917] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/rhead_pci.c.o
[646/1917] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/rhead_virtio.c.o
[647/1917] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/rhead_tx.c.o
[648/1917] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/rhead_rx.c.o
[649/1917] Compiling C object drivers/libtmp_rte_common_sfc_efx.a.p/common_sfc_efx_sfc_efx.c.o
[650/1917] Compiling C object drivers/libtmp_rte_common_sfc_efx.a.p/common_sfc_efx_sfc_efx_mcdi.c.o
[651/1917] Compiling C object drivers/libtmp_rte_mempool_ring.a.p/mempool_ring_rte_mempool_ring.c.o
[652/1917] Compiling C object drivers/libtmp_rte_mempool_bucket.a.p/mempool_bucket_rte_mempool_bucket.c.o
ninja: build stopped
*Build Failed #2:
OS: RHEL92-64
Target: x86_64-native-linuxapp-clang
FAILED: drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o
clang -Idrivers/common/sfc_efx/base/libsfc_base.a.p -Idrivers/common/sfc_efx/base -I../drivers/common/sfc_efx/base -Idrivers/common/sfc_efx -I../drivers/common/sfc_efx -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/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wdisabled-optimization -Waggregate-return -Wbad-function-cast -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-empty-body -Wno-unused-but-set-variable -MD -MQ drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o -MF drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o.d -o drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o -c ../drivers/common/sfc_efx/base/ef10_filter.c
../drivers/common/sfc_efx/base/ef10_filter.c:503:2: error: static assertion expression is not an integral constant expression
EFX_STATIC_ASSERT((EFX_FIELD_OFFSET(efx_filter_spec_t, efs_outer_vid) %
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx.h:29:18: note: expanded from macro 'EFX_STATIC_ASSERT'
{ static_assert((_cond), #_cond); }
^~~~~~~
../drivers/common/sfc_efx/base/ef10_filter.c:503:21: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression
EFX_STATIC_ASSERT((EFX_FIELD_OFFSET(efx_filter_spec_t, efs_outer_vid) %
^
../drivers/common/sfc_efx/base/efx.h:35:3: note: expanded from macro 'EFX_FIELD_OFFSET'
((size_t)&(((_type *)0)->_field))
^
../drivers/common/sfc_efx/base/ef10_filter.c:1246:18: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
matches_count = MCDI_OUT_DWORD(req,
^~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_mcdi.h:493:2: note: expanded from macro 'MCDI_OUT_DWORD'
EFX_DWORD_FIELD(*MCDI_OUT2(_emr, efx_dword_t, _ofst), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:533:30: note: expanded from macro 'EFX_DWORD_FIELD'
EFX_HIGH_BIT(_field)) & EFX_MASK32(_field))
^~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:145:23: note: expanded from macro 'EFX_MASK32'
(((((uint32_t)1) << EFX_WIDTH(_field))) - 1))
^ ~~~~~~~~~~~~~~~~~
2 errors generated.
[848/2810] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_image.c.o
[849/2810] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_evb.c.o
[850/2810] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_intr.c.o
[851/2810] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_mac.c.o
[852/2810] Compiling C object drivers/libtmp_rte_common_qat.a.p/crypto_qat_qat_asym.c.o
[853/2810] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_mcdi.c.o
[854/2810] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_nvram.c.o
[855/2810] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_nic.c.o
[856/2810] Generating drivers/rte_common_cnxk.sym_chk with a custom command (wrapped by meson to capture output)
ninja: build stopped
*Build Failed #3:
OS: SUSE15-64
Target: x86_64-native-linuxapp-clang
FAILED: drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o
clang -Idrivers/common/sfc_efx/base/libsfc_base.a.p -Idrivers/common/sfc_efx/base -I../drivers/common/sfc_efx/base -Idrivers/common/sfc_efx -I../drivers/common/sfc_efx -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/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wdisabled-optimization -Waggregate-return -Wbad-function-cast -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-empty-body -Wno-unused-but-set-variable -MD -MQ drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o -MF drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o.d -o drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o -c ../drivers/common/sfc_efx/base/ef10_filter.c
../drivers/common/sfc_efx/base/ef10_filter.c:503:2: error: static assertion expression is not an integral constant expression
EFX_STATIC_ASSERT((EFX_FIELD_OFFSET(efx_filter_spec_t, efs_outer_vid) %
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx.h:29:18: note: expanded from macro 'EFX_STATIC_ASSERT'
{ static_assert((_cond), #_cond); }
^~~~~~~
../drivers/common/sfc_efx/base/ef10_filter.c:503:21: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression
EFX_STATIC_ASSERT((EFX_FIELD_OFFSET(efx_filter_spec_t, efs_outer_vid) %
^
../drivers/common/sfc_efx/base/efx.h:35:3: note: expanded from macro 'EFX_FIELD_OFFSET'
((size_t)&(((_type *)0)->_field))
^
../drivers/common/sfc_efx/base/ef10_filter.c:1246:18: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
matches_count = MCDI_OUT_DWORD(req,
^~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_mcdi.h:493:2: note: expanded from macro 'MCDI_OUT_DWORD'
EFX_DWORD_FIELD(*MCDI_OUT2(_emr, efx_dword_t, _ofst), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:533:30: note: expanded from macro 'EFX_DWORD_FIELD'
EFX_HIGH_BIT(_field)) & EFX_MASK32(_field))
^~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:145:23: note: expanded from macro 'EFX_MASK32'
(((((uint32_t)1) << EFX_WIDTH(_field))) - 1))
^ ~~~~~~~~~~~~~~~~~
2 errors generated.
[845/2868] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_intr.c.o
[846/2868] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_ev.c.o
[847/2868] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_mac.c.o
[848/2868] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_mcdi.c.o
[849/2868] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_nvram.c.o
[850/2868] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_nic.c.o
[851/2868] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_proxy.c.o
[852/2868] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_phy.c.o
[853/2868] Generating drivers/rte_common_cnxk.sym_chk with a custom command (wrapped by meson to capture output)
ninja: build stopped
*Build Failed #4:
OS: UB2204-64
Target: x86_64-native-linuxapp-clang
FAILED: drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o
clang -Idrivers/common/sfc_efx/base/libsfc_base.a.p -Idrivers/common/sfc_efx/base -I../drivers/common/sfc_efx/base -Idrivers/common/sfc_efx -I../drivers/common/sfc_efx -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/log -I../lib/log -Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -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-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wdisabled-optimization -Waggregate-return -Wbad-function-cast -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-empty-body -Wno-unused-but-set-variable -MD -MQ drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o -MF drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o.d -o drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_filter.c.o -c ../drivers/common/sfc_efx/base/ef10_filter.c
../drivers/common/sfc_efx/base/ef10_filter.c:503:2: error: static_assert expression is not an integral constant expression
EFX_STATIC_ASSERT((EFX_FIELD_OFFSET(efx_filter_spec_t, efs_outer_vid) %
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx.h:29:18: note: expanded from macro 'EFX_STATIC_ASSERT'
{ static_assert((_cond), #_cond); }
^~~~~~~
../drivers/common/sfc_efx/base/ef10_filter.c:503:21: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression
EFX_STATIC_ASSERT((EFX_FIELD_OFFSET(efx_filter_spec_t, efs_outer_vid) %
^
../drivers/common/sfc_efx/base/efx.h:35:3: note: expanded from macro 'EFX_FIELD_OFFSET'
((size_t)&(((_type *)0)->_field))
^
../drivers/common/sfc_efx/base/ef10_filter.c:1246:18: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
matches_count = MCDI_OUT_DWORD(req,
^~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_mcdi.h:493:2: note: expanded from macro 'MCDI_OUT_DWORD'
EFX_DWORD_FIELD(*MCDI_OUT2(_emr, efx_dword_t, _ofst), \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:533:30: note: expanded from macro 'EFX_DWORD_FIELD'
EFX_HIGH_BIT(_field)) & EFX_MASK32(_field))
^~~~~~~~~~~~~~~~~~
../drivers/common/sfc_efx/base/efx_types.h:145:23: note: expanded from macro 'EFX_MASK32'
(((((uint32_t)1) << EFX_WIDTH(_field))) - 1))
^ ~~~~~~~~~~~~~~~~~
2 errors generated.
[856/2896] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_intr.c.o
[857/2896] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_mac.c.o
[858/2896] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_mcdi.c.o
[859/2896] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_nvram.c.o
[860/2896] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_phy.c.o
[861/2896] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_proxy.c.o
[862/2896] Compiling C object drivers/common/sfc_efx/base/libsfc_base.a.p/ef10_nic.c.o
[863/2896] Compiling C object drivers/libtmp_rte_common_qat.a.p/crypto_qat_qat_asym.c.o
[864/2896] Generating drivers/rte_common_cnxk.sym_chk with a custom command (wrapped by meson to capture output)
ninja: build stopped
DPDK STV team
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-11 23:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-11 23:28 compilation|FAILURE| pw(136588) sid(31072) job(PER_PATCH_BUILD10967)common/sfc: replace out of bounds condition with static_assert sys_stv
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).