From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 1970A56AB for ; Mon, 27 Jun 2016 19:13:59 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id 187so22476570wmz.1 for ; Mon, 27 Jun 2016 10:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=iDy6Btk9LTIshhiXSA/M+lK4VU7rSTSasgPQuG1bh+w=; b=lB6RFrvADzIVvPMu72iP2s8JJlV3L4vpDEK9OUxtnR/2ZxAwlsjZSwWs3hyIfIa5+H mNm3RucF26xF29e+kSs1/oulSLi4tJFeROh4WIW1IxSEsKNcWsl/qVOaWWDLF1+MxuWL 4P7U11hjegTfHCW8sXy9uN8oYk+TcxKyvDF9LPfMy9daxLjiD1xDfUhjKQkp5h8Z/ZZo MvkRcOVaoJFBIZp+4Hn5hmP7Uxyh9H304jzgg/YJnYOaOedqYst65W6mJQIzYp2YBfgI ZFPkCQx/taJl11GtYASOJCAnc3UuWjQky6lBZq4u9P1UTpaIqnzuSZBi5Q/SwX61HhU+ BhBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=iDy6Btk9LTIshhiXSA/M+lK4VU7rSTSasgPQuG1bh+w=; b=ZtCTt2tlK3k+nTSmml8B6yG+ls5ZZzlU2GoMBBy4/oubeI11YOtc/wmQKqIWUoqXQ6 mAjTjudNqHZG50wFCoOIUnwOk5qKszg3cnET4zpNJsGJr6B2lCDaBw/BhxamlbHoYU0t IUCA0pC0Snm2F3FaO7TY4oNd1I1zPCVgGIRX1iop7mzBlwMuutJ97HqM247oa1MYQywy mPDa1DQhDnCWF6fZruUCjbP7dJ8mASYRR7u8Ubj27WZAbeo3lPSSEw2c8qQV8ap0yofW vkJtdZHHmAeZ6Jq9Uu+iSD8VPUTfGuPc7KIuWuI9zuboix5RHGvb37aCpfMCxKn7iQd2 em7w== X-Gm-Message-State: ALyK8tLtjWV0lDBEQAPvv4yOXobRTpULCpL+KgZTs6hcZCUKyNbDEpyi5wuEiMyl8lmIeN0W X-Received: by 10.28.132.15 with SMTP id g15mr12312200wmd.67.1467047638623; Mon, 27 Jun 2016 10:13:58 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id d192sm572067wmd.14.2016.06.27.10.13.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jun 2016 10:13:57 -0700 (PDT) From: Thomas Monjalon To: "Wiles, Keith" Cc: dev@dpdk.org, "Richardson, Bruce" Date: Mon, 27 Jun 2016 19:13:56 +0200 Message-ID: <2606479.aT4DI5EUNP@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1757902E-701B-4C42-BF80-285F37F50526@intel.com> <20160627164056.GF17808@bricha3-MOBL3> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Subject: Re: [dpdk-dev] [PATCH v2 2/2] fix building with clang-3.8.0 compiler X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 17:13:59 -0000 2016-06-27 16:51, Wiles, Keith: > On 6/27/16, 11:40 AM, "Richardson, Bruce" wrote: > >On Mon, Jun 27, 2016 at 05:29:59PM +0100, Wiles, Keith wrote: > >> On 6/27/16, 7:58 AM, on behalf of keith.wiles@intel.com> wrote: > >> >On 6/27/16, 3:46 AM, "Richardson, Bruce" wrote: > >> >>On Sun, Jun 26, 2016 at 10:54:12AM -0500, Keith Wiles wrote: > >> I found the problem to the compile errors I am seeing with buildin= g with clang and shared libraries. > >>=20 > >> The x86_64-linux-gnu/bits/string2.h header file if getting include= d from string.h, but this would be mean __GNUC__ is defined and this is= the clang compiler. After much investigation it turns out =E2=80=98cca= che=E2=80=99 is the problem here. If ccache is enabled with clang build= s the __GNUC__ is defined some how, I never did find the location. > >>=20 > >> Just a warning it appears =E2=80=98ccache=E2=80=99 for caching obj= ect files is not compatible with DPDK builds =E2=98=B9 in all cases. > >>=20 > >Actually, I believe it's a more general ccache and clang problem, no= t DPDK specific. > > > >See e.g. http://petereisentraut.blogspot.com/2011/09/ccache-and-clan= g-part-2.html > > > >where the recommendation is to set "export CCACHE_CPP2=3Dyes" in you= r environment. > >This cleared quite a number of issues for me (and others) when compi= ling with > >clang. >=20 > Adding the CCACHE_CPP2=3Dyes >=20 > Cleaned up all of the compiler errors I was seeing =E2=98=BA >=20 > Do we need to document this in DPDK and if so where in the docs would= someone suggest it be placed? I do not use ccache with clang because it is not known to work. But if you are sure it can work with few configuration, I would be glad= to have a complete description. However it is not related to DPDK at all. That's why a nice email well written and explained on this ml looks enough to be found via Google. Thanks