From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DMARC_REJECT,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0 Received: from web20001.mail.yahoo.com (web20001.mail.yahoo.com [216.136.225.46]) by chiba.3jane.net (Postfix) with SMTP id 400CFABD58 for ; Thu, 20 Jun 2002 01:13:12 -0500 (CDT) Message-ID: <20020620061308.83269.qmail@web20001.mail.yahoo.com> Received: from [200.180.172.230] by web20001.mail.yahoo.com via HTTP; Thu, 20 Jun 2002 08:13:08 CEST Date: Thu, 20 Jun 2002 08:13:08 +0200 (CEST) From: =?iso-8859-1?q?Felipe=20Ghellar?= To: gentoo-dev@gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: [gentoo-dev] ccache Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 73443687-a295-4fb4-a70f-c03608a078b6 X-Archives-Hash: 7724311b4c1a7da957c4403d8489cdff 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