DPDK patches and discussions
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 756] performance-thread example fails to build on Alpine linux
Date: Thu, 15 Jul 2021 16:41:12 +0000	[thread overview]
Message-ID: <bug-756-3@http.bugs.dpdk.org/> (raw)

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.

                 reply	other threads:[~2021-07-15 16:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-756-3@http.bugs.dpdk.org/ \
    --to=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).