lkml.org 
[lkml]   [2003]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: correct to set -nostdinc and then include <stdarg.h> ?
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.



Chris



--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.082 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site