2008-10-22 09:04:19     Build Error: include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory

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

2008-10-22 09:04:19     Build Error: include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory

Adam Cook (UNITED STATES)

Message: 64038   

 

I'm getting the following build error on my machine:

 

 

 

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

 

 

 

I looked in the Wiki and it said that this was most commonly an error with the toolchain not being properly installed. So I went back and reinstalled the toolchain from the .rpm.

 

 

 

I see I have:

 

 

 

adam@adam-desktop:~/Desktop$ echo $PATH

 

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/uClinux/bfin-uclinux/bin:/opt/uClinux/bfin-linux-uclibc/bin

 

adam@adam-desktop:~/Desktop$ which -a bfin-linux-uclibc-gcc /opt/uClinux/bfin-linux-uclibc/bin/bfin-linux-uclibc-gcc

 

adam@adam-desktop:~/Desktop$ bfin-linux-uclibc-gcc -v Using built-in specs.

 

Target: bfin-linux-uclibc

 

Configured with: /usr/src/packages/BUILD/blackfin-toolchain-08r1.5/../gcc-4.1/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-linux-uclibc --prefix=/opt/uClinux/bfin-linux-uclibc --enable-threads=posix --enable-shared --with-sysroot=/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime --disable-libstdcxx-pch --disable-symvers --disable-libssp --disable-libffi --enable-clocale=generic --enable-version-specific-runtime-libs --enable-__cxa_atexit Thread model: posix gcc version 4.1.2 (ADI svn) adam@adam-desktop:~/Desktop$

 

 

 

So I think my toolchain is okay. The wiki says I also have to make sure I have a C library package installed but I don't know specifically which one.

QuoteReplyEditDelete

 

 

2008-10-22 09:15:48     Re: Build Error: include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory

Adam Cook (UNITED STATES)

Message: 64039   

 

I forgot to mention I'm using kernel release 2008R1.5.

QuoteReplyEditDelete

 

 

2008-10-22 09:25:30     Re: Build Error: include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory

Mike Frysinger (UNITED STATES)

Message: 64041   

 

the install doc tells you:

http://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing

QuoteReplyEditDelete

 

 

2008-10-22 09:43:44     Re: Build Error: include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory

Adam Cook (UNITED STATES)

Message: 64044   

 

Yes Mike, I've read those install docs. I believe I've followed them correctly as evidenced by:

 

adam@adam-desktop:~/Desktop$ echo $PATH

 

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/uClinux/bfin-uclinux/bin:/opt/uClinux/bfin-linux-uclibc/bin

 

adam@adam-desktop:~/Desktop$ which -a bfin-linux-uclibc-gcc /opt/uClinux/bfin-linux-uclibc/bin/bfin-linux-uclibc-gcc

 

adam@adam-desktop:~/Desktop$ bfin-linux-uclibc-gcc -v Using built-in specs.

 

Target: bfin-linux-uclibc

 

Configured with: /usr/src/packages/BUILD/blackfin-toolchain-08r1.5/../gcc-4.1/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-linux-uclibc --prefix=/opt/uClinux/bfin-linux-uclibc --enable-threads=posix --enable-shared --with-sysroot=/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime --disable-libstdcxx-pch --disable-symvers --disable-libssp --disable-libffi --enable-clocale=generic --enable-version-specific-runtime-libs --enable-__cxa_atexit Thread model: posix gcc version 4.1.2 (ADI svn) adam@adam-desktop:~/Desktop$

 

 

 

If there is something specific you'd like me to try please let me know instead of pointing me to the general help page.

 

 

QuoteReplyEditDelete

 

 

2008-10-22 09:53:26     Re: Build Error: include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory

Robin Getz (UNITED STATES)

Message: 64045   

 

Adam:

 

You need to read the entire page.

 

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

 

See the big note about uClibc (the package you have not installed) being a seperate package, which you need to install seperately?

 

-Robin

QuoteReplyEditDelete

 

 

2008-10-22 10:22:22     Re: Build Error: include/linux/kernel.h:10:20: error: stdarg.h: No such file or directory

Adam Cook (UNITED STATES)

Message: 64047   

 

Thanks, that did the trick.

 

I did read the whole page initially and I thought that since "bfin-linux-uclibc-gcc -v" passed succesfully I had uclibc installed okay ( this is a machine I haven't used for a while). I guess I didn't get that uclibc was different from the other uclibc.

 

Next time time I do something dumb, if you could please just send me the link or copy the text from the specific portion of the help page I'm not understanding (instead of a link to the whole page) I promise I'll waste less of your time.

Attachments

    Outcomes