Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Nov 2015 09:01:13 +0100
From:      =?iso-8859-1?Q?M=26S_-_Krasznai_Andr=E1s?= <Krasznai.Andras@mands.hu>
To:        Rainer Hurling <rhurlin@gwdg.de>, Bryan Drewery <bdrewery@FreeBSD.org>, FreeBSD-Current <freebsd-current@freebsd.org>
Subject:   RE: freebsd-current compile with clang & ccache
Message-ID:  <3B0F582294DE3E448963BA62DC306AEE47044050A2@exchange.mands.hu>
In-Reply-To: <56561053.5040002@gwdg.de>
References:  <5655F93F.2050706@juanmolina.eu> <56560304.4080501@FreeBSD.org> <56560D62.7060205@gwdg.de> <56560DE7.3080608@FreeBSD.org> <56561053.5040002@gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B0F582294DE3E448963BA62DC306AEE47044050A2>