[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:14:26 UTC 2021


Greetings,

I'm try to compile Linux 5.11 for BeagleBone Black with the default
toolchain generated by Buildroot 2021.02 (uClibc, gcc 9.3 for Cortex
A8). I'm on Ubuntu 20.04.

cd linux-5.11.8
export PATH=/home/tux/boot-time-labs/rootfs/buildroot/output/host/bin:$PATH
export ARCH=arm
export CROSS_COMPILE=arm-linux-
make omap2plus_defconfig
make

...

 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


arm-linux-gcc --version
arm-linux-gcc.br_real (Buildroot 2021.02-378-g603b5d0fa9) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Does it ring a bell to some of you? I didn't find any similar error
reports on this list, so anyway I guess it's useful to report it.

Cheers,

Michael.


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



More information about the buildroot mailing list