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.

Compiler: Error: Program "C:\ti\ccsv7\utils\bin\gmake" not found in PATH

Tool/software: TI C/C++ Compiler

I am trying to build my project in Code Composer Studio, and am getting the following error:

Error: Program "C:\ti\ccsv7\utils\bin\gmake" not found in PATH

I have gone to the C:\ti\ccsv7\utils\bin\ directory and can see that gmake is not there. I'm not sure how to fix the issue, however. Has anybody had this issue before and have a fix?

Thanks.

  • That is very odd.  I suspect your entire installation of CCS is corrupted.  Please delete it and re-install.  This thread is being moved to the Code Composer Forum.  They can handle any further questions about installing CCS.  

    Thanks and regards,

    -George

  • It turns out that my anti-virus program was quarantining gmake.exe
    Waiving the threat fixed the problem.
  • Thank you for letting us know and glad to hear that you fixed the problem.
  • I am having the same problem. In my case, the only anti-virus software I have installed is Windows defender and that is turned off . I have already tried re-installing CCS7 but will uninstall it and try again. I am running windows 8.1, in case that makes any difference. Any ideas?
  • To add to my previous post: following a complete uninstall and reinstall, the problem went away for about an hour or so. I had been modifying various source files and had rebuilt my project several times without any problems, then it suddenly starting giving the same error message again. One difference in my case compared to the original problem that Laura reported is that gmake.exe is in the correct location and has definitely not been quarantined.

    Cleaning the project cleared the error but it now takes at least 10 minutes to build a very simple project (just 6 source files) that previously took a few seconds. It appears that CCS7 is now doing everything at a snail's pace. I suspect it is having some impact elsewhere as it now takes a long time to run "C:\ti\ccs7\utils\bin\gmake -?" directly from a console window.

    Any help would be much appreciated.
  • Hello ,

    I have exactly the same issue with gmake. is there a fix ?

  • Stuart Hall88 said:
    Cleaning the project cleared the error but it now takes at least 10 minutes to build a very simple project (just 6 source files) that previously took a few seconds. It appears that CCS7 is now doing everything at a snail's pace. I suspect it is having some impact elsewhere as it now takes a long time to run "C:\ti\ccs7\utils\bin\gmake -?" directly from a console window.

    This is pretty odd behavior, especially if the same project build completed in just a few seconds before. 

    I'm wondering if anti-virus is causing the issue here. You did mention you are running Windows Defender and that it is disabled. Could you double-check again if this could be the trigger? 

    Also, have you tried rebooting the computer since the issue started? 

  • I tried running with anti-virus disabled; this made no difference whatsoever. After rebooting, the PC behaved normally until the first time I tried to build the project; then the problem returned so I had to reboot again. This pattern was always repeated. In all cases once the PC had turned to treacle, there was never anything obvious in Windows task manager: CPU and memory resource utilisation remained low for all apps, including CCS.

    However, I did manage to solve the problem. I noticed that the compiler was getting stuck executing the command: gmake -k -j 4 all -O. Initially I tried turning on the option 'Stop on first build error' and turning off the 'enable parallel build' so the command was reduced to gmake all. This fixed the problem and I was finally up and running after a very frustrating few days.

    I continued working this way but then decided to investigate further.

    First I switched off the 'Stop on first build error' and all was well.

    I then re-enabled parallel builds but set the parallel jobs to 2 and still all was well.

    I then changed parallel builds back to 4, expecting it to go wrong again but it still worked fine.

    Finally I switched back to 'Use optimal jobs' and it is still working fine. So I am now back with the same settings (same gmake command line) as I started with but now it seems to be OK.

    For information, I am using a Lenovo laptop with corei7 processor (quad core). I feel certain that the problem had something to do with the parallel build settings so would advise anyone experiencing similar issues to go through the same steps as I did.

  • Stuart,

    Thank you for posting your observations and I am glad to hear that things are working fine for you now. I must admit though that I am surprised that even going back to the original build settings did not make the issue come back, so I'm not sure if the parallel build setting was the root cause to begin with. In any case, it will certainly be helpful to others who may encounter a similar issue so thank you again for posting the solution that worked for you.