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.

ERRORS: [#10192 Failed linktime optimization] & [symbol "__ccfg" has already been defined]

Other Parts Discussed in Thread: CC2650

Hello TI,

I am working on CC2650 application using SPPBLEServer profile. while adding one other project module with SPPBLEServer project and compiled, I faced these errors. 

[#10192: failed linktime optimization and "symbol "__ccfg" has already been defined]

I searched throughout my project but couldn't find the location of these errors. I tried the suggestions posted earlier on forum, but did workout.

Please suggest~

Thanks n Regards

  • Linktime optimization only occurs when you use the build option --opt_level=4.  That's the highest optimization level.  Try lowering the optimization level to 3 or lower.  I suspect you will still get the error.  But you will also get a better diagnostic which helps you understand how to fix the error.

    Thanks and regards,

    -George

  • Hi George~

    Thanks for your reply~

    I tried with lower level of optimization but it showing more errors.....

    Please suggest....

    Thanks n Regards

  • As I suspected, you now get a diagnostic which tells you where the duplicate symbols come from.  Carefully inspect the source files ccfg.c and Startup/ccfg_appBLE.c for the symbol __ccfg.  You will find two definitions of this symbol.  Note a definition causes the compiler to reserve space in memory for that variable or function.  One of these definitions must be removed or changed.

    The error about "program will not fit into available memory" is a separate issue.  Please see this wiki article for discussion of that situation.

    Thanks and regards,

    -George

  • Hello George,

    Sorry for my late response~

    well, I tried the way, you suggested.....I remove one of the 'ccfg' definition, now there is no error related to this except THIS: 'program will not fit into available memory'.I tried the methods mentioned here:

    1. Stack and Heap size change: OLD set: 256; tried with different values;  Same Issues, not solved

    2. Optimization level: OLD set: 5;  Tried changes (1/2/3/4...); Same Issues, not solved

    I removed the last error; TimestampProvider_get 32, by including it in main program. Still the first 4 errors are there.

    Please suggest~

    Thanks n Regards

  • The section BSS_GROUP is too big for the memory range to which you allocate it.  You either have to make it smaller, or use a different memory range.

    Hsa S said:
    I removed the last error; TimestampProvider_get 32, by including it in main program.

    You probably need to do something similar for System_abort.  I presume this is also a function, and not a variable.  I presume you no longer build with --opt_level=4.  That this message says <whole-program> indicates that you use the option --program_level_compiler (or the short form equivalent -pm).  Remove this option and this diagnostic will show the name of a source file which references System_abort.  You may be able to change it to call something else.

    Thanks and regards,

    -George