I'm getting this compiler error - it says contact customer support. Not too sure how to do that, but here is how to reproduce the problem...
struct struct1 {};
struct struct2 { struct struct1 *var1; };
struct struct3 { struct struct2 *var2; };
struct lion { const void *var3; };
static struct struct1 fish;
static struct struct2 kangaroo[] = { { .var1 = &fish } };
static struct struct3 penguin = {.var2 = &kangaroo[1] };
static struct lion rabbit = { (const void *)((void *)(& penguin)) };
static void const * const __attribute__((__section__("grasshopper"))) gavel = &rabbit;
static struct struct1 fish = {};
void main(void) {}
**** Build of configuration Debug for project test ****
C:\ti\ccsv5\utils\bin\gmake -k main.obj
'Building file: ../main.c'
'Invoking: TMS470 Compiler'
"C:/ti/ccsv5/tools/compiler/tms470/bin/cl470" -mv7A8 -g --relaxed_ansi --gcc --include_path="C:/ti/ccsv5/tools/compiler/tms470/include" --diag_warning=225 --display_error_number -me --abi=eabi --code_state=32 --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
INTERNAL ERROR: C:\ti\ccsv5\tools\compiler\tms470\bin\acpia470.exe experienced a segmentation fault while
processing
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.
>> Compilation failure
gmake: *** [main.obj] Error 1
**** Build Finished ****
TMS470 C/C++ Compiler v4.9.1
This is a known bug in the TMS470 codegen tools (SDSCM00042511) and has been fixed in v4.9.3. The segmentation fault occurred because a static variable definition appeared after the variable reference and the parser was making a false assumption that a definition must appear before the reference. To get around the error, you can either update to v4.9.3 or use the workaround of placing the static declaration before any of its references.
static struct struct1 fish;static struct struct1 fish = {};static struct struct2 kangaroo[] = { { .var1 = &fish } };
If you'd ike to update to the newer version let me know and I can send you the installer offline, as the compiler updates have not yet been posted to the CCSv5 update site.
If a post answers your question please mark it with the "Verify Answer" button
Search the wikis for common questions: CGT, BIOS, CCSv3, CCSv4Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box
That would be great, can you see my email address?
graham chow That would be great, can you see my email address?
No I can't. But I sent you a friend request. After you accept, I can start a private conversation and send it to you.