How to resolve cross compilation error?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to resolve cross compilation error?

3,122 次查看
naveennvn
Contributor III

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

标签 (1)
0 项奖励
回复
1 回复

1,817 次查看
bpe
NXP Employee
NXP Employee

Your compiler does not know where to get standard headers.

Follow these instructions:

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK_1.9/GUID-16DBC8E2-9A18-4867-9B...

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!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复