On Mon, 14 Sep 2026 15:54:17 +0100
Marat Khalili <[email protected]> wrote:

> Add a new DPDK application, dpdk-validate-bpf, for pre-validating eBPF
> programs for compatibility with the lib/bpf execution context.
> 
> The application allows evaluating eBPF programs against the DPDK verifier
> before loading them into a real application. It includes an interactive
> debugging mode to trace state changes per instruction and understand the
> validator's decisions.
> 
> Signed-off-by: Marat Khalili <[email protected]>
> ---

Build fails on FreeBSD

*Build Failed #1:
OS: FreeBSD15-64
Target: x86_64-native-bsdapp-gcc
FAILED: app/dpdk-validate-bpf.p/validate-bpf_parse_decl.c.o 
gcc -Iapp/dpdk-validate-bpf.p -Iapp -I../app -Ilib/bpf -I../lib/bpf 
-Ilib/eal/common -I../lib/eal/common -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 -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log 
-Ilib/metrics -I../lib/metrics -Ilib/telemetry -I../lib/telemetry 
-Ilib/argparse -I../lib/argparse -Ilib/mbuf -I../lib/mbuf -Ilib/mempool 
-I../lib/mempool -Ilib/ring -I../lib/ring -Ilib/net -I../lib/net -Ilib/ethdev 
-I../lib/ethdev -Ilib/meter -I../lib/meter -Ilib/cmdline -I../lib/cmdline 
-fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra 
-Werror -std=c11 -O3 -include rte_config.h -Wvla -Wcast-qual -Wdeprecated 
-Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations 
-Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith 
-Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings 
-Wno-packed-not-aligned -Wno-missing-field-initializers -D_GNU_SOURCE 
-D__BSD_VISIBLE -march=native -mno-avx512f -mrtm -DALLOW_EXPERIMENTAL_API -MD 
-MQ app/dpdk-validate-bpf.p/validate-bpf_parse_decl.c.o -MF 
app/dpdk-validate-bpf.p/validate-bpf_parse_decl.c.o.d -o 
app/dpdk-validate-bpf.p/validate-bpf_parse_decl.c.o -c 
../app/validate-bpf/parse_decl.c
../app/validate-bpf/parse_decl.c: In function 'take_arg':
../app/validate-bpf/parse_decl.c:392:33: error: 'array_length' may be used 
uninitialized [-Werror=maybe-uninitialized]
  392 |                 arg->value.size *= array_length;
      |                                 ^~
../app/validate-bpf/parse_decl.c:381:24: note: 'array_length' was declared here
  381 |                 size_t array_length;
      |                        ^~~~~~~~~~~~
cc1: all warnings being treated as errors

Reply via email to