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/TMS320DM6437: Strange compiler error

Part Number: TMS320DM6437

Tool/software: Code Composer Studio

Have got that compiler error using Code Composer Studio 5.5 and CGT v7.4.4:

>> ERROR: Bad tag:

>> Compilation failure
'Invoking: C6000 Compiler'
gmake: *** [source_file.obj] Error 1

which isnt colored in red. So overall compilation is also failed. But if i run compiling again (not cleaning project) it will success.

  • andrey kuzmin said:
    But if i run compiling again (not cleaning project) it will success.

    That is odd that is succeeds during the second build. 

    andrey kuzmin said:
    >> ERROR: Bad tag:

    Is this the only error that is output in the build console? Could you do a Rebuild Project, then save the full output of the CCS build console to a text file (as described here) and attach the log here?

  • Yes, it is the only error.

    Also, if i build the only problem file I always see that error. 

    About build console, it consist of standard compiler output for every source file in project without any errors except problem file.

    "Problem" file is ok from c++ point of view. It well tested and written earlier (and not by me).

    Forgot compiler options:

    'Invoking: C6000 Compiler'
    "C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv64+ --abi=coffabi -O3 -ms3 -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --include_path="C:/" --include_path="C:/ti/sdo/pspdrivers/soc/dm6437/dsp" --include_path="C:/ti/bios_5_42_01_09/packages/ti/bios/include" --include_path="C:/ti/bios_5_42_01_09/packages/ti/rtdx/include/c6000" --define=dm6437 --diag_error=225 --consultant --fp_not_associative --fp_reassoc=off --debug_software_pipeline --opt_for_speed=5 --fp_mode=relaxed --asm_listing --preproc_with_compile

  • I searched through some internal reports and it appears the error may be due to the --consultant option. That option is actually not supported in the 7.4.x compiler.  It is replaced by the option --advice:performance.  Please read about it in the section titled Using Performance Advice to Optimize Your Code in the C6000 compiler manual.  

    If you remove that option or replace it with --advice:performance the error should go away.