2 Replies Latest reply on Jan 5, 2014 12:54 AM by Neil_Fitzpatrick

    uclib header file query


      Hi folks,


      Complete newbie here with a question regarding using i586-poky-linux-uclibc-gcc.


      For my Galileo board, I successfully built a Yocto Linux image using the Intel Quark board support package, and booted from an SD card without issue.


      Upon boot up, I located i586-poky-linux-uclibc-gcc in my /usr/bin/ directory and attempted to compile a simple C test recipe (something akin to a 'hello world' program). The only header file included was stdio.h.

      When I attempted to compile this program, I received the following error:


      /usr/bin# i586-poky-linux-uclibc-gcc -o test1 -g test1.c

      test1.c:1:19: fatal error: stdio.h: No such file or directory

      compilation terminated.


      Just wondering if anyone can shed any light as to how i can overcome this issue.





        • 1. Re: uclib header file query

          The image doesn't really contain enough pieces to compile on Galileo itself. You can either use the cross-compiler toolchain on your PC to compile stuff for Galileo and then copy the binaries over to the board using e.g. SSH, or build an image containing SDK and compile on the board directly.


          For the former see the BSP Build Guide, there's a section about building the toolchain, for the latter see e.g. instructions on SergeyK's blog mentioned in some neighbor threads (though he's doing slightly different thing there, building an LSB-compliant, eglibc-based image, which also has SDK tools).

          • 2. Re: uclib header file query

            That makes sense; thanks for the help Alex, much appreciated.