cancel
Showing results for 
Search instead for 
Did you mean: 

Got the error, When Build kernel images (uImage and vmlinux) and device tree (dtbs)

Fgq.1
Associate

when I Build kernel images (uImage and vmlinux) and device tree (dtbs)

$> make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040 O="$PWD/../build"

Got the following error

 WRAP  arch/arm/include/generated/asm/simd.h

 UPD   include/config/kernel.release

 UPD   include/generated/uapi/linux/version.h

 UPD   include/generated/utsrelease.h

 SYSNR  arch/arm/include/generated/asm/unistd-nr.h

 GEN   arch/arm/include/generated/asm/mach-types.h

 SYSTBL arch/arm/include/generated/calls-oabi.S

 SYSTBL arch/arm/include/generated/calls-eabi.S

 CC   scripts/mod/empty.o

cc1: error: cannot load plugin ./scripts/gcc-plugins/arm_ssp_per_task_plugin.so

  ./scripts/gcc-plugins/arm_ssp_per_task_plugin.so: undefined symbol: _ZN8opt_pass14set_pass_paramEjb

/home/fenggq/linux/stm32MP1/developer_package/stm32mp1-openstlinux-5.4-dunfell-mp1-20-06-24/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.4.31-r0/linux-5.4.31/scripts/Makefile.build:265: recipe for target 'scripts/mod/empty.o' failed

make[2]: *** [scripts/mod/empty.o] Error 1

/home/fenggq/linux/stm32MP1/developer_package/stm32mp1-openstlinux-5.4-dunfell-mp1-20-06-24/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.4.31-r0/linux-5.4.31/Makefile:1110: recipe for target 'prepare0' failed

make[1]: *** [prepare0] Error 2

make[1]: 离开目录“/home/fenggq/linux/stm32MP1/developer_package/stm32mp1-openstlinux-5.4-dunfell-mp1-20-06-24/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.4.31-r0/build�?

Makefile:179: recipe for target 'sub-make' failed

make: *** [sub-make] Error 2

6 REPLIES 6
OlivierK
ST Employee

Hi Fgq.1 (Community Member) 

Did you source the sdk before launching the make?

PC $> source <SDK installation directory>/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi

https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package#Installing_the_SDK

Regards,

Olivier

GWu.4
Associate

I had the same issue today. Here is what I did:

  1. Make sure you follow the instructions in this link closely: https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2.
  2. If building on Ubuntu 20.04, make sure python3 is installed and used; And fix the issue related to repo installation. I couldn't install repo following the instruction on step 1 but I could install it using this link: https://askubuntu.com/questions/1247103/why-is-the-repo-package-unavailable-in-ubuntu-20-04-how-can-i-install-it
  3. After fixing the repo related issue, I re-did step 3 in this link: https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Modify,_rebuild_and_reload_the_Linux%C2%AE_kernel

Good luck!

OMORO.1
Associate II

Okay. I've got a dirty solution. Open .config (kernel configuration), find

CONFIG_HAVE_GCC_PLUGINS=y

CONFIG_GCC_PLUGINS=y

and change value to "n"

then try to make again

RKhal.6
Associate

that works for me

apparently if we have to enable GCC plugins we have to speccify more arguments