AnsweredAssumed Answered

How to resolve cross compilation error?

Question asked by naveennvn on Dec 23, 2015
Latest reply on Dec 23, 2015 by bpe

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,