[Buildroot] gmp.h error compiling Linux 5.11 with Buildroot 2021.02 default arm toolchain

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Mar 24 09:35:00 UTC 2021


Hello again,

On 3/24/21 10:14 AM, Michael Opdenacker wrote:
>  HOSTLD scripts/dtc/dtc
> HOSTCXX scripts/gcc-plugins/arm_ssp_per_task_plugin.so
> In file included from
> /home/tux/boot-time-labs/rootfs/buildroot/output/host/lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/plugin/include/gcc-plugin.h:28,
> from scripts/gcc-plugins/gcc-common.h:7,
> from scripts/gcc-plugins/arm_ssp_per_task_plugin.c:3:
> /home/tux/boot-time-labs/rootfs/buildroot/output/host/lib/gcc/arm-buildroot-linux-uclibcgnueabihf/9.3.0/plugin/include/system.h:687:10:
> fatal error: gmp.h: No such file or directory
> 687 | #include <gmp.h>
> | ^~~~~~~
> compilation terminated.
> make[2]: *** [scripts/gcc-plugins/Makefile:47:
> scripts/gcc-plugins/arm_ssp_per_task_plugin.so] Error 1
> make[1]: *** [scripts/Makefile.build:496: scripts/gcc-plugins] Error 2
>
> make: *** [Makefile:1185: scripts] Error 2

Good news, it turns out that it's not a Buildroot issue, but rather a
kernel one?

  * I also have it with the ARM GNU toolchain (gcc 10.2,
    https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads)
  * I don't have it compiling the kernel with the sama5_defconfig
    configuration.

When I find a solution, I'll share it here.

Cheers,

Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list