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 52416A034C; Mon, 2 May 2022 22:18:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4567D410FB; Mon, 2 May 2022 22:18:16 +0200 (CEST) Received: from tentoumushi.denkimushi.com (tentoumushi.denkimushi.com [81.187.253.217]) by mails.dpdk.org (Postfix) with ESMTP id 3FA7F40C35 for ; Mon, 2 May 2022 22:18:10 +0200 (CEST) Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denkimushi.com; s=dkim; t=1651522686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TxZBO6u+I1AH3FSjjNYTSE24262755tyJq775LG694I=; b=zmq9jdo53GEIjAyeCj62/9oA0dwfzxhkvU7rVgBOHuyvAIyLf0SUQSmouAWOssMdeIi98Y aB4QAvLwVMzggLmWj2PCUPtO0CxyGPlqvrHg28nZtzDVkdgWy1qXpP9Z95JIA4FpwmuKfP TAbTtna+JJeoHOs7yIs2KCG+7Tlzk0A= Content-Transfer-Encoding: quoted-printable From: Dunk MIME-Version: 1.0 (1.0) Subject: Re: [PATCH v2] lib/eal/ppc fix compilation for musl Date: Mon, 2 May 2022 21:18:05 +0100 Message-Id: References: Cc: dev In-Reply-To: To: David Marchand ARC-Seal: i=1; s=dkim; d=denkimushi.com; t=1651522686; a=rsa-sha256; cv=none; b=bwQFV/8E4Cb2y7ITHLIMFJXqm6pHGgM/B2stOLHUdhMBhlwFiiM8GerFDq8bp35bFZKyGJ L1mcoCAjM57iIwWVAEs72Zk4YmZxY//YHj1e38K0EmxqbFopka1w8PUhrMDs0jgnMd3CrR LJ19Rig3Q7HD5OLlLVUIFw2O5BopYeU= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=dunk@denkimushi.com smtp.mailfrom=dunk@denkimushi.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=denkimushi.com; s=dkim; t=1651522686; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TxZBO6u+I1AH3FSjjNYTSE24262755tyJq775LG694I=; b=njpnpe9xbbyJAeaZUOLEHUxoKwug9bedxBOnU72tZ+LODww5H8ctVAb3Xp0LPQebFYQ052 SVv7RXIgZi0lvMAt4icA8n+jzw917ezooB1HHVnJVkQWDCfaVAgrzawKdo1SD4wQu7qRpI HXugU/aM/WkfgJfgotsO9q42jq6cxmM= 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 > On 2 May 2022, at 18:42, David Marchand wrote:= >=20 > =EF=BB=BFOn Mon, May 2, 2022 at 4:26 PM Duncan Bellamy wrote: >>=20 >> musl lacks __ppc_get_timebase() but has __builtin_ppc_get_timebase() >>=20 >> the __ppc_get_timebase_freq() is taken from: >> https://git.alpinelinux.org/aports/commit/?id=3D06b03f70fb94972286c0c9f62= 78df89e53903833 >>=20 >> Signed-off-by: Duncan Bellamy >> --- >> lib/eal/ppc/include/rte_cycles.h | 6 ++++++ >> lib/eal/ppc/rte_cycles.c | 32 ++++++++++++++++++++++++++++++++ >> 2 files changed, 38 insertions(+) >>=20 >> diff --git a/lib/eal/ppc/include/rte_cycles.h b/lib/eal/ppc/include/rte_c= ycles.h >> index 5585f9273c..98ffbd2592 100644 >> --- a/lib/eal/ppc/include/rte_cycles.h >> +++ b/lib/eal/ppc/include/rte_cycles.h >> @@ -10,7 +10,9 @@ >> extern "C" { >> #endif >>=20 >> +#if defined(__GLIBC__) >=20 > features.h should be included before looking for __GLIBC__. >=20 >=20 > --=20 > David Marchand >=20 Okay, wondered why it wasn=E2=80=99t working=20=