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.

make is missing?



I have newly installed the CCSv5.1 RC1 with default settings. So was also my project configured - everything default.

After building CCS tells in the "Problems" tab that

                                 Cannot run program "make": Launching failed

I guess the make.exe might be missing or its path is not given to CCS, according to some articles in internet.

Or could it be a conflict to CCSv4, which is installed in my PC as well?

Thanks in advance!

  • Hi,

    Anyu Dai said:

    I guess the make.exe might be missing or its path is not given to CCS, according to some articles in internet.

    You are correct: the standard Eclipse expects the <make.exe> utility to be present in your system and placed on a directory on the path.

    CCS, however ships with the <gmake.exe> utility. In CCSv5.1 you can point to it by going to Project Properties --> C/C++ Build --> tab Builder Settings --> Build Command:

    ${eclipse_home}/../utils/bin/gmake

    Hope this helps,

    Rafael

  • Hi, Rafael,

    your suggestion works! CCS finds gmake, but there is still an error:


    gmake: *** No rule to make target `my_project.out', needed by `all'.  Stop.

     

    Maybe some parameters are needed?

     

    Thanks!

     

     

  • makefile is missing I guess.

    In tab "Builder Settings" I have checked on "Generate makefile automatically".

  • Hi,

    Did it work then? If not, could you send your project so I could take a look?

    Regards,

    Rafael

  • Hello Rafael,

    This is not my own private project, so sorry I cannot send it to you. But I used to compile it with CCSv4 in the same PC of mine, and my colleague has also succeeded in compiling this project with CCSv5 in his computer.

    There exists a makefile. maybe you could find some clues there:

    ################################################################################
    # Automatically-generated file. Do not edit!
    ################################################################################

    -include ../makefile.init

    RM :=

    # All of the sources participating in the build are defined here
    -include sources.mk
    -include subdir.mk
    -include objects.mk

    -include ../makefile.defs

    # Add inputs and outputs from these tool invocations to the build variables

    # All Target
    all: my_project.out

    # Tool invocations
        @echo 'No tool found that can build the extension specified with the build artifact name $@'
    # Other Targets
    clean:
        -$(RM) $(OBJS) my_project.out
        -@echo ' '

    .PHONY: all clean dependents
    .SECONDARY:

    -include ../makefile.targets

     

    By the way, I 've clicked "verify" by mistake...

  • Hi,

    The error message is a generic gmake error when it can't find one or multiple source files required to build the project, thus failing to build the <my_project.out>. However, to pinpoint the exact root cause can be a bit cumbersome without the project itself, therefore I send some suggestions to try:

    If the exact same project works in another PC in your company, can you try to import the project from your colleague?

    If it still does not build, check if your colleague's PC has any differences regarding paths to tools, the type and version of the compiler, any missing directories and/or include files, etc.

    Also, check the project's options - maybe an include or a library is missing from your project.

    Also, as another test I would delete the output directory (Debug or Release) and see if the project builds ok (the files there should be generated with a rebuild) - just be sure you create a copy of your project first. 

    Please give these tips a try and see if the issue gets solved.

    Hope this helps,

    Rafael

  • Hello Rafael,

    Thanks for your tips! I am busy with something else, however, I will come back to this theme a couple of  weeks later and give you a feedback here in this post.

     

  • I've solve this problem...

    The copy of the project files was compiled with TI v3.3.1, which doesn't exist in CCS v.5.1.0.08020 any more.

    The compiler version was somehow curious:

    "Compiler version TI v3.3.1"

    "Effective version TI v4.0.0".

    I guess the v4.0.0 was in charge, and the possibly great differences between v3 and v4 made the compilation fail.

    Luckily there is still a TI v3.3.3 in CCSv5, so I configured project to it and then the compilation works. The differences between v3.3.3 and v3.3.1 seem to be neglible for my project.

     

    Rafael, where could I find the releases notes about the differences of the compilers? Hopefully the minor differences between v3.3.3 and v3.3.1wouldn't effect the work in the future.

     

  • Hi,

    I am glad you found the root of the problem and thank you for reporting your findings.

    Regarding the compiler changes and features, go to the compiler install directory and read the <README.txt> and <DefectHistory.txt> files, typically located at:

    <CCS_INSTALL_DIR>\ccsv5\tools\compiler\msp430

    Regards,

    Rafael

  • Hi,

    I have the same probelm. My project is unable to find make or gmake. This project was working yesterday. When i tried to re-compile today it is missing files.

    How do i fix the make issue to rebuild the project?

    I already copied the gmake command given in this thread. It didnt work. I also enabled the automatic generation of makefile which didnot work.

    B Chavali