From owner-freebsd-current@freebsd.org Thu Nov 26 08:01:19 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3CD3DA383E3 for ; Thu, 26 Nov 2015 08:01:19 +0000 (UTC) (envelope-from Krasznai.Andras@mands.hu) Received: from mail.mands.hu (mail.mands.hu [194.143.229.130]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 74C1B188D; Thu, 26 Nov 2015 08:01:18 +0000 (UTC) (envelope-from Krasznai.Andras@mands.hu) Received: from exchange.mands.hu ([::1]) by exchange.mands.hu ([::1]) with mapi; Thu, 26 Nov 2015 09:01:17 +0100 From: =?iso-8859-1?Q?M=26S_-_Krasznai_Andr=E1s?= To: Rainer Hurling , Bryan Drewery , FreeBSD-Current Date: Thu, 26 Nov 2015 09:01:13 +0100 Subject: RE: freebsd-current compile with clang & ccache Thread-Topic: freebsd-current compile with clang & ccache Thread-Index: AdEnui1L411qxytIQvCsOLYwMsm/vwAY/gNQ Message-ID: <3B0F582294DE3E448963BA62DC306AEE47044050A2@exchange.mands.hu> References: <5655F93F.2050706@juanmolina.eu> <56560304.4080501@FreeBSD.org> <56560D62.7060205@gwdg.de> <56560DE7.3080608@FreeBSD.org> <56561053.5040002@gwdg.de> In-Reply-To: <56561053.5040002@gwdg.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2015 08:01:19 -0000 Hi I am now reading the manual pages for src.conf.=20 Src.conf should only be used to specify variables for make, e.g. WITHOUT_PR= OFILE, or WITH_CCACHE_BUILD. Man src.conf does not say much more about ccac= he, but ccache-howto-freebsd says that WITH_CCACHE_BUILD is only for buildi= ng ports with ccache; for world and kernel you should set CC and CXX variab= les within make.conf following the advice in ccache-howto=20 ("To use ccache for ports, just add WITH_CCACHE_BUILD=3Dyes to /etc/make.co= nf. To use ccache for base add the following to /etc/make.conf: .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) .if !defined(NOCCACHE) && exists(/usr/local/libexec/ccache/world/cc) CC:=3D${CC... .... ") I do not copy here the full howto My problem is that after a successful compile of base - world and kernel - = using ccache I run make installkernel correctly, but after reboot and merge= master -p I got a lot of ccache error messages during make installworld. Th= ey complain ebout not finding compiler cc in path although cc -v gives the = clang version number, so cc IS on the path. Best regards Andr=E1s Krasznai -----Original Message----- From: owner-freebsd-current@freebsd.org [mailto:owner-freebsd-current@freeb= sd.org] On Behalf Of Rainer Hurling Sent: 2015. november 25. 20:48 To: Bryan Drewery; FreeBSD-Current Subject: Re: freebsd-current compile with clang & ccache Am 25.11.15 um 20:37 schrieb Bryan Drewery: > On 11/25/2015 11:34 AM, Rainer Hurling wrote: >> Am 25.11.15 um 19:50 schrieb Bryan Drewery: >>> On 11/25/2015 10:09 AM, Juan Molina wrote: >>>>> On 11/24/2015 1:31 AM, M&S - Krasznai Andr=E1s wrote: >>>>>> /What can I do to eliminate the ccache error during installworld >>>>> apart from not using ccache? / >>>>> I would recommend not setting CC or CCACHE_PATH in make.conf and=20 >>>>> using the new WITH_CCACHE_BUILD=3Dyes option instead. >>>>> >>>>> -- >>>>> Regards, >>>>> Bryan Drewery >>>> >>>> Hi. >>>> >>>> I'm seeing the same ccache errors and I do not have CC or=20 >>>> CCACHE_PATH defined anywhere. Only WITH_CCACHE_BUILD and WITH_FAST_DEP= END in src.conf. >>>> >>> >>> WITH_FAST_DEPEND is not related. >>> >>> Are you building and installing as a different user? Using a=20 >>> different MAKEOBJDIRPREFIX in build and install? >>> >>> Do you have CCACHE_PATH in your environment? >>> >>> Run 'make ccache-print-options|grep path'. It should have no value. >>> >> >> Is there any possibility to redirect the .ccache directory, something=20 >> like CCACHE_PATH for userland? >> >> I am asking, because in my attempts to build base with=20 >> WITH_CCACHE_BUILD and WITH_FAST_DEPEND enabled, it breaks with error=20 >> message 'file system full'. My root partition has only 1GB and ccache=20 >> itself seems to need more than 800MB in /root/.ccache. >> >=20 > You want to modify CCACHE_DIR. You can do this in make.conf or the=20 > environment. >=20 > I tend to just symlink /root/.ccache to somewhere else though and let=20 > the default work via the symlink. >=20 > Also see 'man src.conf' (WITH_CCACHE_BUILD section) and 'man ccache'. >=20 Oops, I should have looked into man src.conf before asking here, sorry. And many thanks for the quick and helpful answer. _______________________________________________ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/= listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"