2008-06-02 09:24:12     kernel compile error - stdarg.h missing

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-06-02 09:24:12     kernel compile error - stdarg.h missing

Peter Nielsen (DENMARK)

Message: 56567   

 

hi

 

I have just installed uclinux 2008R1-RC8 with together with the newest gcc.

 

I do makeconfig according to basic compillation and then make - also tried make clean a few times. the result is the same, compile stops.

 

stdarg.h is missing where should this file be located ?

 

Has it something to do with my host PC (running fedora9 - which i also just installed)?

 

Earlier i used

 

-peter

 

 

 

rm -f linux-2.6.x/usr/initramfs_data.cpio.gz

make ARCH=blackfin   CROSS_COMPILE=bfin-uclinux- -j1 -C linux-2.6.x  || exit 1

make[1]: Entering directory `/home/pni/kernel/uClinux-dist<wbr></wbr>/linux-2.6.x'

CHK     include/linux/version.h

CHK     include/linux/utsrelease.h

CC      arch/blackfin/kernel/asm<wbr></wbr>-offsets.s

In file included from include/linux/spinlock.h:53,

                from include/linux/capability.h:47,

                from include/linux/sched.h:46,

                from arch/blackfin/kernel/asm<wbr></wbr>-offsets.c:31:

include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory

In file included from include/linux/spinlock.h:53,

                from include/linux/capability.h:47,

                from include/linux/sched.h:46,

                from arch/blackfin/kernel/asm<wbr></wbr>-offsets.c:31:

include/linux/kernel.h:123: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:127: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:131: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:135: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:139: error: expected declaration specifiers or ‘...’ before ‘va_list’

include/linux/kernel.h:155: error: expected declaration specifiers or ‘...’ before ‘va_list’

make[2]: *** [arch/blackfin/kernel/asm<wbr></wbr>-offsets.s] Error 1

make[1]: *** [prepare0] Error 2

make[1]: Leaving directory `/home/pni/kernel/uClinux-dist<wbr></wbr>/linux-2.6.x'

make: *** [linux] Error 1

QuoteReplyEditDelete

 

 

2008-06-02 11:06:29     Re: kernel compile error - stdarg.h missing

Mike Frysinger (UNITED STATES)

Message: 56568   

 

please read the release notes ... you didnt install all the required toolchain packages (like uclibc)

QuoteReplyEditDelete

 

 

2008-07-23 14:24:41     Re: kernel compile error - stdarg.h missing

Ben Burleson (UNITED STATES)

Message: 59286   

 

Hi Mike,

 

I am setting up a new blackfin development system and ran into the same error message.  I'd rather not use trial and error to get the package configuration correct.  (Or worse, half-right.)

 

My question is how do I know which uclibc package to install?  There are a handful of packages listed and I can't find any explanation about the differences.  My main question is between "default" and "full".  I think I've read all the applicable release notes and wiki docs and still haven't seen any explanation.

 

Thanks for any insight you can lend,

 

Ben

 

EDIT:

 

Just after posting this, I found this page:

 

http://blackfin.uclinux.org/gf/project/toolchain/frs/?action=FrsReleaseView&release_id=375

 

Is there any downside other than size to installing the full package?

 

Thanks,

 

Ben

 

 

QuoteReplyEditDelete

 

 

2008-07-23 15:08:30     Re: kernel compile error - stdarg.h missing

Robin Getz (UNITED STATES)

Message: 59287   

 

Ben:

 

Mostly just size. some functions may be a little slower, but it should not be measurable.

 

 

 

Refer to:

 

https://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing#uclibc_packages

 

-Robin

Attachments

    Outcomes