Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

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.

gmake: *** No rule to make target

Guru 15580 points

Every *other* time I build my project I get a series of error messages, one for each header file. If I then build again, all is well. What am I doing wrong?

Description	Resource	Path	Location	Type
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\adf7242.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\aic3204.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\cc.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\config.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\control.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\data_types.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\dma.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\gpio.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\i2s.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\lcd.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\leds.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\main.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\master.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\oled.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\ref_data.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\reg_readback.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\register_cpu.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\register_dma.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\register_system.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\register_usb.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\rtc.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\sar.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\slave.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\spi.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\switch.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\timer.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\ARL_5515\inc\usb.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem
gmake: *** No rule to make target `Workspaces\ARL5515\usbstk5515bsl\include\usbstk5515.h', needed by `adf7242.obj'. ARL_5515 Unknown C/C++ Problem

  • HI Mike,

    could you please provide a bit further detail on what steps you take and your project setup?

    - is it literally every second build?  Every second build after a change?  After opening the workspace/project?
    - where are these header files located?  It seems the problem is at least in the initial run, CCS is not finding the path to them.  Are they linked to the project or included from a project or non-project directory?

    - how have you told CCS where to find them?

    - do you do anything between builds?

    This wiki has information on including and linking resources. 

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

    Please keep us informed.

    Best Regards,
    Lisa

  • Lisa,

    sorry for the late reply. I have been trying to isolate this problem to something repeatable.

    Lisa TI said:
    could you please provide a bit further detail on what steps you take and your project setup?

    I am attempting to make code modifications during a debug session. After an edit, I attempt to build by using the Project->Build Project in the drop down menu. Immediately after making the edit, when I attempt the build the errors occur. If I then do exactly the same thing (Project->Build Project), the project will successfully build. It seems like the focus is being lost on the project after I edit the source, so that CCS attempts to build something else.

    Lisa TI said:
    - is it literally every second build?

    Yes, about 90%  of the time.

    Lisa TI said:
    Every second build after a change?

    Yes, generally after editing the source.

    Lisa TI said:
    After opening the workspace/project?

    No, during a debug session. I have tried leaving the program running, as well as stopping the execution. No difference.

    Lisa TI said:
    - where are these header files located? 

    Lisa TI said:
      Are they linked to the project or included from a project or non-project directory?

    Lisa TI said:
    - how have you told CCS where to find them?

    The headers are located in an "inc" sub-directory in the project directory. I have provided their path in Project Properties ("${workspace_loc:/${ProjName}/inc}")

    Lisa TI said:
    - do you do anything between builds?

    Yes, debug session.

    Lisa TI said:
    This wiki has information on including and linking resources. 

    Very familiar with this.

  • HI Mike,

    yes, I believe you have figured it out.  I suspect the focus is being lost and CCS is not happy building when the project is not the focus.  I am not sure that there is much of a work around/that can be done about this. 

    Hope this helps clarify.

    Best Regards,
    Lisa

  • Lisa,

    Lisa TI said:
    yes, I believe you have figured it out.

    Unfortunately, this is not the answer. After getting the errors, I can switch to Edit view and see that the project is still "Active". Any other thoughts? This is a real PITA.

  • Hi Mike,

    what version of CCS are you using?  What target?  I just tried this in v5.1.1 and this does not occur.  If I make modifications during debug I get a dialogue box asking if I want to then load the new .out file as one is already in use obviously.

    Is there any reason you don't terminate the debug session?

    Best Regards,

    Lisa

  • Lisa,

    Lisa TI said:
    Is there any reason you don't terminate the debug session?

    Having to terminate a debug session every time I need to make a minor code change is not reasonable (have you tried this?).

    The problem persists.

    I am seeing the following when the error occurs.

    Description Resource Path Location Type
    Build variable 'C5500_CSL_CG_ROOT' cannot be resolved. ARL_5515 properties TI Problem Marker
    Invalid project path: Duplicate path entries found (/ARL_5515 [Include path] isSystemInclude:true includePath:C:/Users/Mike/TI Workspaces/ARL5515/ARL_5515/Debug), path: [/ARL_5515]. ARL_5515 pathentry Path Entry Problem

    What is causing this? Could it be causing the problem I am seeing?

  • Hi Mike,

    yes it could be that you are seeing the issue because of this error.

    The error looks like CCS is getting confused because there are two paths defined for the same thing.  Have a look at this wiki and your include paths and variable to see if this is the case/anything needs to be corrected/cleaned.

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

    Please keep us informed how that goes.

    Best Regards,

    Lisa

  • Lisa,

    Lisa TI said:
    Have a look at this wiki and your include paths and variable to see if this is the case/anything needs to be corrected/cleaned.

    No help.

    Also, the problem exists even when I am not in a debugging session.

  • Is there any solution to this problem?  I am having the exact same issues.  ccs v5.1.0.09

  • I am seeing the same issue with Version: 5.1.1.00031.