From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: FYI: Using ccache a linux compiler caching tool with DPDK Date: Mon, 27 Jun 2016 22:45:39 +0200 Message-ID: <5578887.p7vRAffkie@xps13> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: "Wiles, Keith" Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id F40B75593 for ; Mon, 27 Jun 2016 22:45:41 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id 187so23435910wmz.1 for ; Mon, 27 Jun 2016 13:45:41 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-06-27 18:10, Wiles, Keith: > It appears the ccache and clang have a few problems without the globa= l having the environment variable set: > export CCACHE_CPP2=3Dyes >=20 > Without this environment variable clang starts to complain about a nu= mber of issues. If you see a compile problem please rebuild with ccache= disabled using =E2=80=98sudo CCACHE_DISABLE=3Dtrue =E2=80=A6=E2=80=99 = or uninstall ccache =E2=80=98sudo apt-get remove ccache=E2=80=99 With ccache 3.2, it is possible to replace the environment variable CCACHE_CPP2=3Dyes by the configuration run_second_cpp=3Dtrue in ccache.= conf. See http://peter.eisentraut.org/blog/2014/12/01/ccache-and-clang-part-3= / > It is possible that GCC will also have compiler issues, but I do not = seem to see any, just try without ccache to verify. >=20 > Here is a link to help explain more details: > See e.g. http://petereisentraut.blogspot.com/2011/09/ccache-and-clang= -part-2.html >=20 > If the build works then I have not found any issues with using ccache= except a faster build time =E2=98=BA YMMV=20 >=20 > Regards, > Keith