public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* correct to set -nostdinc and then include <stdarg.h> ?
@ 2003-04-07  4:41 Chris Friesen
  2003-04-07  5:15 ` Keith Owens
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Friesen @ 2003-04-07  4:41 UTC (permalink / raw)
  To: linux-kernel


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".

The "-nostdinc" flag is set in the compile options.  If I remove that flag, that 
particular file appears to compile fine.

It seems wrong to tell the compiler to not look in the standard places but then 
include a standard file.  Am I missing something?

Other compiler versions work fine, so I'm guessing the compiler now interprets 
the flag more strictly than before.

What is the proper way to deal with this?

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-04-07 22:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-07  4:41 correct to set -nostdinc and then include <stdarg.h> ? 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
2003-04-07 14:44         ` Chris Friesen
2003-04-07 23:00           ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox