2003-01-31 04:47:35

by Jared Young

[permalink] [raw]
Subject: Small bug in linux-2.4.20/include/linux/kernel.h

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 cannot go on with my kernel make without this as it fails every 'make bzImage' any suggestions. I have included my makemenuconfig file for examination. What does stdarg.h call for on and where can I get this file if needed?

--
?
???
?????
????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????
????? Jared A, Young 602 Crown Point Drive (757)246-1060 ?????
????? SC-Inetworks, Inc. Newport News, Virginia 23602-7009 ?????
????? ???????????????????????????????????????????????????????? ?????
????? [email protected] General Inquiries ?????
????? [email protected] Administrative Contact ?????
????? [email protected] Technical Support ?????
????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????
?????
???
?


Attachments:
2420.config (21.62 kB)

2003-01-31 05:03:38

by Andrew Morton

[permalink] [raw]
Subject: Re: Small bug in linux-2.4.20/include/linux/kernel.h

Jared Young <[email protected]> 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.

2003-01-31 05:14:08

by Jared Young

[permalink] [raw]
Subject: Re: Small bug in linux-2.4.20/include/linux/kernel.h

On Thu, 30 Jan 2003 21:13:05 -0800
Andrew Morton <[email protected]> wrote:

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

That was exactly it, thank you very much. Bloody GCC-3.2.1, luckily I have GCC-2.95.3 still on this box..


--
?
???
?????
????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????
????? Jared A, Young 602 Crown Point Drive (757)246-1060 ?????
????? SC-Inetworks, Inc. Newport News, Virginia 23602-7009 ?????
????? ???????????????????????????????????????????????????????? ?????
????? [email protected] General Inquiries ?????
????? [email protected] Administrative Contact ?????
????? [email protected] Technical Support ?????
????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????
?????
???
?

2003-01-31 09:23:29

by Horst von Brand

[permalink] [raw]
Subject: Re: Small bug in linux-2.4.20/include/linux/kernel.h

Jared Young <[email protected]> said:

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

It is part of gcc.
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513

2003-02-04 07:35:54

by Denis Vlasenko

[permalink] [raw]
Subject: Re: Small bug in linux-2.4.20/include/linux/kernel.h

On 31 January 2003 06:58, Jared Young 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 cannot go on with my kernel make without this
> as it fails every 'make bzImage' any suggestions. I have included my
> makemenuconfig file for examination. What does stdarg.h call for on
> and where can I get this file if needed?

/me too has nonstandard GCC installation. I use this instead of plain make:

CFLAGS=-std=gnu99 \
GCC_EXEC_PREFIX=/usr/app/gcc-3.2/lib/gcc-lib/ \
QTDIR=/usr/app/qt-3.0.3posix \
make ...

Adapt as needed...
--
vda