From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3E553A0C41; Thu, 15 Jul 2021 18:41:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA9D640686; Thu, 15 Jul 2021 18:41:14 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 7E6544014D for ; Thu, 15 Jul 2021 18:41:13 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 4E84EA0C43; Thu, 15 Jul 2021 18:41:13 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 15 Jul 2021 16:41:12 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: examples X-Bugzilla-Version: 21.08 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: blo@iol.unh.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 756] performance-thread example fails to build on Alpine linux X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D756 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=3Dall --buildtype=3Ddebugoptimized 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. --=20 You are receiving this mail because: You are the assignee for the bug.=