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.

Compiler/TMS320F28377D: Compiler segmentation fault when compiling for CLA

Part Number: TMS320F28377D

Tool/software: TI C/C++ Compiler

Hello, 

I experience compiler segmentation fault when compiling for CLA.

I found this thread but i'm not using --gcc option and I tried with three different compiler version 15.x.x and 16.x.x.

This is the log message I get during compiling:

INTERNAL ERROR: C:\Prg_dev\ti\C2000_compilers\16.9.2.LTS\bin\accla.exe experienced a segmentation fault
                  while processing function (unknown or file scope) file (unknown) line 0

This is caused by a defect in the compiler itself. TI Customer
Support may be able to suggest a workaround to avoid this.

Upgrading to the newest version of the compiler may fix this problem.

Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler". See the link titled
"Submitting an issue". Include this ENTIRE error message and a
copy of the .pp file created when option --preproc_with_comment
(-ppc) is used.

gmake: *** [Release_CPU1\CLA_Tasks.obj] Error 1

**** Build Finished ****

Thanks for support,

Angelo

  • Unfortunately, you have found a problem in our tools.  And it is probably a new one.  Please follow these steps to submit a test case which allows me to reproduce it.

    1. Preprocess the file CLA_Tasks.cla
    2. Attach that to your next post 
    3. Show all the build options exactly as the compiler sees them

    Thanks and regards,

    -George

  • I managed to found the line that caused the segfault.

    I have a function pointer declared like this:

    void (*calc)();

    then I initialize it in a .c file:

    calc = pi_std;

    where pi_std is a static inline function located in a .h file.

    Then in the .cla file I call the function:

    calc(&data);

    causing the segault.

    Changing the function call to calc(&data); to pi_std(&data) inside the CLA_task.cla file fixes the problem.

  • Thanks for showing this reduced test case.  However, I am still unable to reproduce the problem.  I'd appreciate if you would supply a complete something.cla source file, along with the build options, which result in the compiler crash you show in the first post.  Note the something.cla file does not need to run, only build.

    Thanks and regards,

    -George