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/TMS320F28335: gmake error

Part Number: TMS320F28335


Tool/software: Code Composer Studio

When building a project for TMS320F28335 using CCS V.6.2.0, I get the following error message. I have attached the screen shot of error 1 pointer. Please suggest a workaround. 

8 errors detected in the compilation of "../2833x_board_example.c".
gmake: *** [2833x_board_example.obj] Error 1
gmake: Target 'all' not remade because of errors.

  • Lakshmi,

    If you open the problems view you will be able to see what the actual build errors were. The gmake message you see on this screen is a generic one that is shown when the build fails. The problems view can be opened by going to the view menu and selecting problems.

    Regards,
    John
  • John,

    Please note that the screenshot I'd attached before was that of the window that came up when I clicked on error description. I'm attaching another screenshot for clarity. Error 1 pointed to line 103 of s_cstdlib.h file.

    Lakshmi.

  • Lakshmi,

    Could you attach the text from the console that refers to line 103. The 2 shown in the console are remarks for line 126.

    Thanks,
    John
  • John,

    Please find text file of the console attached.

    **** Build of configuration Debug for project 2833x_board_example ****
    
    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
    'Building file: ../2833x_board_example.c'
    'Invoking: C2000 Compiler'
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/bin/cl2000" -v28 -ml -mt --float_support=fpu32 --include_path="C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include" --include_path="/packages/ti/xdais" --include_path="C:/ti/controlSUITE/device_support/f2833x/v133/DSP2833x_headers/include" --include_path="C:/ti/controlSUITE/device_support/f2833x/v133/DSP2833x_common/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath/v15c/include" --include_path="C:/ti/controlSUITE/libs/math/FPUfastRTS/V100/include" -g --define="_DEBUG" --define="LARGE_MODEL" --quiet --diag_warning=225 --verbose_diagnostics --issue_remarks --cdebug_asm_data --output_all_syms --preproc_with_compile --preproc_dependency="2833x_board_example.d"  "../2833x_board_example.c"
    
    >> Compilation failure
    subdir_rules.mk:7: recipe for target '2833x_board_example.obj' failed
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s_c_features.h", line 439: warning: 
              incompatible redefinition of macro "_STLP_VENDOR_CSTD" (declared at
              line 112 of
              "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s_c__ti.h")
      #  define _STLP_VENDOR_CSTD
                ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 103: error: 
              declaration is incompatible with builtin "int abs(int)" (declared at
              line 119 of
              "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/stdlib.h")
      inline long abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); }
                  ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 103: error: 
              expected an expression
      inline long abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); }
                                                          ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 103: remark: 
              parameter "__x" was never referenced
      inline long abs(long __x) { return _STLP_VENDOR_CSTD::labs(__x); }
                           ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 111: error: 
              expected an identifier
      inline _STLP_VENDOR_CSTD::ldiv_t div(long __x, long __y) { return _STLP_VENDOR_CSTD::ldiv(__x, __y); }
                              ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 111: remark: 
              explicit type is missing ("int" assumed)
      inline _STLP_VENDOR_CSTD::ldiv_t div(long __x, long __y) { return _STLP_VENDOR_CSTD::ldiv(__x, __y); }
                              ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 111: error: 
              expected an expression
      inline _STLP_VENDOR_CSTD::ldiv_t div(long __x, long __y) { return _STLP_VENDOR_CSTD::ldiv(__x, __y); }
                                                                                         ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 111: remark: 
              parameter "__x" was never referenced
      inline _STLP_VENDOR_CSTD::ldiv_t div(long __x, long __y) { return _STLP_VENDOR_CSTD::ldiv(__x, __y); }
                                                ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 111: remark: 
              parameter "__y" was never referenced
      inline _STLP_VENDOR_CSTD::ldiv_t div(long __x, long __y) { return _STLP_VENDOR_CSTD::ldiv(__x, __y); }
                                                          ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 125: error: 
              function "abs" has already been defined
      inline _STLP_LONG_LONG  abs(_STLP_LONG_LONG __x) { return _STLP_VENDOR_CSTD::llabs(__x); }
                              ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 125: error: 
              expected an expression
      inline _STLP_LONG_LONG  abs(_STLP_LONG_LONG __x) { return _STLP_VENDOR_CSTD::llabs(__x); }
                                                                                 ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 125: remark: 
              parameter "__x" was never referenced
      inline _STLP_LONG_LONG  abs(_STLP_LONG_LONG __x) { return _STLP_VENDOR_CSTD::llabs(__x); }
                                                  ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 126: error: 
              expected an identifier
      inline _STLP_VENDOR_CSTD::lldiv_t div(_STLP_LONG_LONG __x, _STLP_LONG_LONG __y) { return _STLP_VENDOR_CSTD::lldiv(__x, __y); }
                              ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 126: remark: 
              explicit type is missing ("int" assumed)
      inline _STLP_VENDOR_CSTD::lldiv_t div(_STLP_LONG_LONG __x, _STLP_LONG_LONG __y) { return _STLP_VENDOR_CSTD::lldiv(__x, __y); }
                              ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 126: error: 
              expected an expression
      inline _STLP_VENDOR_CSTD::lldiv_t div(_STLP_LONG_LONG __x, _STLP_LONG_LONG __y) { return _STLP_VENDOR_CSTD::lldiv(__x, __y); }
                                                                                                                ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 126: remark: 
              parameter "__x" was never referenced
      inline _STLP_VENDOR_CSTD::lldiv_t div(_STLP_LONG_LONG __x, _STLP_LONG_LONG __y) { return _STLP_VENDOR_CSTD::lldiv(__x, __y); }
                                                            ^
    
    "C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/s__cstdlib.h", line 126: remark: 
              parameter "__y" was never referenced
      inline _STLP_VENDOR_CSTD::lldiv_t div(_STLP_LONG_LONG __x, _STLP_LONG_LONG __y) { return _STLP_VENDOR_CSTD::lldiv(__x, __y); }
                                                                                 ^
    
    8 errors detected in the compilation of "../2833x_board_example.c".
    gmake: *** [2833x_board_example.obj] Error 1
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

  • Thanks Lakshmi.

    I have imported one of the fastRTS examples and setup my include paths and compiler to match yours. I am not getting any errors at this point. Would it be possible to get your project?

    You can export the project by right clicking on the project and selecting Export. Then in the dialog expand general and select archive file.

    Regards,
    John
  • The problem  is you are including, in a C program, a C++ variant of a C standard header such as ...

    #include <cstring>

    The correct method is to include the C style library header file ...

    #include <string.h>

    A more in depth explanation can be found in this forum thread.

    Thanks and regards,

    -George