https://bugs.dpdk.org/show_bug.cgi?id=756
Bug ID: 756 Summary: performance-thread example fails to build on Alpine linux Product: DPDK Version: 21.08 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: examples Assignee: dev@dpdk.org Reporter: b...@iol.unh.edu Target Milestone: --- When compiling DPDK with all examples, the performance thread fails to build due to implicit declaration of pthread-related functions. Here is some example output: # meson dpdk dpdk/build -Dexamples=all --buildtype=debugoptimized The Meson build system Version: 0.58.1 ... Project version: 21.08.0-rc1 C compiler for the host machine: ccache cc (gcc 10.3.1 "cc (Alpine 10.3.1_git20210424) 10.3.1 20210424") C linker for the host machine: cc ld.bfd 2.35.2 Host machine cpu family: x86_64 Host machine cpu: x86_64 Message: ## Building in Developer Mode ## ... Option buildtype is: debugoptimized [default: release] Found ninja-1.10.0.git.kitware.jobserver-1 at /usr/bin/ninja # ninja -C dpdk/build ... ../examples/performance-thread/pthread_shim/main.c: In function 'initial_lthread': ../examples/performance-thread/pthread_shim/main.c:158:3: warning: implicit declaration of function 'pthread_attr_setaffinity_np'; did you mean 'pthread_setaffinity_np'? [-Wimplicit-function-declaration] 158 | pthread_attr_setaffinity_np(&attr, sizeof(rte_cpuset_t), &cpuset); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | pthread_setaffinity_np ../examples/performance-thread/pthread_shim/main.c:158:3: warning: nested extern declaration of 'pthread_attr_setaffinity_np' [-Wnested-externs] [137/2865] Compiling C object examples/dpdk-bbdev_app.p/bbdev_app_main.c.o ninja: build stopped: subcommand failed. -- You are receiving this mail because: You are the assignee for the bug.