Hi all,
I'm using ls2085aqds board with Layerscape2-SDK-20150828-yocto SDK,
While cross compiling using the toolchain(aarch64-fsl-linux-gcc) a simple helloworld.c file itself throws error like the following,
==============
[Naveen@NvN aarch64-fsl-linux]$ ./aarch64-fsl-linux-gcc helloworld.c
helloworld.c:1:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
[Naveen@NvN aarch64-fsl-linux]$
===============
Note : Toolchain path=Layerscape2-SDK-20150828-yocto/build_ls2085aqds_release/tmp/sysroots/x86_64-linux/usr/bin/aarch64-fsl-linux/
How to fix this issue?
Thanks Regards,
-Naveen
Your compiler does not know where to get standard headers.
Follow these instructions:
Do not forget to run 'environment-setup-<core>' script.More details here:Directory Options - Using the GNU Compiler Collection (GCC)
Have a great day,
Platon
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------