"Command not found" error while generating code with Embedded Coder

I am generating code for a Simulink project using Embedded Coder R2022b. I am receiving an error during the build process related to "gmake" that is causing the build to fail:
/usr/bin/sh: line 1: C:\HIGHTEC\toolchains\tricore\v4.9.2.0bintricore-gcc.exe: command not found gmake: *** [main.o] Error 127 esx4cma_make_rtw_hook: error ### Real-Time Workshop build procedure for model: 'model_name' aborted due to an error.
I installed MATLAB R2022b on a different machine and was able to build the model successfully. Why is this error occurring?

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2025년 7월 21일

0 개 추천

It appears that Windows-based paths are being executed from a UNIX-based shell. Similar issues have occurred due to installations of Cygwin or Msys2 interfering with the execution of the make command. Uninstalling these may resolve this issue. If removing these is not an option, try adding "SHELL=cmd" to your make command to specify a Windows-based shell. 

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품

릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by