public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [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
[parent not found: <1024596482.23674.234.camel@inventor.gentoo.org>]
[parent not found: <Pine.GSO.4.44.0206201340350.19554-100000@oaktree.cisco.com>]
* [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

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 --
2003-06-13 19:19 [gentoo-dev] ccache 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
     [not found] <1024596482.23674.234.camel@inventor.gentoo.org>
2002-06-22  4:36 ` Felipe Ghellar
     [not found] <Pine.GSO.4.44.0206201340350.19554-100000@oaktree.cisco.com>
2002-06-20 17:18 ` Felipe Ghellar
  -- strict thread matches above, loose matches on Subject: below --
2002-06-20  6:13 Felipe Ghellar

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