linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: "Jörn Engel" <joern@logfs.org>
Cc: linux-sparse@vger.kernel.org, 505177@bugs.debian.org
Subject: Re: Hard-coded gcc header path
Date: Tue, 11 Nov 2008 15:01:46 +0100	[thread overview]
Message-ID: <1226412106.4478.5.camel@johannes.berg> (raw)
In-Reply-To: <20081111135816.GA25986@logfs.org> (sfid-20081111_145831_071332_94D76BE4)

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

On Tue, 2008-11-11 at 14:58 +0100, Jörn Engel wrote:

> So why does sparse try 4.1.2 and not 4.1.3 or 4.3.2 or any other
> variant?
> joern@Galway:/usr/src/kernel/sparse$ cat pre-process.h
> #define GCC_INTERNAL_INCLUDE "/usr/lib/gcc/i486-linux-gnu/4.1.2/include"
> 
> Ah, it is hard-coding the path.

Well, sort of. The patch is actually determined at sparse build time, so
right now sparse requires you to build it against the same compiler that
you are currently using. If you rebuild sparse with your shiny new
compiler you'll notice that it'll end up with a different path in
pre-process.h.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2008-11-11 14:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-11 13:58 Hard-coded gcc header path Jörn Engel
2008-11-11 14:01 ` Johannes Berg [this message]
2008-11-11 14:15   ` Jörn Engel
2008-11-11 20:13     ` Bug#505177: " Pierre Habouzit
2008-11-11 20:28       ` Jörn Engel
2008-11-11 21:00         ` Morten Welinder
2008-11-11 22:32           ` Jörn Engel
2008-11-11 23:10             ` Bernd Petrovitsch
2008-11-11 14:41 ` Bernd Petrovitsch

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=1226412106.4478.5.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=505177@bugs.debian.org \
    --cc=joern@logfs.org \
    --cc=linux-sparse@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;
as well as URLs for NNTP newsgroup(s).