arm-none-eabi-gcc: command not found

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

arm-none-eabi-gcc: command not found

10,354 Views
Chakradhar
Contributor I

below is the error am facing while building the HSE_Demoapp in S32DS S32K3X2

can any one help me,

Building file: ../Project_Settings/Startup_Code/Startup.s
Invoking: Standard S32DS Assembler
arm-none-eabi-gcc "@demo_app/Startup.args" -o "demo_app/Startup.o" "C:/Temp/NXP/HSE_DEMOAPP_S32K3X2_0_0_11_0/demo_security_installer/src/demo_app/target/m7/startup/Startup.s"
Invoking: Standard S32DS Assembler
arm-none-eabi-gcc "@demo_app/Vector_core.args" -o "demo_app/Vector_core.o" "C:/Temp/NXP/HSE_DEMOAPP_S32K3X2_0_0_11_0/demo_security_installer/src/demo_app/target/m7/startup/Vector_core.s"
Invoking: Standard S32DS Assembler
arm-none-eabi-gcc "@Project_Settings/Startup_Code/Startup.args" -o "Project_Settings/Startup_Code/Startup.o" "../Project_Settings/Startup_Code/Startup.s"
Building file: ../Project_Settings/Startup_Code/Vector_core.s
/bin/sh: arm-none-eabi-gcc: command not found
make: *** [demo_app/subdir.mk:19: demo_app/Startup.o] Error 127
make: *** Waiting for unfinished jobs....
Invoking: Standard S32DS Assembler
/bin/sh: arm-none-eabi-gcc: command not found
arm-none-eabi-gcc "@Project_Settings/Startup_Code/Startup.args" -o "Project_Settings/Startup_Code/Vector_core.o" "../Project_Settings/Startup_Code/Vector_core.s"
/bin/sh: arm-none-eabi-gcc: command not found
make: *** [Project_Settings/Startup_Code/subdir.mk:19: Project_Settings/Startup_Code/Startup.o] Error 127
make: *** [demo_app/subdir.mk:26: demo_app/Vector_core.o] Error 127
/bin/sh: arm-none-eabi-gcc: command not found
make: *** [Project_Settings/Startup_Code/subdir.mk:19: Project_Settings/Startup_Code/Vector_core.o] Error 127
"make -j12 all" terminated with exit code 2. Build might be incomplete.

0 Kudos
Reply
12 Replies

7,559 Views
nirmal_masilamani
Contributor IV

I am also facing same kind of issue with DIO example project with RTD.

 

17:37:45 **** Build of configuration Debug_FLASH for project Dio_Example_S32K144 ****
make -j12 all
Building file: ../generate/src/Dio_Cfg.c
Building file: ../generate/src/Clock_Ip_VS_0_PBcfg.c
Building file: ../generate/src/Mcu_Cfg.c
Building file: ../generate/src/Clock_Ip_Cfg.c
Building file: ../src/main.c
Building file: ../generate/src/Mcu_VS_0_PBcfg.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Dio_Cfg.d" -MT"generate/src/Dio_Cfg.o" -o "generate/src/Dio_Cfg.o" "../generate/src/Dio_Cfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@src/main.args" -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Clock_Ip_Cfg.d" -MT"generate/src/Clock_Ip_Cfg.o" -o "generate/src/Clock_Ip_Cfg.o" "../generate/src/Clock_Ip_Cfg.c"
/bin/sh: arm-none-eabi-gcc: command not found
/bin/sh: arm-none-eabi-gcc: command not found
make: *** [src/subdir.mk:20: src/main.o] Error 127
make: *** Waiting for unfinished jobs....
make: *** [generate/src/subdir.mk:55: generate/src/Dio_Cfg.o] Error 127
/bin/sh: arm-none-eabi-gcc: command not found
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Clock_Ip_VS_0_PBcfg.d" -MT"generate/src/Clock_Ip_VS_0_PBcfg.o" -o "generate/src/Clock_Ip_VS_0_PBcfg.o" "../generate/src/Clock_Ip_VS_0_PBcfg.c"
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Mcu_VS_0_PBcfg.d" -MT"generate/src/Mcu_VS_0_PBcfg.o" -o "generate/src/Mcu_VS_0_PBcfg.o" "../generate/src/Mcu_VS_0_PBcfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Mcu_Cfg.d" -MT"generate/src/Mcu_Cfg.o" -o "generate/src/Mcu_Cfg.o" "../generate/src/Mcu_Cfg.c"
make: *** [generate/src/subdir.mk:56: generate/src/Clock_Ip_Cfg.o] Error 127
/bin/sh: arm-none-eabi-gcc: command not found
make: *** [generate/src/subdir.mk:56: generate/src/Clock_Ip_VS_0_PBcfg.o] Error 127
/bin/sh: arm-none-eabi-gcc: command not found
make: *** [generate/src/subdir.mk:56: generate/src/Mcu_VS_0_PBcfg.o] Error 127
/bin/sh: arm-none-eabi-gcc: command not found
make: *** [generate/src/subdir.mk:56: generate/src/Mcu_Cfg.o] Error 127
"make -j12 all" terminated with exit code 2. Build might be incomplete.

17:37:46 Build Failed. 13 errors, 0 warnings. (took 886ms)

 

0 Kudos
Reply

10,037 Views
Chakradhar
Contributor I

@VaneB Eventhough I followed the same steps mentioned same error am facing same issue,

I gave PATH Variable : C:\Temp\NXP\S32DS.3.5\eclipse;C:\Temp\NXP\S32DS.3.5\S32DS\build_tools\msys32\usr\bin;C:/Temp/NXP/S32DS.3.5/eclipse/jre/bin/client;C:/Temp/NXP/S32DS.3.5/eclipse/jre/bin;C:\windows\Softcamp\SDK;C:\windows\Softcamp\SDS\x64;C:\windows\Softcamp\SDS;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Windchill\RVSClient12\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Iqpad\ubCENTRA\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\Bandizip\;C:\Program Files\PuTTY\;C:\Program Files (x86)\Vector CANdb++ 3.1\Exec32;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;C:\PROGRA~1\WINDCH~1\Toolkit\mksnt;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\Program Files\CMake\bin;C:\Program Files\Polyspace\R2022b\polyspace\bin;C:\Users\mobis\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\mobis\AppData\Local\Programs\Python\Python311\;C:\Users\mobis\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Temp\bin;C:\Temp\NXP\S32DS.3.5\S32DS\tools\gdb-arm\arm32-eabi\bin

 

0 Kudos
Reply

9,965 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Chakradhar 

Sorry for the inconvenience this may cause. 

I am not able to reproduce your issue because, as I mentioned, SAF85XX is not a mass-market device, I am not able to check or verify any information due to the security level when working with automotive parts such as this. 

Could you please contact the person who provided you with the device for further support on this part?

0 Kudos
Reply

10,334 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Chakradhar 

From the information provided, I assume that you are using the HSE Firmware Standard EAR release compatible with S32K312 Device (s32k3x2_hse_fw_0.13.0_0.11.0_pb210726.bin (FullMem) and s32k3x2_hse_fw_1.13.0_0.11.0_pb210726.bin (AB Swap)). We always recommend using the latest release.

Regarding the building problems, could you confirm if you followed the steps described in the Read Me file to import and build the project?

 

B.R.

VaneB

0 Kudos
Reply

10,308 Views
Chakradhar
Contributor I

@VaneB  i have followed the readme file and  i have downloaded latest file HSE_DEMOAPP_S32K311_0_2_14_0 and am facing the below error

No rule to make target 'C:/Temp/NXP/HSE_DEMOAPP_S32K311_0_2_14_0/demo_security_installer/src/demo_app/target/m7/src/sys_init.c', needed by 'demo_app/target/m7/src/sys_init.o'

I am working for SAF85XX product (HSE_M (Medium) is available on Flash-less S32x product variants (such as S32R41 and SAF85)) need this

even though i have tried to open the demo_app_m7_0.gpj(HSE_B is there) with GHS 
facing error with Could not read target file : arm_standalone.tgt

0 Kudos
Reply

10,282 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Chakradhar 

Please correct me if I understand wrong. 

It is not recommended to use HSE B for SAF85XX devices as this is not the version need it.

Also, as SAF85XX is not a mass-market device, I am not able to check or verify any information due to the security level when working with automotive parts such as this. Could you please contact the person that provided you with the device for further support on this part?

0 Kudos
Reply

10,259 Views
Chakradhar
Contributor I

@VaneB Can you say how to resolve the arm-none-eabi-gcc: command not found please

 

0 Kudos
Reply

10,241 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Chakradhar 

Usually, this error is caused because a build error for installing HSE FW.

I want to ask you to verify the version of your IDE. At the moment of creation, the project was done for S32DS v3.5. Please check this from Help -> About S32 Design Studio.

Also, the S32K3 extension package needs to be installed as well.

0 Kudos
Reply

10,178 Views
Chakradhar
Contributor I

Hello,

S32 design details

S32 Design Studio for S32 Platform
Version: 3.5
Build id: 220726

Copyright 2017-2022 NXP

Visit http://www.nxp.com/


This product includes software developed by the Eclipse Foundation http://www.eclipse.org/

This product includes software developed by the Apache Software Foundation http://apache.org/

0 Kudos
Reply

10,157 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Chakradhar 

The IDE version is correct, so the problem will be a miss of a package that is necessary for the HSE_DEMOAPP_S32K311_0_2_14_0. Please make sure to have the S32K3 extension package installed as well.

 

0 Kudos
Reply

10,129 Views
Chakradhar
Contributor I

Hello @VaneB am getting this error
just i have build the project "HSE_DEMOAPP_SAF85xx_1_0_23_2" in S32 Design studio

Issue:

**** Build of configuration BuildConfig_Flash for project HSE_DEMO_SAF85XX ****
make -j12 all
Building file: ../src/sys_init.c
Building file: ../generate/src/Clock_Ip_Cfg.c
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@src/sys_init.args" -MMD -MP -MF"src/sys_init.d" -MT"src/sys_init.o" -o "src/sys_init.o" "../src/sys_init.c"
Building file: ../generate/src/Fls_Cfg.c
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Clock_Ip_Cfg.d" -MT"generate/src/Clock_Ip_Cfg.o" -o "generate/src/Clock_Ip_Cfg.o" "../generate/src/Clock_Ip_Cfg.c"
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Fls_Cfg.d" -MT"generate/src/Fls_Cfg.o" -o "generate/src/Fls_Cfg.o" "../generate/src/Fls_Cfg.c"
Building file: ../generate/src/Fls_VS_0_PBcfg.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Fls_VS_0_PBcfg.d" -MT"generate/src/Fls_VS_0_PBcfg.o" -o "generate/src/Fls_VS_0_PBcfg.o" "../generate/src/Fls_VS_0_PBcfg.c"
Building file: ../generate/src/OsIf_Cfg.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/OsIf_Cfg.d" -MT"generate/src/OsIf_Cfg.o" -o "generate/src/OsIf_Cfg.o" "../generate/src/OsIf_Cfg.c"
Building file: ../generate/src/Qspi_Ip_VS_0_PBcfg.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@generate/src/Clock_Ip_Cfg.args" -MMD -MP -MF"generate/src/Qspi_Ip_VS_0_PBcfg.d" -MT"generate/src/Qspi_Ip_VS_0_PBcfg.o" -o "generate/src/Qspi_Ip_VS_0_PBcfg.o" "../generate/src/Qspi_Ip_VS_0_PBcfg.c"
Building file: ../board/Siul2_Port_Ip_Cfg.c
Using built-in specs.
Reading specs from nano.specs
arm-none-eabi-gcc.exe: error: nano.specs: No such file or directory
Using built-in specs.
Reading specs from nano.specs
arm-none-eabi-gcc.exe: error: nano.specs: No such file or directory
Using built-in specs.
Reading specs from nano.specs
arm-none-eabi-gcc.exe: error: nano.specs: No such file or directory
Using built-in specs.
Reading specs from nano.specs
arm-none-eabi-gcc.exe: error: nano.specs: No such file or directory
Invoking: Standard S32DS C Compiler
make: *** [src/subdir.mk:20: src/sys_init.o] Error 1
arm-none-eabi-gcc "@board/Siul2_Port_Ip_Cfg.args" -MMD -MP -MF"board/Siul2_Port_Ip_Cfg.d" -MT"board/Siul2_Port_Ip_Cfg.o" -o "board/Siul2_Port_Ip_Cfg.o" "../board/Siul2_Port_Ip_Cfg.c"
make: *** Waiting for unfinished jobs....
Building file: ../board/dcd_config.c
make: *** [generate/src/subdir.mk:32: generate/src/Fls_Cfg.o] Error 1
Using built-in specs.
Reading specs from nano.specs
arm-none-eabi-gcc.exe: error: nano.specs: No such file or directory
make: *** [generate/src/subdir.mk:32: generate/src/Clock_Ip_Cfg.o] Error 1
make: *** [generate/src/subdir.mk:32: generate/src/Fls_VS_0_PBcfg.o] Error 1
make: *** [generate/src/subdir.mk:32: generate/src/OsIf_Cfg.o] Error 1
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@board/Siul2_Port_Ip_Cfg.args" -MMD -MP -MF"board/dcd_config.d" -MT"board/dcd_config.o" -o "board/dcd_config.o" "../board/dcd_config.c"
Using built-in specs.
Reading specs from nano.specs
arm-none-eabi-gcc.exe: error: nano.specs: No such file or directory
make: *** [generate/src/subdir.mk:32: generate/src/Qspi_Ip_VS_0_PBcfg.o] Error 1
Using built-in specs.
Reading specs from nano.specs
arm-none-eabi-gcc.exe: error: nano.specs: No such file or directory
make: *** [board/subdir.mk:29: board/Siul2_Port_Ip_Cfg.o] Error 1
Using built-in specs.
Reading specs from nano.specs
arm-none-eabi-gcc.exe: error: nano.specs: No such file or directory
make: *** [board/subdir.mk:29: board/dcd_config.o] Error 1
"make -j12 all" terminated with exit code 2. Build might be incomplete.

09:59:46 Build Failed. 9 errors, 0 warnings. (took 942ms)

 

0 Kudos
Reply

10,096 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Chakradhar 

The issue looks to be the Eevironment for lib path is not set. Set the environment for lib path as below example:

For Linux

export CC_LIB=<path to cross-compiler library>

export CC_LIB=/home/<username>/NXP/S32DS.3.4/S32DS/build_tools/gcc_v9.2/gcc-9.2-arm32-eabi/arm-none-eabi/newlib

For Windows

export CC_LIB=<path to cross-compiler library>

export CC_LIB=/C/nxp/S32DS.3.4/S32DS/build_tools/gcc_v9.2/gcc-9.2-arm32-eabi/arm-none-eabi/newlib

Choose the 32 bit or 64 bit tool-chain lib path as gcc-9.2-arm32-eabi OR gcc-9.2-arm64-eabi.

You can also see nano.specs file exists at location:

S32DS.3.4/S32DS/build_tools/gcc_v9.2/gcc-9.2-arm32-eabi/arm-none-eabi/newlib/lib/

Also, as I mentioned before the SAF85XX is not a mass-market device, I am not able to check or verify any information due to the security level when working with automotive parts such as this. Could you please contact the person that provided you with the device for further support on this part?

0 Kudos
Reply