public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] ccache
@ 2002-06-20  6:13 Felipe Ghellar
  0 siblings, 0 replies; 8+ messages in thread
From: Felipe Ghellar @ 2002-06-20  6:13 UTC (permalink / raw
  To: gentoo-dev

I'm trying to use ccache to speed up (re)compile time, but I can't get it to work with ebuild.

I set up symlinks for gcc, cc, c++ and g++ under /sbin, all pointing to /usr/bin/ccache. The
actual compilers are all under /usr/bin too. I put /sbin before /usr/bin in my PATH variable, so a
call to gcc gets /sbin/gcc, which is a symlink to /usr/bin/ccache, which in turn calls
/usr/bin/gcc automatically.

For test purposes, I'm using the ebuild file bzip2-1.0.1-r4.ebuild.

Running
# ccache -s
# ebuild /usr/portage/sys-apps/bzip2/bzip2-1.0.1-r4.ebuild clean
# ebuild /usr/portage/sys-apps/bzip2/bzip2-1.0.1-r4.ebuild compile
# ccache -s
I notice that ccache is not used.

But running
# ccache -s
# ebuild /usr/portage/sys-apps/bzip2/bzip2-1.0.1-r4.ebuild clean
# ebuild /usr/portage/sys-apps/bzip2/bzip2-1.0.1-r4.ebuild unpack
# cd /var/tmp/portage/bzip2-1.0.1-r4/work/bzip2-1.0.1
# make clean
# make all
# ccache -s
I notice that ccache _is_ used. Even if I use /usr/lib/portage/bin/emake instead of make.

I also noticed that there is an "export PATH=..." command in /usr/lib/portage/bin/ebuild.sh, but
even there /sbin is before /usr/bin. Just to make sure, I appended the command "which gcc" to the
end of the src_compile() function in bzip2-1.0.1-r4.ebuild.

Now, running
# ccache -s
# ebuild /usr/portage/sys-apps/bzip2/bzip2-1.0.1-r4.ebuild clean
# ebuild /usr/portage/sys-apps/bzip2/bzip2-1.0.1-r4.ebuild compile
# ccache -s
again, I see that the output of the "which gcc" I added is indeed "/sbin/gcc", but still ccache is
not used.

I don't know what to do, any more... I'd appreciate any input on this.

Felipe Ghellar

-- 




__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Yahoo! präsentiert als offizieller Sponsor das Fußball-Highlight des
Jahres: - http://www.FIFAworldcup.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ccache
       [not found] <Pine.GSO.4.44.0206201340350.19554-100000@oaktree.cisco.com>
@ 2002-06-20 17:18 ` Felipe Ghellar
  0 siblings, 0 replies; 8+ messages in thread
From: Felipe Ghellar @ 2002-06-20 17:18 UTC (permalink / raw
  To: gentoo-dev

CCACHEDIR is not set, so it should use the default $HOME/.ccache (/root/.ccache in this case).

Could it be that sandbox id denying write access to that dir?


 --- Wout Mertens <wmertens@gentoo.org> schrieb: 
> What is you CCACHEDIR set to?
> 
> On Thu, 20 Jun 2002, [iso-8859-1] Felipe Ghellar wrote:
> 
> > I'm trying to use ccache to speed up (re)compile time, but I can't get it to work with ebuild.
> > (...)


__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Yahoo! präsentiert als offizieller Sponsor das Fußball-Highlight des
Jahres: - http://www.FIFAworldcup.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ccache
       [not found] <1024596482.23674.234.camel@inventor.gentoo.org>
@ 2002-06-22  4:36 ` Felipe Ghellar
  0 siblings, 0 replies; 8+ messages in thread
From: Felipe Ghellar @ 2002-06-22  4:36 UTC (permalink / raw
  To: Daniel Robbins; +Cc: gentoo-dev

Thanks!

I've put together a mini-setup-guide for ccache under Gentoo:
http://forums.gentoo.org/viewtopic.php?t=5773

[]'s
Felipe Ghellar


 --- Daniel Robbins <drobbins@gentoo.org> schrieb: 
> Portage 2.0.2 should be allowing writes to /var/cache/ccache thru the
> sandbox.
> 
> Best Regards,
> 
> -- 
> Daniel Robbins
> Chief Architect, Gentoo Linux
> http://www.gentoo.org
>  

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Yahoo! präsentiert als offizieller Sponsor das Fußball-Highlight des
Jahres: - http://www.FIFAworldcup.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-dev] ccache
@ 2003-06-13 19:19 Hasse Hagen Johansen
  2003-06-14  2:52 ` Troy Dack
  0 siblings, 1 reply; 8+ messages in thread
From: Hasse Hagen Johansen @ 2003-06-13 19:19 UTC (permalink / raw
  To: gentoo-dev

Hi

A couple of days ago it was recommended on this list to use ccache. I
have now tried ccache, and I think it breaks some builds horrible. As of
now I have tried to build mozilla-1.3-r2, and jack-cvs. Those packages
fail with an error that the linker parser cannot understand the format
of one of the object files. I think it would be a very good idea not
have the ccache flag enabled by default it simply breaks normally
working ebuilds. I think that it should be something you can set in your
use flags if you know what you are doing.

Comments welcome. It could be me just to stupid to use ccache ;-)

Regards
Hasse


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ccache
  2003-06-13 19:19 Hasse Hagen Johansen
@ 2003-06-14  2:52 ` Troy Dack
  2003-06-14  8:51   ` Hasse Hagen Johansen
  0 siblings, 1 reply; 8+ messages in thread
From: Troy Dack @ 2003-06-14  2:52 UTC (permalink / raw
  Cc: gentoo-dev

Hasse Hagen Johansen wrote:

>Hi
>
>A couple of days ago it was recommended on this list to use ccache. I
>have now tried ccache, and I think it breaks some builds horrible. As of
>now I have tried to build mozilla-1.3-r2, and jack-cvs. Those packages
>fail with an error that the linker parser cannot understand the format
>of one of the object files. I think it would be a very good idea not
>have the ccache flag enabled by default it simply breaks normally
>working ebuilds. I think that it should be something you can set in your
>use flags if you know what you are doing.
>
>Comments welcome. It could be me just to stupid to use ccache ;-)
>
>Regards
>Hasse
>
>  
>
It is a setting you can put in your FEATURES in /etc/make.conf

I've never had any problems with ccache, in fact I built mozilla-1.3 the 
other day with it (and distcc) and my ccache is shared via nfs between 3 
machines.  I probably shouldn't share the cache, but it hasn't hurt yet!

Troy



--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ccache
  2003-06-14  2:52 ` Troy Dack
@ 2003-06-14  8:51   ` Hasse Hagen Johansen
  2003-06-14 11:39     ` bsolar
  2003-06-14 11:48     ` Stuart Bouyer
  0 siblings, 2 replies; 8+ messages in thread
From: Hasse Hagen Johansen @ 2003-06-14  8:51 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

On Sat, 2003-06-14 at 04:52, Troy Dack wrote:

> It is a setting you can put in your FEATURES in /etc/make.conf

Yes, and it is default on

> I've never had any problems with ccache, in fact I built mozilla-1.3 the 
> other day with it (and distcc) and my ccache is shared via nfs between 3 
> machines.  I probably shouldn't share the cache, but it hasn't hurt yet!
> 
Have tried to reemerge some of the packages, so the ccache actually gets
used when emerging mozilla-1.3?

Hasse

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ccache
  2003-06-14  8:51   ` Hasse Hagen Johansen
@ 2003-06-14 11:39     ` bsolar
  2003-06-14 11:48     ` Stuart Bouyer
  1 sibling, 0 replies; 8+ messages in thread
From: bsolar @ 2003-06-14 11:39 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 351 bytes --]

On 14 Jun 2003 10:51:26 +0200
Hasse Hagen Johansen <hhj@musikcheck.dk> wrote:

> On Sat, 2003-06-14 at 04:52, Troy Dack wrote:
> 
> > It is a setting you can put in your FEATURES in /etc/make.conf
> 
> Yes, and it is default on

Even if it's on by default ccache is not installed automatically (at
least in my case) and I had to emerge it explicitly.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] ccache
  2003-06-14  8:51   ` Hasse Hagen Johansen
  2003-06-14 11:39     ` bsolar
@ 2003-06-14 11:48     ` Stuart Bouyer
  1 sibling, 0 replies; 8+ messages in thread
From: Stuart Bouyer @ 2003-06-14 11:48 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

On 14 Jun 2003 10:51:26 +0200
Hasse Hagen Johansen <hhj@musikcheck.dk> wrote:

<snip>
> Have tried to reemerge some of the packages, so the ccache actually
> gets used when emerging mozilla-1.3?
> 
> Hasse
> 

I've been using ccache for over a year and have remerged mozilla-1.3
about 3 or 4 times and never had a problem (and yes I'm sure that it was
using the cache as it took about 20 mins the 2nd time)

StuBear

-- 
GnuPG KeyID 1607E7F7
Key fingerprint = 5C38 AA94 A4C1 6AAF 0EE4  C089 EE01 193D 1607 E7F7
gpg --keyserver search.keyserver.net --recv-keys 1607E7F7

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-06-14 11:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-20  6:13 [gentoo-dev] ccache Felipe Ghellar
     [not found] <Pine.GSO.4.44.0206201340350.19554-100000@oaktree.cisco.com>
2002-06-20 17:18 ` Felipe Ghellar
     [not found] <1024596482.23674.234.camel@inventor.gentoo.org>
2002-06-22  4:36 ` Felipe Ghellar
  -- strict thread matches above, loose matches on Subject: below --
2003-06-13 19:19 Hasse Hagen Johansen
2003-06-14  2:52 ` Troy Dack
2003-06-14  8:51   ` Hasse Hagen Johansen
2003-06-14 11:39     ` bsolar
2003-06-14 11:48     ` Stuart Bouyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox