From: Chris Friesen <cfriesen@nortelnetworks.com>
To: linux-kernel@vger.kernel.org
Subject: correct to set -nostdinc and then include <stdarg.h> ?
Date: Mon, 07 Apr 2003 00:41:22 -0400 [thread overview]
Message-ID: <3E910172.8030406@nortelnetworks.com> (raw)
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
next reply other threads:[~2003-04-07 4:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-07 4:41 Chris Friesen [this message]
2003-04-07 5:15 ` correct to set -nostdinc and then include <stdarg.h> ? 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
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=3E910172.8030406@nortelnetworks.com \
--to=cfriesen@nortelnetworks.com \
--cc=linux-kernel@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