This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Unable to cross compile helloworld example with Linux SDK v6.3.0.106 for OMAPL138 SoC

Other Parts Discussed in Thread: OMAPL138

Hello, I have instaled the latest SDK for OMAPL138 on Linux machine and am trying to cross compile hello world example as per the documentation. 

https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Overview/GCC_ToolChain.html

but I get following error: 

fatal error: stdio.h: No such file or directory

command to build example:

/opt/ti-processor-sdk-linux-omapl138-lcdk-06-03-00-106/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc ./helloworld.c -o helloworld

  • Hi,

    I am not a compiler expert, but this seems like the arm toolchain in the SDK package doesn't have built-in spec properly.

    Please download and use the arm 8.3 toolchain from arm.com:

    developer.arm.com/.../8-3-2019-03

  • Hi Bin Liu, same issues I had last time when I tried to migrate from SDK 4.0.0.4 to any new one. Just seems it's not straightforward at all. 

    in terms of above example, if I do the following it compilers but unable to test is as I can't ssh on to the OMAPL138. 

    but is this sensible to do or I am missing cross compiler with libraries for host development linux machine? 

     /opt/ti-processor-sdk-linux-omapl138-lcdk-06-03-00-106/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc  --sysroot=/opt/ti-processor-sdk-linux-omapl138-lcdk-06-03-00-106/linux-devkit/sysroots/arm5e-oe-linux-gnueabi/ ./helloworld.c -o helloworld