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.

PROCESSOR-SDK-AM437X: Program "make" not found in PATH

Part Number: PROCESSOR-SDK-AM437X

Hi TI!

I am following the training video series: Sitara Linux Board Porting Series. I am in Module 6: Building U-boot in Code Composer Studio.

When I try to buid u-boot, CCS give me this following error: 

make all
Cannot run program "make": Unknown reason

Error: Program "make" not found in PATH
PATH=[SDK INSTALL DIR>/linux-devkit/sysroots/x86\_64-arago-linux/usr/bin]

Please, how can I solve it?

Sincerely, Thank you very much. 

  • Hi Bin Liu,

    Thank you very much for your response.

    Attached image of the error I have when I run the command: make CROSS_COMPILE=arm-linux-gnueabihf- O=am437x_evm am437x_evm_defconfig

    Please, do you have any?

    Thank you very much. 

  • Hi,

    Did you add the path of the toolchain provided in the Processor SDK to your shell $PATH?

  • I am following these steps: 

    cd $HOME/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/linux-5.4.106+gitAUTOINC+023faefa70-g023faefa70

    rm -rf ./am437x_evm

    make CROSS_COMPILE=arm-linux-gnueabihf- O=am437x_evm am4375x_evm_defconfig

    I get this error:

    make[1]: Entering directory '/home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/linux-5.4.106+gitAUTOINC+023faefa70-g023faefa70/am437x_evm'
    GEN Makefile
    HOSTCC scripts/basic/fixdep
    In file included from /home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/usr/include/features.h:474:0,
    from /home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/usr/include/sys/types.h:25,
    from ../scripts/basic/fixdep.c:97:
    /home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory
    # include <gnu/stubs-soft.h>
    ^~~~~~~~~~~~~~~~~~
    compilation terminated.
    scripts/Makefile.host:107: recipe for target 'scripts/basic/fixdep' failed
    make[2]: *** [scripts/basic/fixdep] Error 1
    /home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/linux-5.4.106+gitAUTOINC+023faefa70-g023faefa70/Makefile:523: recipe for target 'scripts_basic' failed
    make[1]: *** [scripts_basic] Error 2
    make[1]: Leaving directory '/home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/linux-5.4.106+gitAUTOINC+023faefa70-g023faefa70/am437x_evm'
    Makefile:179: recipe for target 'sub-make' failed
    make: *** [sub-make] Error 2

  • make CROSS_COMPILE=arm-linux-gnueabihf- O=am437x_evm am4375x_evm_defconfig

    Run the following command before the step above:

    export PATH=$PATH:$HOME/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/linux-devkit/sysroots/x86_64-arago-linux/usr/bin

  • Hi Bin Liu!

    Thank you very much

    I found that I was calling the commands from the wrong directory:


    Command with problem: cd $HOME/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/linux-5.4.106+gitAUTOINC+023faefa70-g023faefa70

    Command ok:                  cd $HOME/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/u-boot-2020.01+gitAUTOINC+2781231a33-g2781231a33

    Then I am running the following commands:

    cd $HOME/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/u-boot-2020.01+gitAUTOINC+2781231a33-g2781231a33

    rm -rf ./am43xx_evm

    export PATH=$PATH:$HOME/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/linux-devkit/sysroots/x86_64-arago-linux/usr/bin

    make CROSS_COMPILE=arm-linux-gnueabihf- O=am43xx_evm am437xx_evm_defconfig

    I get the following log:

    make[1]: Entering directory '/home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/u-boot-2020.01+gitAUTOINC+2781231a33-g2781231a33/am43xx_evm'
    GEN ./Makefile
    #
    # configuration written to .config
    #
    make[1]: Leaving directory '/home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/u-boot-2020.01+gitAUTOINC+2781231a33-g2781231a33/am43xx_evm'

    Questions:

    1-) If I try to build from CCS, I get the same error: Program "make" not found in PATH. Please, any suggestions? 

    2-)  If I run the following command, 

    make CROSS_COMPILE=arm-linux-gnueabihf- O=am43xx_evm

    I get the following log:

    make[1]: Entering directory '/home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/u-boot-2020.01+gitAUTOINC+2781231a33-g2781231a33/am43xx_evm'
    make[1]: arm-linux-gnueabihf-gcc: Command not found
    /bin/sh: 1: arm-linux-gnueabihf-gcc: not found
    dirname: missing operand
    Try 'dirname --help' for more information.
    GEN ./Makefile
    scripts/kconfig/conf --syncconfig Kconfig
    ../scripts/binutils-version.sh: line 18: arm-linux-gnueabihf-as: command not found
    CHK include/config.h
    CFG u-boot.cfg
    /bin/sh: 1: arm-linux-gnueabihf-gcc: not found
    ../scripts/Makefile.autoconf:77: recipe for target 'u-boot.cfg' failed
    make[2]: *** [u-boot.cfg] Error 1
    make[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.
    make[1]: Leaving directory '/home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/u-boot-2020.01+gitAUTOINC+2781231a33-g2781231a33/am43xx_evm'
    Makefile:167: recipe for target 'sub-make' failed
    make: *** [sub-make] Error 2

    Please, any suggestions?

    3-) What do you recommend me to continue learning how to port the operating system according to my hardware?

  • Hi,

    I found the reason why it fails. It appears the instruction in the SDK v7.3.0.5 release is out of date. The cross compiler name has been changed.

    make CROSS_COMPILE=arm-linux-gnueabihf- O=am43xx_evm am437xx_evm_defconfig

    CROSS_COMPILE should be arm-none-linux-gnueabihf- instead of arm-linux-gnueabihf- as in the documentation. Sorry for the inconvenience.

  • Hi Bin Liu!

    Sincerely, thank you very much. 

    I did the change, but I have the same problem yet. 

    Please could you check the log in the following image. Maybe it will give us some information about the problem. 

    I also show the project configuration: 

    I have configured in CWD, PATH, PWD:

    CWD: /home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/u-boot-2020.01+gitAUTOINC+2781231a33-g2781231a33/

    PATH: /home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/linux-devkit/sysroots/x86_64-arago-linux/usr/bin

    PWD: /home/alberto/sitara_sdk/ti-processor-sdk-linux-am437x-evm-07.03.00.005/board-support/u-boot-2020.01+gitAUTOINC+2781231a33-g2781231a33/

     have configured in Build Command:

    Build Command: make CROSS_COMPILE=arm-none-linux-gnueabihf-

    But the error allways the same :-(. 

  • Hi,

    Just want to clarify, the screenshots you posted seems to be for CCS, do you have the "same issue" on CCS or Linux command line?

    What I have been talking in this entire thread is for Linux command line, compiling Linux kernel, not for CCS.

  • Hi Bin Liu, 

    Thank you very much. 

    With Linux command line I had other problem taht I not remember. I will test it again. 

    But my main problem is with CCS.

    Yes, the screenshots are with CCS. 

    Please, any idea about the solution?

    Sincerely, thank you very much. 

  • Hi,

    Why do you want to compile Linux kernel in CCS? I am not aware of anyone doing this.

  • Hi Bin Liu, 

    Sincerely, thank you very much. 

    Only I am following the training video series: Sitara Linux Board Porting Series. I am in Module 6: Building U-boot in Code Composer Studio.

    I want to build U-boot as they do in the video. 
    I have this problem, different from what is shown on the video series: Sitara Linux Board Porting Series. Module 6: Building U-boot in Code Composer Studio.

    I have experience with the hardware design for the SITARA family, I have developed different designs with the SITARA family.  But I need to learn to linux board porting .

    If you have any suggestions for learning how to port the Linux board easily and quickly, please feel free to suggest me. 

    Sincerely, thank you very much. 

    Kinds regards. 

  • Hi,

    You should skip the section which explains compiling uboot and kernel in CCS, I am not aware of anyone doing that. The process of compiling uboot or kernel in Linux command line is clear and straight forward, also has less headache than doing it in CCS I believe.

    Please follow the links below to build uboot or kernel.

    https://software-dl.ti.com/processor-sdk-linux/esd/docs/07_03_00_005/linux/Foundational_Components/U-Boot/UG-General-Info.html

    https://software-dl.ti.com/processor-sdk-linux/esd/docs/07_03_00_005/linux/Foundational_Components_Kernel_Users_Guide.html

    Please just note that in the first link, the CROSS_COMPILE setting is out of date, it should instead be

    CROSS_COMPILE=arm-none-linux-gnueabihf-

    It is updated in the second link.