Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2015 09:00:16 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Scott Bennett <bennett@sdf.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: buildworld, buildkernel, and devel/cache
Message-ID:  <alpine.BSF.2.11.1501260857450.4046@wonkity.com>
In-Reply-To: <201501261245.t0QCjUMD009768@sdf.org>
References:  <201501261245.t0QCjUMD009768@sdf.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 26 Jan 2015, Scott Bennett wrote:
>     On Mon, 26 Jan 2015 10:24:22 +0200 Ivan Klymenko <fidaj@ukr.net> wrote:
>>> In /root/.profile I have
>>>
>>> CCACHE_DIR=/buildwork/ccache
>>> export PATH=/usr/local/libexec/ccache:$PATH
>>> export CCACHE_PATH=/usr/bin:/usr/local/bin
>>>
>>> In /root/.cshrc.extensions, a file I source from /root/.cshrc, I have
>>>
>>> setenv CCACHE_DIR /buildwork/ccache
>>> setenv PATH /usr/local/libexec/ccache:$PATH
>>> setenv CCACHE_PATH /usr/bin:/usr/local/bin
>>>
>> This file is in some ways you can
>> help /usr/local/share/doc/ccache/ccache-howto-freebsd.txt
>
>     I had read that and hadn't seen how that would work, but after seeing
> your reply, I tried adding the three lines to /etc/make.conf and got errors,
> like I had expected:
>
> make: "/etc/make.conf" line 18: Missing dependency operator
> make: RE substitution error: repetition-operator operand invalid
> make: Unclosed substitution for CXX (, missing)
> make: "/etc/make.conf" line 20: Undefined variable "${CXX:C,^c++,/usr/local/libexec/ccache/world/c++,1}"
> make: Fatal errors encountered -- cannot continue
> make: stopped in /usr/src
>
>     So my question remains.  Please respond if you have something that
> you have tried and know works.
>     Thanks in advance.

They are shell variables, so set them in the shell, .cshrc or the two 
alternatives mentioned above.



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