2009-01-21 16:07:45     Error compiling uClinux BF-537

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

2009-01-21 16:07:45     Error compiling uClinux BF-537

Steven Vacca (UNITED STATES)

Message: 68207   

 

I am a Newbie.

 

On my Linux Box I have installed the appropriate Blackfin toolchain and uClinux:

 

- blackfin-toolchain-uclibc-full-08r1.5-14.i386.tar.bz2

- uClinux-dist-2008R1.5-RC3.tar.bz2.

 

I run menuconfig and just use defaults for AnalogDevices and  BF537-STAMP.  When I run make, I get the error  "include/linux/kernel.h:10:20:  error: stdarg.h: No such file or directory".

I also get several errors such as "include/linux/kernel.h:123 error: expected declarationspecifiers or '...' before 'va_list'.

I can't resolve this. I can't locate <stdarg.h> in the paths.  There is no uClibc installed.  Is that necessary?

I'm not understanding why I get errors if I have the proper tool chain and uClinux installed and am only trying to make the Default config.

 

 

Thanks,

 

ShutEyeThinkin

 

QuoteReplyEditDelete

 

 

2009-01-21 16:09:31     Re: Error compiling uClinux BF-537

Mike Frysinger (UNITED STATES)

Message: 68208   

 

please read the FAQ:

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

QuoteReplyEditDelete

 

 

2009-01-22 09:46:09     Re: Error compiling uClinux BF-537

Steven Vacca (UNITED STATES)

Message: 68237   

 

I made a mistake in my initial post.  The corrected installs are:

 

On my Linux Box I have installed the appropriate Blackfin toolchain and uClinux:

 

  - blackfin-toolchain-08r1.5-14.i386.tar.bz2

  - blackfin-toolchain-elf-gcc-4.1-08r1.5-14.i386.tar.bz2

  - blackfin-toolchain-gcc-3.4-addon-08r1.5-14.i386.tar.bz2

  - uClinux-dist-2008R1.5-RC3.tar.bz2

 

Next:

 

  - run menuconfig with just defaults for AnalogDevices and BF537-STAMP.

  - run make

 

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

 

    Running the find cmd I see that <stdarg.h> (called in kernel.h) is only located

    in

       uClinux/lib/libldap/include/ac/stdarg.h

       uClinux/lib/STLport/stlport/stdarg.h

     

    In a previous uClinux version (which uses linux 2.4.x) that I have been using,

    stdarg.h is located in these paths:

  

      uClinux/lib/libc/include/stdarg.h

      uClinux/lib/libc/include/m68k/stdarg.h

      uClinux/lib/libldap/include/ac/lstdarg.h

 

    It appears that my uClinux install is missing stdarg.h

  

   (I did read thru the FAQs as suggested)

 

Thanks,

 

ShutEyeThinkin

 

QuoteReplyEditDelete

 

 

2009-01-22 10:05:52     Re: Error compiling uClinux BF-537

Mike Frysinger (UNITED STATES)

Message: 68239   

 

did you read the right FAQ ?  it's the one about stdarg.h missing.

QuoteReplyEditDelete

 

 

2009-01-22 10:42:24     Re: Error compiling uClinux BF-537

Steven Vacca (UNITED STATES)

Message: 68246   

 

Sorry, I completely missed that.  I'm pursuing that path now.

 

Thanks,

 

ShutEyeThinkin

Attachments

    Outcomes