2021-09-23 01:18 AM
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
2021-09-23 08:35 AM
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
2021-10-06 10:21 PM
I had the same issue today. Here is what I did:
Good luck!
2021-10-19 08:10 AM
Got the sameissue on clean debian 11.
Going exactly using https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package#Starting_up_the_SDK and https://github.com/STMicroelectronics/meta-st-stm32mp/blob/dunfell/recipes-kernel/linux/linux-stm32mp/README.HOW_TO.txt
Any ideas?
2021-10-19 08:41 AM
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
2022-03-04 10:07 AM
you should source the SDK before ' make ARCH=arm multi_v7_defconfig "fragment*.config" ' on
2023-03-16 09:17 PM
that works for me
apparently if we have to enable GCC plugins we have to speccify more arguments