Re: Small bug in linux-2.4.20/include/linux/kernel.h

From: Andrew Morton (akpm@digeo.com)
Date: Fri Jan 31 2003 - 00:13:05 EST


Jared Young <headgeek@li.nu-x.net> wrote:
>
> Perhaps this is a small bug: During a compile for 2.4.20 there comes a
> section in /include/linux/kernel.h that calls for #include <stdarg.h>
> however stdarg.h is not included or found in any of the source directories.
>

I was bitten by this when I built up gcc-3.2.1.

In earlier gcc's you could have

        ln -s /usr/local/gcc-3.0/bin/gcc /usr/local/bin/gcc

and it would all work OK.

But in recent gcc's, that does not work. You actually have to add
/usr/local/gcc-3.2.1/bin to your $PATH, and execute gcc from there.

The problem also goes away when you remove -notsdinc from the kernel
makefiles. So it seems that something changed in the way in which gcc
locates the compiler-provided headers.

In short: check your compiler setup.

-
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/



This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 22:00:25 EST