From owner-freebsd-ports@FreeBSD.ORG Wed Jun 18 14:59:59 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A15091065672 for ; Wed, 18 Jun 2008 14:59:59 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from istc.kiev.ua (wolf.istc.kiev.ua [193.108.236.1]) by mx1.freebsd.org (Postfix) with ESMTP id 122AE8FC14 for ; Wed, 18 Jun 2008 14:59:59 +0000 (UTC) (envelope-from kozlov@ravenloft.kiev.ua) Received: from [91.123.146.100] (helo=ravenloft.kiev.ua) by istc.kiev.ua with esmtp (Exim 4.52) id 1K8z8X-0006JW-DK; Wed, 18 Jun 2008 17:59:53 +0300 Received: from kozlov by ravenloft.kiev.ua with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1K8z8U-0009b0-Jx; Wed, 18 Jun 2008 17:59:46 +0300 Date: Wed, 18 Jun 2008 17:59:46 +0300 From: Alex Kozlov To: Edwin Groothuis , ports@freebsd.org, spam@rm-rf.kiev.ua Message-ID: <20080618145946.GA36838@ravenloft.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: Alex Kozlov X-Spam-Score: 0.0 (/) X-Spam-Report: Content analysis detailz: (0.0 points, 10.0 required) Cc: Subject: Re: Standardize NO_CCACHE flag and ccache definitions X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2008 14:59:59 -0000 On Wed, Jun 18, 2008 at 11:16:42PM +1000, Edwin Groothuis wrote: > On Wed, Jun 18, 2008 at 03:01:58PM +0200, Alex Dupre wrote: > > Edwin Groothuis ha scritto: > > >Recently I've started to use devel/ccache again (sometimes it takes > > >a while before you understand how it works) and it works pretty > > >well, except for some ports which can't be build with it. For example > > >devel/cmake. > > > > I use ccache everywhere (world and ports) and I never found a port that > > doesn't compile with it (I have cmake, too). > > When building devel/cmake in a jail with ccache enabled it doesn't get further than: > > ===> Configuring for cmake-2.6.0 > --------------------------------------------- > CMake 2.6-0, Copyright (c) 2007 Kitware, Inc., Insight Consortium > C compiler on this system is: /usr/local/libexec/ccache/world-cc -O2 -fno-strict-aliasing -pipe > C++ compiler on this system is: /usr/local/libexec/ccache/world-c++ -O2 -fno-strict-aliasing -pipe > [...] > CMake has bootstrapped. Now run make. > ===> Building for cmake-2.6.0 > Scanning dependencies of target cmsys > [ 0%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/ProcessUNIX.o > [ 0%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/Base64.o > [ 0%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/MD5.o > [ 1%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/Terminal.o > [ 1%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/System.o > [ 1%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/String.o > [ 2%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/Directory.o > [ 2%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/DynamicLoader.o > [ 2%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/Glob.o > [ 3%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/RegularExpression.o > [ 3%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/SystemTools.o > [ 3%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/CommandLineArguments.o > [ 4%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/Registry.o > [ 4%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/IOStream.o > [ 4%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/SystemInformation.o > Linking CXX static library libcmsys.a > Error running link command: No such file or directory > *** Error code 2 > > This happens with ccache, without ccache it doesn't. > > There are a couple of others which I can't recall right now. /usr/local/libexec/ccache/world-c++ sets CCACHE_HASH_COMPILER Don't use it for building ports. Actualy it's not necessary even for make buildworld. -- Adios