Re: 2.4.27+stdarg+gcc-3.4.1
From: Keith Owens
Date: Sat Jul 24 2004 - 20:33:15 EST
On Sun, 25 Jul 2004 01:27:55 +0300,
Denis Vlasenko <vda@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>On Saturday 24 July 2004 17:59, Keith Owens wrote:
>> On Sat, 24 Jul 2004 09:19:04 -0400 (EDT),
>>
>> "Richard B. Johnson" <root@xxxxxxxxxxxxxxxxxx> wrote:
>> >> >gcc -D__KERNEL__ -nostdinc -iwithprefix include
>> >
>> > ^^^^^^^_______
>> >
>> >This will prevent it from using its private copy of stdarg.h.
>> >
>> >There needs to be one in the -I<include-path>
>>
>> No. -iwithprefix include picks up the private path. It is probably a
>> misconfigured gcc, but I am waiting on detailed diagnostics to be sure.
>
>I have such 'misconfigured' gcc for a very long time.
>I compiled a lot of stuff with it.
>
>Nothing complains except the kernel.
Only the kernel adds '-nostdinc -withprefix include'.
>GCC_EXEC_PREFIX=/usr/app/gcc-3.3.3/lib/gcc-lib/
>
>fixes it for me.
Which makes it a local gcc build problem. I run 3.3.3 and it handles
-nostdinc -iwithprefix include correctly. Compile init/do_mounts.c
with gcc -v to get the list of include paths for your version of gcc,
stdarg.h will not be on those paths. Rebuild your version of gcc with
the correct paths.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/