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/AM4376: "...recipe for target 'clean' failed"

Part Number: AM4376


Tool/software: Code Composer Studio

When I clean my project I get this error message: "makefile:160: recipe for target 'clean' failed"

It refers to the following line in "makefile" on "<myproject>Debug" folder:

   -$(RM) $(GEN_CMDS__QUOTED)$(GEN_MISC_FILES__QUOTED)$(BIN_OUTPUTS__QUOTED)$(GEN_FILES__QUOTED)$(EXE_OUTPUTS__QUOTED)$(GEN_OPTS__QUOTED)"

Is it relate to the length of the command line?

Software versions:

CCS_7.1.0.00016_win32

Processor -sdk-rtos-am437x-evm-04.00.00.04-Windows-x86

Thanks,

  • Marcio Borges said:
    When I clean my project I get this error message: "makefile:160: recipe for target 'clean' failed"

    Is there more information than that printed in the build console? If so, could you provide the complete text please?

    Would you mind attaching your CCS project files (.*project) and makefile? You could put them all into a zip file and attach that here.

  • Hi,

    The CCS project files (.*project) and makefile are attached.

    0211.files.zip

    This is the console output:

    **** Clean-only build of configuration Debug for project prj_am4376 ****

    "C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 clean -O
    DEL /F  "prj_am4376.hex"  "configPkg\linker.cmd" "configPkg\compiler.opt"  "prj_am4376.out"
    makefile:160: recipe for target 'clean' failed
    The system cannot find the file specified.
    gmake: [clean] Error 1 (ignored)
    The system cannot find the file specified.
    gmake: [clean] Error 2 (ignored)
    Could Not Find C:\ALSTOM\CED2\Workspace\prj_am4376\Debug\main.o
    Could Not Find C:\ALSTOM\CED2\Workspace\prj_am4376\Debug\main.d
    RMDIR /S/Q  "configPkg\"
    makefile:160: recipe for target 'clean' failed
    DEL /F "main.o"
    DEL /F "main.d"
    'Finished clean'
    ' '

    **** Build Finished ****

  • Nothing stands out immediately in the makefile, but does the project build successfully in spite of the above message? 

  • It creates the .out files and show no errors.
  • Marcio Borges said:
    When I clean my project I get this error message: "makefile:160: recipe for target 'clean' failed"

    I can actually reproduce this using the latest version of CCS v7.3. It seems specific to SYS/BIOS projects. What I observed is that the first attempt to "Clean project" after a "Build Project" does not result in this error message. However a second attempt to "Clean Project" generates this message.

    I will file a bug report to have this looked at. However the message itself does not impact the build process so you can ignore the message for now. 

    Thank you for bringing this to our attention.

  • The tracking # for this issue is CCSIDE-3202.