GCC in Apalis iMX6 cannot compile anymore in the new BSP (GCC7)

Hello everyone,

I’ve been trying to compile some C files in a development and in this new BSP something broke. I just did the same as always opkg install packagegroup-core-buildessential

I don’t know if this was on the Angstrom repositories of if it is BSP related.

While compiling a test.c this is my output

gcc test.c -o test

Output:

/usr/lib/gcc/arm-angstrom-linux-gnueabi/7.2.0/../../../../arm-angstrom-linux-gnueabi/bin/ld: error: cannot open crtbegin.o: No such file or directory
/usr/lib/gcc/arm-angstrom-linux-gnueabi/7.2.0/../../../../arm-angstrom-linux-gnueabi/bin/ld: error: cannot open crtend.o: No such file or directory
/usr/lib/gcc/arm-angstrom-linux-gnueabi/7.2.0/../../../../arm-angstrom-linux-gnueabi/bin/ld: error: cannot find -lgcc
/usr/lib/gcc/arm-angstrom-linux-gnueabi/7.2.0/../../../../arm-angstrom-linux-gnueabi/bin/ld: error: cannot find -lgcc_s
/usr/lib/gcc/arm-angstrom-linux-gnueabi/7.2.0/../../../../arm-angstrom-linux-gnueabi/bin/ld: error: cannot find -lgcc
/usr/lib/gcc/arm-angstrom-linux-gnueabi/7.2.0/../../../../arm-angstrom-linux-gnueabi/bin/ld: error: cannot find -lgcc_s
collect2: error: ld returned 1 exit status

I think in this new version that only GCC7 is available and somehow broke the compiler

I don’t know if it’s $PATH’s fault but here it is

/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin

Some help would be appreciated. Best Regards,

It seems that the compiler update to 7.3.0 in 2.8b2 does not work well together with the compiler from the Ångström feeds… Probably your best bet for now is to build an image with GCC preinstalled.

IMAGE_INSTALL_append = " packagegroup-sdk-target"

Hello Stefan,

Thanks for your answer. Now i know that the spontaneous local compiling is broken. I have a cross compiling environment and if I need it i will use this recipe.

Best Regards

You are welcome.

Best regards.

Is there any solution without building a new image?

I have the same issue on iMX7 Dual with Viola using lxde demo image. (My aim is to install numpy which seems to require build tools)

Hi @msx23

No, you need to rebuild the image.

Best regards,
Jaski