Messages in this thread | | | From | Keith Owens <> | Subject | Re: 2.4.27+stdarg+gcc-3.4.1 | Date | Sun, 25 Jul 2004 11:31:46 +1000 |
| |
On Sun, 25 Jul 2004 01:27:55 +0300, Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> 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@chaos.analogic.com> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |