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

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

-
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.040 / U:0.976 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site