public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Felipe Ghellar" <fghellar@yahoo.de>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] ccache
Date: Thu, 20 Jun 2002 08:13:08 +0200 (CEST)	[thread overview]
Message-ID: <20020620061308.83269.qmail@web20001.mail.yahoo.com> (raw)

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


             reply	other threads:[~2002-06-20  6:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-20  6:13 Felipe Ghellar [this message]
     [not found] <Pine.GSO.4.44.0206201340350.19554-100000@oaktree.cisco.com>
2002-06-20 17:18 ` [gentoo-dev] ccache 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020620061308.83269.qmail@web20001.mail.yahoo.com \
    --to=fghellar@yahoo.de \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox