Date: Mon, 20 Sep 2010 12:43:49 +0400 From: Dmitry Krivenok <krivenok.dmitry@gmail.com> To: Dimitry Andric <dim@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: buildworld + ccache trouble Message-ID: <AANLkTi=wKc_6ppV83Yb68hRE_E8KO4a5YCzp50N6L64b@mail.gmail.com> In-Reply-To: <4C912926.6070409@FreeBSD.org> References: <AANLkTimF79ZPE3MJeHQ=O1ismQCj916Q9kL23SBZOTL9@mail.gmail.com> <4C912926.6070409@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Your patch works fine for me, thanks!
However, I don't see any performance gain when using ccache:
# ccache -s
cache directory /usr/src/.ccache
cache hit (direct) 65
cache hit (preprocessed) 397
cache miss 225341
called for link 10852
multiple source files 20
compile failed 842
preprocessor error 61
bad compiler arguments 6
unsupported source language 15422
autoconf compile/link 593
unsupported compiler option 13939
no input file 36
files in cache 49386
cache size 914.4 Mbytes
max cache size 1.0 Gbytes
# time /home/krived/bin/update_freebsd.pl
real 438m54.690s
user 281m46.196s
sys 125m25.608s
# ccache -s
cache directory /usr/src/.ccache
cache hit (direct) 81
cache hit (preprocessed) 565
cache miss 362669
called for link 15636
multiple source files 28
compile failed 842
preprocessor error 61
bad compiler arguments 6
unsupported source language 26086
autoconf compile/link 593
unsupported compiler option 21887
no input file 44
files in cache 49346
cache size 900.0 Mbytes
max cache size 1.0 Gbytes
#
Number of cache hits is very low.
I need to understand this...
On Thu, Sep 16, 2010 at 12:14 AM, Dimitry Andric <dim@freebsd.org> wrote:
> On 2010-09-15 14:44, Dmitry Krivenok wrote:
>>
>> I recently updated to r212634 and tried to build CURRENT tree with ccache.
>
> ...
>>
>> /usr/src/lib/csu/i386-elf/crt1_s.S:42: Error: `8(%ebp)' is not a valid
>> 64 bit base/index expression
>
> I assume this error occurs when building the 32-bit components on amd64.
> If so, can you please try the attached patch?
>
> It should fix the build32 stage with a non-default ${CC} setting. This
> also applies to building with clang, for instance.
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=wKc_6ppV83Yb68hRE_E8KO4a5YCzp50N6L64b>
