DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 756] performance-thread example fails to build on Alpine linux
@ 2021-07-15 16:41 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2021-07-15 16:41 UTC (permalink / raw)
  To: dev

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: blo@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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-15 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15 16:41 [dpdk-dev] [Bug 756] performance-thread example fails to build on Alpine linux bugzilla

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).