Skip to contentSkip to conversation

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

DISCUSSION Jared Young 4 participants 5 messages Jan 31, 2003 – Feb 4, 2003

lore
Share & tools
lore
#0 lore raw

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?

Signature · 16 lines
                                                                 ?
                                                                ???
                                                               ?????
????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????
????? 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 ?????
????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????
 ?????
  ???
   ?
#1 lore raw
Quoted 5 lines · Jared Young

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.

#2 lore raw
Quoted 8 lines · 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.

Quoted 8 lines

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

Signature · 16 lines
                                                                 ?
                                                                ???
                                                               ?????
????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????
????? 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 ?????
????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????
 ?????
  ???
   ?
#3 lore raw
In reply to Jared Young
Quoted 4 lines · Jared Young

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.

Signature · 4 lines
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
#4 lore raw
In reply to Jared Young
Quoted 7 lines · Jared Young

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