https://bugs.dpdk.org/show_bug.cgi?id=683
Bug ID: 683 Summary: librte_pipeline build failures on CentOS 7 Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: alia...@nvidia.com CC: cristian.dumitre...@intel.com Target Milestone: --- ``` $ meson --werror --buildtype=release build && ninja-build -C build [555/2604] Compiling C object lib/librte_pipeline.a.p/librte_pipeline_rte_swx_pipeline.c.o FAILED: lib/librte_pipeline.a.p/librte_pipeline_rte_swx_pipeline.c.o ccache cc -Ilib/librte_pipeline.a.p -Ilib -I../lib -Ilib/librte_pipeline -I../lib/librte_pipeline -I. -I.. -Iconfig -I../config -Ilib/librte_eal/include -I../lib/librte_eal/include -Ilib/librte_eal/linux/include -I../lib/librte_eal/linux/include -Ilib/librte_eal/x86/include -I../lib/librte_eal/x86/include -Ilib/librte_eal/common -I../lib/librte_eal/common -Ilib/librte_eal -I../lib/librte_eal -Ilib/librte_kvargs -I../lib/librte_kvargs -Ilib/librte_metrics -I../lib/librte_metrics -Ilib/librte_telemetry -I../lib/librte_telemetry -Ilib/librte_port -I../lib/librte_port -Ilib/librte_ethdev -I../lib/librte_ethdev -Ilib/librte_net -I../lib/librte_net -Ilib/librte_mbuf -I../lib/librte_mbuf -Ilib/librte_mempool -I../lib/librte_mempool -Ilib/librte_ring -I../lib/librte_ring -Ilib/librte_meter -I../lib/librte_meter -Ilib/librte_sched -I../lib/librte_sched -Ilib/librte_ip_frag -I../lib/librte_ip_frag -Ilib/librte_hash -I../lib/librte_hash -Ilib/librte_rcu -I../lib/librte_rcu -Ilib/librte_cryptodev -I../lib/librte_cryptodev -Ilib/librte_eventdev -I../lib/librte_eventdev -Ilib/librte_timer -I../lib/librte_timer -Ilib/librte_kni -I../lib/librte_kni -Ilib/librte_pci -I../lib/librte_pci -Ilib/librte_table -I../lib/librte_table -Ilib/librte_lpm -I../lib/librte_lpm -Ilib/librte_acl -I../lib/librte_acl -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -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-missing-field-initializers -D_GNU_SOURCE -fPIC -march=native -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -MD -MQ lib/librte_pipeline.a.p/librte_pipeline_rte_swx_pipeline.c.o -MF lib/librte_pipeline.a.p/librte_pipeline_rte_swx_pipeline.c.o.d -o lib/librte_pipeline.a.p/librte_pipeline_rte_swx_pipeline.c.o -c ../lib/librte_pipeline/rte_swx_pipeline.c ../lib/librte_pipeline/rte_swx_pipeline.c: In function 'instr_translate': ../lib/librte_pipeline/rte_swx_pipeline.c:4202:30: error: 'src_struct_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] instr->alu.src.struct_id = (uint8_t)src_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:4181:26: note: 'src_struct_id' was declared here uint32_t dst_struct_id, src_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:4216:29: error: 'dst_struct_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] instr->alu.dst.struct_id = (uint8_t)dst_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:4181:11: note: 'dst_struct_id' was declared here uint32_t dst_struct_id, src_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3966:30: error: 'src_struct_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] instr->alu.src.struct_id = (uint8_t)src_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3945:26: note: 'src_struct_id' was declared here uint32_t dst_struct_id, src_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3980:29: error: 'dst_struct_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] instr->alu.dst.struct_id = (uint8_t)dst_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3945:11: note: 'dst_struct_id' was declared here uint32_t dst_struct_id, src_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3913:30: error: 'src_struct_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] instr->alu.src.struct_id = (uint8_t)src_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3892:26: note: 'src_struct_id' was declared here uint32_t dst_struct_id, src_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3927:29: error: 'dst_struct_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] instr->alu.dst.struct_id = (uint8_t)dst_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3892:11: note: 'dst_struct_id' was declared here uint32_t dst_struct_id, src_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3648:30: error: 'src_struct_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] instr->mov.src.struct_id = (uint8_t)src_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3627:26: note: 'src_struct_id' was declared here uint32_t dst_struct_id, src_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3662:29: error: 'dst_struct_id' may be used uninitialized in this function [-Werror=maybe-uninitialized] instr->mov.dst.struct_id = (uint8_t)dst_struct_id; ^ ../lib/librte_pipeline/rte_swx_pipeline.c:3627:11: note: 'dst_struct_id' was declared here uint32_t dst_struct_id, src_struct_id; ^ cc1: all warnings being treated as errors [588/2604] Compiling C object lib/librte_pipeline.a.p/librte_pipeline_rte_table_action.c.o ninja: build stopped: subcommand failed. ``` OS: CentOS 7.9.2009 gcc: 4.8.5 meson: 0.55.1 ninja-build: 1.10.2 -- You are receiving this mail because: You are the assignee for the bug.