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.
Tool/software: Code Composer Studio
Hello,
I'm trying to compile this very simple code:
typedef struct{
void (*Print)();
}Test;
void PrintTest(){
}
Test t;
int main(void)
{
t.Print = PrintTest;
t.Print();
return 0;
}
But I get this error :
Description Resource Path Location Type
gmake: *** [Source/main.obj] Error 1 TBS2020C28 C/C++ Problem
gmake: Target 'all' not remade because of errors. TBS2020C28 C/C++ Problem
This is my build if this can help me solve this issue:
**** Build of configuration Debug for project TBS2020C28 ****
"C:\\ti\\ccs1000\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
Building file: "../Source/main.c"
Invoking: C2000 Compiler
"C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 --include_path="C:/Work/TIWorkspace/TBS2020C28" --include_path="C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="Source/main.d_raw" --obj_directory="Source" "../Source/main.c"
>> Compilation failure
Source/subdir_rules.mk:9: recipe for target 'Source/main.obj' failed
INTERNAL ERROR: C:\ti\ccs1000\ccs\tools\compiler\ti-cgt-c2000_20.2.0.LTS\bin\acia2000.exe experienced a segmentation fault
while processing function (unknown or file scope) file (unknown) line 0
This is caused by a defect in the TI EABI C/C++ Parser.
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".
We need to see this ENTIRE error message and a complete, reproducible
test case including ALL of the command-line options.
Include the .pp file created by option --preproc_with_comment
gmake: *** [Source/main.obj] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
Hi James,
I believe you have run into this known compiler bug in version 20.2.0:
https://sir.ext.ti.com/jira/browse/EXT_EP-9733
Please upgrade to 20.2.1.
Thanks
ki