From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH 1/4] app: add LDFLAGS -latomic to link atomic lib Date: Tue, 15 May 2018 10:00:23 +0100 Message-ID: <20180515090023.GA6272@bricha3-MOBL.ger.corp.intel.com> References: <1526372924-28411-1-git-send-email-gavin.hu@arm.com> <1526372924-28411-2-git-send-email-gavin.hu@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Gavin Hu Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id A49231B879 for ; Tue, 15 May 2018 11:00:29 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1526372924-28411-2-git-send-email-gavin.hu@arm.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, May 15, 2018 at 04:28:41AM -0400, Gavin Hu wrote: > For ARM64 platform, libdpdk.a includes the librte_pmd_octeontx_ssovf.a, > which requires the libatomic.a support.The atomic lib is built-in in the > gcc toolchain, but for clang it has to be explicitly linked. > For more details, please refer to https://clang.llvm.org/docs/Toolchain.html > > ~/dpdk/build/lib/librte_pmd_octeontx_ssovf.a(timvf_worker.o): In function `timvf_timer_cancel_burst': > timvf_worker.c:(.text+0x80): undefined reference to `__atomic_fetch_add_8' > /home/gavin/arm_repo/dpdk/build/lib/librte_pmd_octeontx_ssovf.a(timvf_worker.o): In function `timvf_timer_arm_burst_sp': > timvf_worker.c:(.text+0x200): undefined reference to `__atomic_fetch_add_8' > timvf_worker.c:(.text+0x244): undefined reference to `__atomic_store_2' > timvf_worker.c:(.text+0x278): undefined reference to `__atomic_fetch_add_4' > timvf_worker.c:(.text+0x30c): undefined reference to `__atomic_store_2' > > Signed-off-by: Gavin Hu > Reviewed-by: Honnappa Nagarahalli > --- Is an equivalent change also needed for the meson build too? /Bruce