Unable to compile on Apalis imx6

i want to compile a C-Program directly on the Apalis Board. When I run the command

gcc hello.c -o hello

i get this message:

usr/lib/gcc/arm-angstrom-linux-gnueabi/7.2.0/../../../../arm-angstrom-linux-gnueabi/bin/as: error while loading shared libraries: libbfd- cannot open shared object file: No sy...

What can I do?

Thanks Michael

Hello @Michael_I

Could you provide the version of the hardware and software of your module?

Further, Please have a look here.

Best regards, Jaski

Hello jaski.tx,

Hardware version: V1.1.C Angstrom v2017.12 - Kernel
Apalis-iMX6_LXDE-Image 2.8b3.111 20180626

Thanks for this Information. As stated in the community post link above, there is an issue gcc 7.2 and the shared libraries. You can do cross compilation or you can build an image with GCC preinstalled.

 IMAGE_INSTALL_append = " packagegroup-sdk-target"