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.

Fatal error generated by compiler



Hello,

I am using Code Composer

Version: 5.1.0.09000

I made a change to the code (if it matters, I tried to switch a C++ map to a list) and now the code will not compile and will not throw an error until I ask it to cancel the build.  I thought maybe it was taking awhile, so I left it over night and it still wasn't able to finish.  Here is the message after I hit cancel:

 

**** Build of configuration Debug for project PXMTracking ****

C:\ti\ccsv5\utils\bin\gmake -k all

'Building file: C:/Users/jabkiewiczb/Workspace/PXMTracking/trunk/src/workerTask.cpp'

'Invoking: C6000 Compiler'

"C:/ti/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g -O2 --cpp_default --gcc --include_path="C:/ti/ccsv5/tools/compiler/c6000/include" --include_path="C:/Users/jabkiewiczb/Workspace/TI_Libraries/dsplib_c66x_3_1_0_0/inc" --include_path="C:/Users/jabkiewiczb/Workspace/PXMTracking/trunk/src" --include_path="C:/Users/jabkiewiczb/Workspace/PXMExploitation/trunk/src" --display_error_number --diag_warning=225 --abi=eabi --temp_directory="../../bin/pxm_tracking" --obj_directory="../../bin/pxm_tracking" --asm_directory="../../bin/pxm_tracking" --list_directory="../../bin/pxm_tracking" --preproc_with_compile --preproc_dependency="../../bin/pxm_tracking/workerTask.pp" --cmd_file="./configPkg/compiler.opt"  "C:/Users/jabkiewiczb/Workspace/PXMTracking/trunk/src/workerTask.cpp"

"C:/Users/jabkiewiczb/Workspace/PXMTracking/trunk/src/workerTask.cpp", line 89: warning #552-D: variable "completion_time" was set but never used

INTERNAL ERROR: C:\ti\ccsv5\tools\compiler\c6000\bin\cg6x.exe experienced a fatal internal fault while

                processing function WorkerMain

This is a serious problem.  Please contact Customer

Support with this message and a copy of the input file

and help us to continue to make the tools more robust.

Terminate batch job (Y/N)?

^Cgmake: *** [C:/Users/jabkiewiczb/Workspace/PXMTracking/trunk/bin/pxm_tracking/workerTask.obj] Interrupt

**** Build of configuration Debug for project PXMTracking ****

Command canceled

Error: Program "C:/ti/ccsv5/utils/bin/gmake" is not found in PATH

PATH=[C:\ti\ccsv5\ccs_base\common\bin;C:\ti\ccsv5\ccs_base\common\uscif;C:\ti\ccsv5\ccs_base\DebugServer\license;C:/ti/ccsv5/eclipse/jre/bin/client;C:/ti/ccsv5/eclipse/jre/bin;C:/ti/ccsv5/eclipse/jre/lib/i386;C:\Perl64\site\bin;C:\Perl64\bin;C:\Users\jabkiewiczb\Workspace\TI_Libraries\xdctools_3_22_04_46;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\LeapsGui\LeapsLibrary;c:\LeapsApi\LeapsLibrary;C:\Program Files\MATLAB\R2012a\bin;C:\Program Files\TortoiseSVN\bin;C:\Users\jabkiewiczb\Workspace\TI_Libraries\xdctools_3_22_04_46;C:\Users\jabkiewiczb\Workspace\TI_Libraries\xdctools_3_22_04_46\packages;C:\LeapsGui\LeapsLibrary; C:\MinGW\bin;C:\Program Files (x86)\PHP\v5.3\;C:\Program Files (x86)\Manzanita Systems\MP2TSAE Demo 5;D:\mcsdk\xdctools_3_22_04_46\packages\ti\platforms\sim64Pxx\Windows;C:\ti\ccsv5\utils\bin;D:\WorkspaceD\ipp7\dll;C:\ti\ccsv5\eclipse;]

**** Build Finished ****

 I am not even sure where to start looking.  I think I changed everything ok.  Any advice?

Thanks,
Brandy

  • Brandy,

    Could you try lowering the optimization level, say to -o1 and rebuild? I suspect that might help overcome the issue.

    Another option is to try updating your compiler to a newer version. The C6000 compiler version that came with CCS 5.1 I believe is 7.3.1. The latest version on that branch is 7.3.12. You can update to this version by going to CCS menu Help->Check for Updates. Select only the C6000 Compiler Tools v7.3.12 if you do not wish to install any of the other updates. After it installs you can set your project to use this version and rebuild.

    Let us know if either of those options help with the issue.

  • Hi Aarti,

    Lowering the compile optimization did help - it worked again.  But why?  How can I build in release mode if I cannot have optimizations?  Can you suggest some code techniques that I might be using that caused the compiler to hang?


    Thanks,
    Brandy

  • We would need the preprocessed version of the source file Task.cpp in order to do further analysis. But before sending that would you be willing to try out the newer version of the compiler to see if the issue is already fixed in that version?

  • Hi Aarti,

     

    While I still don't have the reason why the compiler locked up, I have found that one of my brackets was misplaced.  It was paired up correctly, so I guess the syntax scan did not see it but the location was not where I wanted it to be in my code.  When I fixed it, it compiled again. 

    Perhaps it caused too much nesting for the compiler?

    Thanks,

    Brandy

  • BrandyJ said:

    Perhaps it caused too much nesting for the compiler?

    It is possible, although we can't say for certain without further analysis of the source file. However, since you have been able to resolve the issue that may not be necessary now. I am glad you are now able to compile the code again with your desired options.

  • Ok.  Thanks for now!