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.

CCS: Cant build specific file in project - no rule to make target

Other Parts Discussed in Thread: CCSTUDIO

Tool/software: Code Composer Studio

Hello,

Using TDA2xx.

When trying to build a SELECTED file in a project for the A15 core i am getting an error:

gmake: *** No rule to make target 'src/mpu_c0_main.obj'.

There is no problem building the entire project the problem is ONLY when trying to build only one file.

I am currently using CCS >= version  8.3, and with CCS version 8.1 there is NO such issue and i am able to build a selected file with no issues for the SAME project and file.

Appreciate your help to resolve it.

Thanks

Guy

  • Guy,

    Are you working with a CCS project that builds with the GNU compiler? I think I see the same behavior with a CCS/GNU project. I will need to investigate further but could you please confirm the type of project and compiler tools you are using?

  • Hi, Thanks.

    Yes, i am talking about a GNU compiler project (specifically in my case i am using the "gcc-arm-none-eabi-4_9-2015q3" for the A15 MPU core).

    Thanks

    Guy

  • I see the bug in CCS 9.1. When building a selected file rather than the whole project, the gmake command invoked is incorrect.

    In CCS 9.1, it appears as: 

    "C:\\CCStudio_9.1.0.00007\\ccs\\utils\\bin\\gmake" -k -j 8 main.obj -O 

    The command should have main.o (for GNU compiler output) instead of main.obj. 

    As you said, this works fine in CCS 8.1 but not in the versions since 8.3. 

    I will file a bug report for this and post the tracking ID here. Unfortunately I don't have a good workaround at the moment.

  • Hi, Thanks.

    How does CCS decides the extension to append to the object file - isn't there some eclipse/CCS variable that defines it and can be controlled/modified (or is it hard coded into CCS)?

    Thanks

    Guy

  • I believe it is hard coded because it is part of the gmake command and isn't in any of the makefiles.

    I have filed a bug report, the tracking ID is CCSIDE-3651. Feel free to track it using the SDOWP link in my signature.
    If we do find a workaround post-analysis we will update this thread with the information. Thank you for bringing this to our attention.