public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-dev] ccache
@ 2002-06-20  6:13 99% Felipe Ghellar
  0 siblings, 0 replies; 1+ results
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	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2002-06-20  6:13 99% [gentoo-dev] ccache Felipe Ghellar

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