cancel
Showing results for 
Search instead for 
Did you mean: 

Building and deploying the Linux kernel for the first time. command- make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040 O="$PWD/../build"

AKuma.46
Associate II

*** The source tree is not clean, please run 'make ARCH=arm mrproper'

*** in /home/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10

***

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

make[1]: *** [/home/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10/include/config/auto.conf.cmd] Error 2

make[1]: Leaving directory `/home/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/build'

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

4 REPLIES 4
Olivier GALLIEN
ST Employee

Hi @AKuma.46​ 

There can be multiple reasons to reach this point :

*** The source tree is not clean, please run 'make ARCH=arm mrproper'

Did you follow wiki and/or README instructions?

You can either try the recommended mrproper ...or restart from a fresh installation.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
AKuma.46
Associate II

Dear @Community member​ 

Thanks for you valuable suggestion, after mrproper this error was resolved. but again came to new error:

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

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

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

make[1]: Leaving directory `/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/build'

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

Please let me know what's the root of this issue.

Note:

ggc installed version is "gcc (Ubuntu 8.4.0-3ubuntu2) 8.4.0" and Ubuntu version is 20.04

Thanks & Regards

Aniket Kumar

Olivier GALLIEN
ST Employee

Hi @AKuma.46​ ,

>> gc installed version is "gcc (Ubuntu 8.4.0-3ubuntu2) 8.4.0" 

this is not good and probably root cause as it highlights you probably omit to source the SDK.

Please refer to :

Install the SDK - stm32mpu

With a correct environnement setup you might get something like :

$CC --version

arm-ostl-linux-gnueabi-gcc (GCC) 11.3.0

Copyright (C) 2021 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.

Hope it help,

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
AKuma.46
Associate II

Dear @Community member​ 

We downloaded YOCTO SDK version 3.0.0 and Developer Package 3.0.0 and found gcc version is 9.3.0, please find the details below.

DEVELOPER PACKAGE DETAILS

aniket.kumar@si-rd22:~/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10$ source /developer-package/SDK/environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi

aniket.kumar@si-rd22:~p/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10$ set |grep CROSS

CROSS_COMPILE=arm-ostl-linux-gnueabi-

aniket.kumar@si-rd22:~/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10$ $CC --version

arm-ostl-linux-gnueabi-gcc (GCC) 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.

YOCTO SDK DETAILS

aniket.kumar@si-rd22:~/developer-package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/arm-ostl-li              nux-gnueabi$ ./arm-ostl-linux-gnueabi-gcc --version

arm-ostl-linux-gnueabi-gcc (GCC) 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.

As both YOCTO SDK and Developer package SDK is of same version still we are facing this issue while building linux kernel build.

aniket.kumar@si-rd22-bld72:~/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linustm32mp-5.10.10-r0/linux-5.10.10$ make ARCH=arm modules O="$PWD/../build"

make[1]: Entering directory `/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostlinux-gnueabi/linux-stm32mp-5.10.10-r0/build'

 GEN   Makefile

 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

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

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

make[1]: Leaving directory `/developer-package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-nux-gnueabi/linux-stm32mp-5.10.10-r0/build'

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

Thankyou