Tool/software: Linux
Hello Experts,
I am getting the below errors while using TI SDK inbuilt linaro toolchain for compiling a simple helloworld code. What could be the problem ?
And one more hint is that, we are using the "linux-devkit" folder from TI SDK and used in our build system to build the kernel, uboot and other module drivers. So kernel, uboot and module driver was successful.
But not sure why we are unable to build the C codes ?
titus@titus-laptop:~$ /home/titus/workdir/TI_SDK/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc hello.c
hello.c:1:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
titus@titus-laptop:~$
titus@titus-laptop:~/workdir/TI_SDK/linux-devkit$ source environment-setup [linux-devkit]:~/workdir/TI_SDK/linux-devkit> [linux-devkit]:~/workdir/TI_SDK/linux-devkit> [linux-devkit]:~/workdir/TI_SDK/linux-devkit> export ARCH=arm [linux-devkit]:~/workdir/TI_SDK/linux-devkit> arm-linux-gnueabihf-gcc hello.c /home/titus/workdir/TI_SDK/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find crt1.o: No such file or directory /home/titus/workdir/TI_SDK/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/6.2.1/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or directory collect2: error: ld returned 1 exit status [linux-devkit]:~/workdir/TI_SDK/linux-devkit> [linux-devkit]:~/workdir/TI_SDK/linux-devkit> [linux-devkit]:~/workdir/TI_SDK/linux-devkit>
