Hi,
Building a New Linux Kernel
as the following command :
make[1]: *** [scripts_basic] Error 2
Do you encounter this problem before ? Thanks your help !
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Do you encounter this problem before ? Thanks your help !
Hi,
There should be a space between arm_v5t_le- and davinci_dm365_defconfig in the make command.
Regards, Sudhakar
Hi ,
Thanks your help and I test the result as below:
$ make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm365_defconfig
HOSTCC scripts/basic/fixdep/bin/sh: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts_basic] Error 2
Does any others I have to check ?
Thanks your help
leo
Hi,
make command is trying to launch the HOSTCC (host compiler) which is gcc. Please make sure that gcc compiler is installed and present in PATH environment variable.
Regards, Sudhakar
Hi ,
Thanks your help .
I had set PATH in the .bashrc so that the MontaVista tool chain host tools and cross compiler (arm_v5t_le-gcc) can be found :
export PATH="/opt/mv_pro_5.0/montavista/pro/devkit/arm/v5t_le/bin:/opt/mv_pro_5.0/montavista/pro/bin:/opt/mv_pro_5.0/montavista/common/bin:$PATH"
And Writing a Simple Program and Running it on the EVM successfully and it means the cross compiler is work.
And make sure I have completed Setting Up the Build/Development Environment and Writing a Simple Program and Running it on the EVM before attempting to build a new kernel.
Now I found the "make" command will be errow in my system same as before like " make menuconfig"
HOSTCC scripts/basic/fixdep
/bin/sh: gcc command not found
make[1]: ***[script/basic/fixdep] Error 127
make: *** [script_basic] Error 2
Could you help to identify where I need to check to execute the "make" command .
Thanks your help
leo
Hi,
Please check on your host machine that you have GCC toolchain installed on it and if yes, please check that the path of GCC exist in the .bashrc. I have got gcc 4.1.2 installed on my linux box.
Regards,
anshuman
PS: Please mark this post as verified, if you think it has answered your question. Thanks.