mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Schlemmer <azarah@gentoo.org>
To: Chris Friesen <cfriesen@nortelnetworks.com>
Cc: Russell King <rmk@arm.linux.org.uk>,
	Keith Owens <kaos@ocs.com.au>, KML <linux-kernel@vger.kernel.org>
Subject: Re: correct to set -nostdinc and then include <stdarg.h> ?
Date: 07 Apr 2003 16:16:12 +0200	[thread overview]
Message-ID: <1049724971.4773.2493.camel@workshop.saharact.lan> (raw)
In-Reply-To: <3E91866C.2000902@nortelnetworks.com>

On Mon, 2003-04-07 at 16:08, Chris Friesen wrote:
> Russell King wrote:
> > On Mon, Apr 07, 2003 at 03:15:12PM +1000, Keith Owens wrote:
> 
> >>On Mon, 07 Apr 2003 00:41:22 -0400, 
> >>Chris Friesen <cfriesen@nortelnetworks.com> wrote:
> >>
> >>>I was trying to compile 2.5.66 with gcc 3.2.2.  It dies as soon as it tries to 
> >>>compile init/main.c because it is unable to find "stdarg.h" which is included by 
> >>>"include/linux/kernel.h".
> >>>
> > 
> > stdarg.h is part of the compiler specific includes.  We want to pick
> > up on these, so we use "-iwithprefix include" to add the compiler specific
> > includes back.
> 
> It doesn't seem to work with gcc 3.2.2 then.
> 
> > Unfortunately, there seems to be something wrong with GCC's ability to
> > determine where these includes really reside when GCC is installed in
> > a different location to the one it was configured with.  In other words,
> > don't do that.  Install GCC to the location where you told it to be
> > installed.
> 
> gcc was configured with a prefix of "/usr/local/gcc322" and installed using 
> "make install".  It still gave the error.  Is this a gcc bug?  I'm at work now, 
> but I can run the command you gave this evening to check the results.
> 
> 

It does work fine.  I for instance have gcc binary in
/usr/i686-pc-linux-gnu/gcc-bin/3.2 and the libraries
in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2, which works
fine.

You might just have to give --bindir, etc to the exact locations.
Also, make sure you do not have symlinks, etc in /usr/bin, as they
sometimes 'confuses' gcc ...


-- 
Martin Schlemmer



  reply	other threads:[~2003-04-07 14:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-07  4:41 Chris Friesen
2003-04-07  5:15 ` Keith Owens
2003-04-07  6:47   ` Russell King
2003-04-07 14:08     ` Chris Friesen
2003-04-07 14:16       ` Martin Schlemmer [this message]
2003-04-07 14:44         ` Chris Friesen
2003-04-07 23:00           ` Daniel Jacobowitz

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=1049724971.4773.2493.camel@workshop.saharact.lan \
    --to=azarah@gentoo.org \
    --cc=cfriesen@nortelnetworks.com \
    --cc=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    /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

all inboxes | Powered by JetHome®