This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: 2.95.3 destruction in Linux header
- To: "GCC Bugs (E-mail)" <gcc-bugs at gcc dot gnu dot org>
- Subject: Re: 2.95.3 destruction in Linux header
- From: Bruce Korb <bkorb at allegronetworks dot com>
- Date: Mon, 26 Mar 2001 12:28:35 -0800
- Cc: 'Stephen L Moshier' <moshier at mediaone dot net>
Bernd Schmidt wrote:
> I'm not entirely sure yet what's going on, but I believe
> the problem is that you're compiling a piece of kernel code,
> but not using "-I /path-to-linux/include".
More strongly:
-nostdinc
If you are rebuilding kernel code, you need the environment
specified by the kernel-related headers. Those should _never_
be found under /usr/include. By specifying ``-nostdinc'' you
are certain to not be importing inappropriate specifications.
Now, if it turns out that the headers included via the
``-I /path-to-linux/include'' directive are broken, then you
must either fix that header or use a version of the compiler
certified for that version of the kernel.
2.95.3 is working correctly.