public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: Kai Germaschewski <kai-germaschewski@uiowa.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC/PATCH] improve interaction with ccache
Date: Mon, 20 May 2002 11:14:08 +1000	[thread overview]
Message-ID: <1764.1021857248@kao2.melbourne.sgi.com> (raw)
In-Reply-To: Your message of "Sun, 19 May 2002 19:11:41 EST." <Pine.LNX.4.44.0205191906310.30559-100000@chaos.physics.uiowa.edu>

On Sun, 19 May 2002 19:11:41 -0500 (CDT), 
Kai Germaschewski <kai-germaschewski@uiowa.edu> wrote:
>As various people pointed out, ccache is a great win for people compiling 
>a lot of kernels. (For info on ccache, see ccache.samba.org)
>
>Unfortunately, when a kernel tree is moved around / cloned / symlinked, 
>the compiler cache doesn't have many hits, since some header files use 
>BUG(), which in turn uses __FILE__, which currently includes the absolute 
>path to the header file.
>
>The appended patch solves this problem by including the headers a relative 
>path which will not change when the tree is moved.

You are fixing the symptom, not the cause.  The symptom is too many
compiles, people are using ccache to attempt to fix the symptom.  The
cause is a kernel build system that forces people to make clean or
mrproper between builds instead of reusing existing objects.

Fix the cause, not the symptom.

You will find that relative include paths completely stuff up
builds with separate source and object trees.  It will also mess up
people who compile add on code outside the kernel tree, CURDIR is not
related to TOPDIR.

All of these problems are fixed in kbuild 2.5, correctly.


  reply	other threads:[~2002-05-20  1:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-20  0:11 [RFC/PATCH] improve interaction with ccache Kai Germaschewski
2002-05-20  1:14 ` Keith Owens [this message]
2002-05-20  2:11   ` Albert D. Cahalan
2002-05-20  2:44   ` Kai Germaschewski

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=1764.1021857248@kao2.melbourne.sgi.com \
    --to=kaos@ocs.com.au \
    --cc=kai-germaschewski@uiowa.edu \
    --cc=linux-kernel@vger.kernel.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