* |FAILURE| pw134175 [PATCH v2 3/3] eal: replace out of bounds VLA with static_assert
[not found] <20231113170605.408281-4-stephen@networkplumber.org>
` (2 preceding siblings ...)
2023-11-13 17:07 ` |SUCCESS| pw134175 " checkpatch
@ 2023-11-13 18:19 ` 0-day Robot
3 siblings, 0 replies; 4+ messages in thread
From: 0-day Robot @ 2023-11-13 18:19 UTC (permalink / raw)
To: test-report; +Cc: stephen, robot
From: robot@bytheb.org
Test-Label: github-robot: build
Test-Status: FAILURE
http://patchwork.dpdk.org/patch/134175/
_github build: failed_
Build URL: https://github.com/ovsrobot/dpdk/actions/runs/6853445159
Build Logs:
-----------------------Summary of failed steps-----------------------
"ubuntu-20.04-gcc-stdatomic" failed at step Build and test
"ubuntu-20.04-clang-stdatomic" failed at step Build and test
"ubuntu-20.04-gcc-debug+doc+examples+tests" failed at step Build and test
"ubuntu-20.04-clang-asan+doc+tests" failed at step Build and test
"ubuntu-20.04-gcc-shared-aarch64" failed at step Build and test
"fedora:37-clang" failed at step Build
----------------------End summary of failed steps--------------------
-------------------------------BEGIN LOGS----------------------------
####################################################################################
#### [Begin job log] "ubuntu-20.04-gcc-stdatomic" at step Build and test
####################################################################################
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:43,
from ../drivers/net/sfc/sfc_rx.c:10:
../drivers/net/sfc/sfc_rx.c: In function ‘sfc_efx_rx_desc_flags_to_offload_flags’:
../lib/eal/include/rte_common.h:499:37: error: a label can only be part of a statement and a declaration is not a statement
499 | #define RTE_BUILD_BUG_ON(condition) static_assert(!(condition), #condition)
| ^~~~~~~~~~~~~
../drivers/net/sfc/sfc_rx.c:158:3: note: in expansion of macro ‘RTE_BUILD_BUG_ON’
158 | RTE_BUILD_BUG_ON(RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN != 0);
| ^~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:499:37: error: a label can only be part of a statement and a declaration is not a statement
499 | #define RTE_BUILD_BUG_ON(condition) static_assert(!(condition), #condition)
| ^~~~~~~~~~~~~
../drivers/net/sfc/sfc_rx.c:175:3: note: in expansion of macro ‘RTE_BUILD_BUG_ON’
175 | RTE_BUILD_BUG_ON(RTE_MBUF_F_RX_L4_CKSUM_UNKNOWN != 0);
| ^~~~~~~~~~~~~~~~
[1912/2842] Compiling C object 'drivers/a715181@@tmp_rte_net_sfc@sta/net_sfc_sfc_mcdi.c.o'.
[1913/2842] Generating rte_net_mlx5.sym_chk with a meson_exe.py custom command.
[1914/2842] Compiling C object 'drivers/a715181@@tmp_rte_net_sfc@sta/net_sfc_sfc_ev.c.o'.
[1915/2842] Compiling C object 'drivers/a715181@@tmp_rte_net_sfc@sta/net_sfc_sfc_sriov.c.o'.
[1916/2842] Compiling C object 'drivers/a715181@@tmp_rte_net_sfc@sta/net_sfc_sfc_sw_stats.c.o'.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-gcc-stdatomic" at step Build and test
####################################################################################
####################################################################################
#### [Begin job log] "ubuntu-20.04-clang-stdatomic" at step Build and test
####################################################################################
[81/2842] Compiling C object 'lib/76b5a35@@rte_eal@sta/eal_x86_rte_spinlock.c.o'.
[82/2842] Compiling C object 'lib/76b5a35@@rte_eal@sta/eal_x86_rte_cycles.c.o'.
[83/2842] Compiling C object 'lib/76b5a35@@rte_eal@sta/eal_x86_rte_power_intrinsics.c.o'.
[84/2842] Compiling C object 'lib/76b5a35@@rte_eal@sta/eal_linux_eal_vfio.c.o'.
[85/2842] Linking static target lib/librte_eal.a.
[86/2842] Compiling C object 'lib/76b5a35@@rte_ring@sta/ring_rte_ring.c.o'.
[87/2842] Linking static target lib/librte_ring.a.
[88/2842] Generating ring.sym_chk with a meson_exe.py custom command.
[89/2842] Compiling C object 'lib/76b5a35@@rte_rcu@sta/rcu_rte_rcu_qsbr.c.o'.
[90/2842] Linking static target lib/librte_rcu.a.
[91/2842] Generating rcu.sym_chk with a meson_exe.py custom command.
[92/2842] Compiling C object 'lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool.c.o'.
FAILED: lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool.c.o
ccache clang -Ilib/76b5a35@@rte_mempool@sta -Ilib -I../lib -Ilib/mempool -I../lib/mempool -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/telemetry/../metrics -I../lib/telemetry/../metrics -Ilib/telemetry -I../lib/telemetry -Ilib/ring -I../lib/ring -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O2 -g -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=corei7 -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=lib.mempool -DRTE_ANNOTATE_LOCKS -Wthread-safety -MD -MQ 'lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool.c.o' -MF 'lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool.c.o.d' -o 'lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool.c.o' -c ../lib/mempool/rte_mempool.c
../lib/mempool/rte_mempool.c:749:2: error: static_assert expression is not an integral constant expression
RTE_BUILD_BUG_ON(CALC_CACHE_FLUSHTHRESH(RTE_MEMPOOL_CACHE_MAX_SIZE) >
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:499:51: note: expanded from macro 'RTE_BUILD_BUG_ON'
#define RTE_BUILD_BUG_ON(condition) static_assert(!(condition), #condition)
^~~~~~~~~~~~
1 error generated.
[93/2842] Compiling C object 'lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool_ops.c.o'.
[94/2842] Generating eal.sym_chk with a meson_exe.py custom command.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-clang-stdatomic" at step Build and test
####################################################################################
####################################################################################
#### [Begin job log] "ubuntu-20.04-gcc-debug+doc+examples+tests" at step Build and test
####################################################################################
[1539/3914] Compiling C object 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_tm.c.o'.
[1540/3914] Compiling C object 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_flow.c.o'.
[1541/3914] Compiling C object 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_hash.c.o'.
[1542/3914] Compiling C object 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_fdir.c.o'.
[1543/3914] Compiling C object 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_vf_representor.c.o'.
[1544/3914] Compiling C object 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_rxtx_vec_sse.c.o'.
FAILED: drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_rxtx_vec_sse.c.o
ccache gcc -Idrivers/a715181@@tmp_rte_net_i40e@sta -Idrivers -I../drivers -Idrivers/net/i40e -I../drivers/net/i40e -Idrivers/net/i40e/base -I../drivers/net/i40e/base -Ilib/ethdev -I../lib/ethdev -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/telemetry/../metrics -I../lib/telemetry/../metrics -Ilib/telemetry -I../lib/telemetry -Ilib/net -I../lib/net -Ilib/mbuf -I../lib/mbuf -Ilib/mempool -I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/meter -I../lib/meter -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/pci -I../lib/pci -Idrivers/bus/vdev -I../drivers/bus/vdev -Ilib/hash -I../lib/hash -Ilib/rcu -I../lib/rcu -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -g -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 -D_GNU_SOURCE -fPIC -march=corei7 -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation -DPF_DRIVER -DVF_DRIVER -DINTEGRATED_VF -DX722_A0_SUPPORT -DCC_AVX512_SUPPORT -DRTE_LOG_DEFAULT_LOGTYPE=pmd.net.i40e -MD -MQ 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_rxtx_vec_sse.c.o' -MF 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_rxtx_vec_sse.c.o.d' -o 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_rxtx_vec_sse.c.o' -c ../drivers/net/i40e/i40e_rxtx_vec_sse.c
In file included from ../lib/eal/include/dev_driver.h:12,
from ../lib/ethdev/ethdev_driver.h:23,
from ../drivers/net/i40e/i40e_rxtx_vec_sse.c:6:
../drivers/net/i40e/i40e_rxtx_vec_sse.c: In function ‘descs_to_fdir_32b’:
../lib/eal/include/rte_common.h:499:51: error: expression in static assertion is not constant
499 | #define RTE_BUILD_BUG_ON(condition) static_assert(!(condition), #condition)
| ^~~~~~~~~~~~
../drivers/net/i40e/i40e_rxtx_vec_sse.c:147:2: note: in expansion of macro ‘RTE_BUILD_BUG_ON’
147 | RTE_BUILD_BUG_ON(RTE_MBUF_F_RX_FDIR_ID != (1 << FDIR_ID_BIT_SHIFT));
| ^~~~~~~~~~~~~~~~
[1545/3914] Compiling C object 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_rxtx.c.o'.
[1546/3914] Compiling C object 'drivers/a715181@@tmp_rte_net_iavf@sta/net_iavf_iavf_hash.c.o'.
[1547/3914] Compiling C object 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_rte_pmd_i40e.c.o'.
[1548/3914] Compiling C object 'drivers/a715181@@tmp_rte_net_iavf@sta/net_iavf_iavf_ethdev.c.o'.
[1549/3914] Compiling C object 'drivers/a715181@@tmp_rte_net_i40e@sta/net_i40e_i40e_ethdev.c.o'.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-gcc-debug+doc+examples+tests" at step Build and test
####################################################################################
####################################################################################
#### [Begin job log] "ubuntu-20.04-clang-asan+doc+tests" at step Build and test
####################################################################################
[81/3914] Linking static target lib/librte_ring.a.
[82/3914] Compiling C object 'lib/76b5a35@@rte_eal@sta/eal_x86_rte_spinlock.c.o'.
[83/3914] Compiling C object 'lib/76b5a35@@rte_eal@sta/eal_x86_rte_cycles.c.o'.
[84/3914] Compiling C object 'lib/76b5a35@@rte_eal@sta/eal_x86_rte_power_intrinsics.c.o'.
[85/3914] Compiling C object 'lib/76b5a35@@rte_eal@sta/eal_linux_eal_vfio.c.o'.
[86/3914] Compiling C object 'lib/76b5a35@@rte_eal@sta/eal_linux_eal_memory.c.o'.
[87/3914] Generating ring.sym_chk with a meson_exe.py custom command.
[88/3914] Linking static target lib/librte_eal.a.
[89/3914] Compiling C object 'lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool.c.o'.
FAILED: lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool.c.o
ccache clang -Ilib/76b5a35@@rte_mempool@sta -Ilib -I../lib -Ilib/mempool -I../lib/mempool -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/telemetry/../metrics -I../lib/telemetry/../metrics -Ilib/telemetry -I../lib/telemetry -Ilib/ring -I../lib/ring -Xclang -fcolor-diagnostics -fsanitize=address -fno-omit-frame-pointer -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O2 -g -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=corei7 -mrtm -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DRTE_LOG_DEFAULT_LOGTYPE=lib.mempool -DRTE_ANNOTATE_LOCKS -Wthread-safety -MD -MQ 'lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool.c.o' -MF 'lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool.c.o.d' -o 'lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool.c.o' -c ../lib/mempool/rte_mempool.c
../lib/mempool/rte_mempool.c:749:2: error: static_assert expression is not an integral constant expression
RTE_BUILD_BUG_ON(CALC_CACHE_FLUSHTHRESH(RTE_MEMPOOL_CACHE_MAX_SIZE) >
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:499:51: note: expanded from macro 'RTE_BUILD_BUG_ON'
#define RTE_BUILD_BUG_ON(condition) static_assert(!(condition), #condition)
^~~~~~~~~~~~
1 error generated.
[90/3914] Compiling C object 'lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool_ops.c.o'.
[91/3914] Compiling C object 'lib/76b5a35@@rte_mempool@sta/mempool_rte_mempool_ops_default.c.o'.
[92/3914] Compiling C object 'lib/76b5a35@@rte_mempool@sta/mempool_mempool_trace_points.c.o'.
[93/3914] Compiling C object 'lib/76b5a35@@rte_rcu@sta/rcu_rte_rcu_qsbr.c.o'.
[94/3914] Generating eal.sym_chk with a meson_exe.py custom command.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-clang-asan+doc+tests" at step Build and test
####################################################################################
####################################################################################
#### [Begin job log] "ubuntu-20.04-gcc-shared-aarch64" at step Build and test
####################################################################################
from ../lib/eal/arm/include/rte_atomic.h:9,
from ../lib/eal/include/generic/rte_pause.h:19,
from ../lib/eal/arm/include/rte_pause_64.h:19,
from ../lib/eal/arm/include/rte_pause.h:13,
from ../lib/eal/include/generic/rte_spinlock.h:25,
from ../lib/eal/arm/include/rte_spinlock.h:17,
from ../lib/mempool/rte_mempool.h:43,
from ../drivers/net/sfc/sfc_rx.c:10:
../drivers/net/sfc/sfc_rx.c: In function ‘sfc_efx_rx_desc_flags_to_offload_flags’:
../lib/eal/include/rte_common.h:499:37: error: a label can only be part of a statement and a declaration is not a statement
499 | #define RTE_BUILD_BUG_ON(condition) static_assert(!(condition), #condition)
| ^~~~~~~~~~~~~
../drivers/net/sfc/sfc_rx.c:158:3: note: in expansion of macro ‘RTE_BUILD_BUG_ON’
158 | RTE_BUILD_BUG_ON(RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN != 0);
| ^~~~~~~~~~~~~~~~
../lib/eal/include/rte_common.h:499:37: error: a label can only be part of a statement and a declaration is not a statement
499 | #define RTE_BUILD_BUG_ON(condition) static_assert(!(condition), #condition)
| ^~~~~~~~~~~~~
../drivers/net/sfc/sfc_rx.c:175:3: note: in expansion of macro ‘RTE_BUILD_BUG_ON’
175 | RTE_BUILD_BUG_ON(RTE_MBUF_F_RX_L4_CKSUM_UNKNOWN != 0);
| ^~~~~~~~~~~~~~~~
[1877/4084] Compiling C object 'drivers/a715181@@tmp_rte_net_sfc@sta/net_sfc_sfc_intr.c.o'.
[1878/4084] Compiling C object 'drivers/a715181@@tmp_rte_net_sfc@sta/net_sfc_sfc.c.o'.
ninja: build stopped: subcommand failed.
##[error]Process completed with exit code 1.
####################################################################################
#### [End job log] "ubuntu-20.04-gcc-shared-aarch64" at step Build and test
####################################################################################
####################################################################################
#### [Begin job log] "fedora:37-clang" at step Build
####################################################################################
####################################################################################
#### [End job log] "fedora:37-clang" at step Build
####################################################################################
--------------------------------END LOGS-----------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread