Skip to contentSkip to conversation

Building linux5-11 fails in yocto #yocto

DISCUSSION [email protected] 1 participant 1 message Oct 28, 2021

lore
Share & tools
lore
#0 lore raw

I am trying to build linux5.11 in yocto. However it fails linux-altera/5.11+gitAUTOINC+27e8b9142b-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/plugin/include/system.h:687:17: fatal error: gmp.h: No such file or directory

|  #include <gmp.h>
|                  ^
| compilation terminated.
| make[3]: *** [scripts/gcc-plugins/arm_ssp_per_task_plugin.so] Error 1
| make[2]: *** [scripts/gcc-plugins] Error 2
| make[1]: *** [scripts] Error 2
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed

I added EXTRA_OEMAKE as suggested by https://lists.yoctoproject.org/g/linux-yocto/topic/76045798

That leads in to another error of missing header linux-altera/5.11+gitAUTOINC+27e8b9142b-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/plugin/include/system.h:691:23: fatal error: libiberty.h: No such file or directory

|  #include "libiberty.h"
|                        ^
| compilation terminated.
| make[3]: *** [scripts/gcc-plugins/arm_ssp_per_task_plugin.so] Error 1
| make[2]: *** [scripts/gcc-plugins] Error 2
| make[1]: *** [scripts] Error 2
| make: *** [__sub-make] Error 2

Since libiberty is a part of binutils, I added
DEPENDS+= " binutils-native"

But that leads in to another error of missing poly-int.h