This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 2.95.3 destruction in Linux header



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]