"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?

 Accepted Answer

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. 

More Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products

Release

R2022b

Community Treasure Hunt

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

Start Hunting!