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.

CODECOMPOSER: Unable to Build Code Due to GMAKE and Undefined Errors

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: SYSCONFIG

While trying to build a project from my company, my Windows machine is unable to build the project due to the below errors shown in the given screenshot. Although the warnings show that some objects are undefined, that is not the case based on the code. Hence I am not sure where the issue is occurring. Note: For the error for GIT_HASH occurs in comm.c however the macro defined in sensors.c

Compiler: TI v18.1.5.LTS

SDK: SimpleLink CC13x2 26x2 SDK v3.10.0.53

XDCTools v3.50.8.24_core

Errors Transcribed:

gmake: *** [all] Error 2

gmake[1]: *** [comm.obj] Error1

gmake[1]: Target 'main-build' not remote because of errors

#66 expected a ";"                                                                Location: Line 211 ~.\CryptoKey.h

#20 identifier "CryptoKey_Encoding" is undefined               Location: Line 211 ~.\CryptoKey.h

#20 identifier "CryptoKey_Encoding" is undefined               Location: Line 240 ~.\CryptoKey.h

#20 identifier "GIT_HASH" is undefined                               Location: Line 813

  • To debug the problem, build again with the option --gen_preprocessor_listing.  This creates a listing file with the same name as the source file, but the file extension changed to .rl.  Inspect this file.  The error diagnostics are in it, on a line that begins with E.  Then start working backwards.  My guess is the project is configured incorrectly.  Maybe a command line option is wrong, or a -D preprocessor_symbol is missing, or something like that.

    For more details about --gen_preprocessor_listing, please search for it in the TI ARM compiler manual.

    Thanks and regards,

    -George

  • Hello George,

    I built the project using --gen_preprocessor_listing, and I got the following result:

    The compiler (at least I believe it to be the compiler, apologies I am a bit inexperienced) is unable to locate the macro. However the file that declares the header has been included in the file, so I believe it should work. I have tried to re-define the macro in the file the error occur, and although that error goes away the other errors persist.

    Additionally, I cannot find the .rl file for the CryptoKey.c file which has the error #20 identifier "CryptoKey_Encoding" is undefined. This error I find confusing since a struct is defined for it in the same file (the file is in the SimpleLink CC13X2 26X2 v3.10.0.53 SDK).

    Do you know what the issue is or what else I can try to resolve it?

    Thank you and best regards,

    Akbar A. Pardawalla

  • Hello Akbar,

    Issues with undefined values in the project are typically related to the Project Properties -> Compiler -> Directories.  You will need to make sure that the correct directories are used and refer to examples from the SDK.  The expected dependencies are listed below from the Release Notes.

    • TI Code Composer Studio: CCS-9.0.0.00013
    • TI Code Generation Tools for Arm: 18.12.1.LTS
    • XDCTools: 3.51.02.21
    • SysConfig Standalone tool for IAR IDE: 1.0.655

    I do not expect such errors inside the .ccsproject resource, as such please confirm that this file is not corrupted.  Does your project utilize the crypto driver?

    Regards,
    Ryan

  • Hello Ryan,

    I tried building the project by changing the TI Code Generation Tools for Arm from v18.1.5.LTS to v18.12.1.LTS, installed and used CCS 9.0.0.00018, XDCTools version remained the same. The project uses a .cfg file rather than a SysConfig. The errors have not changed.

    I don't believe the .ccsproject file would be corrupt, however would appreciate if you can tell me a way to check.

    The crypto driver is used for this project.

    Lastly, I forgot to include one more error, not sure if of use. Whenever building the project, a githash.h file is generated which says "ce79". If I do not delete it before building the project a second time, the following error is presented (alongside the ones listed from before):

    #20 identifier "ce79" is undefined.

    Hope that helps. Thank you in advanced for your help.

    Best Regards,

    Akbar

  • It's strange that errors are being observed in the .ccsproject resource, which typically have no effect on a project build.  Have you tried locating them and further examining?  The best explanation is that the CryptoKey_Encoding typedef line is missing its semicolon in CryptoKey.h

    typedef uint8_t CryptoKey_Encoding;

    Be sure to also review the Using GIT with CCS documentation for your GIT errors.

    Regards,
    Ryan

  • The issue was the C++ pre-build command was made with Linux systems in mind, I had to change it so it would work on Windows.

    Thank you Ryan for your assistance.

    Akbar