• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » TI C/C++ Compiler » TI C/C++ Compiler - Forum » INTERNAL ERROR: C:\ti\ccsv5\tools\compiler\tms470\bin\acpia470.exe experienced a segmentation fault while
Share
TI C/C++ Compiler
  • Forum
Options
  • Subscribe via RSS

Forums

INTERNAL ERROR: C:\ti\ccsv5\tools\compiler\tms470\bin\acpia470.exe experienced a segmentation fault while

This question is answered
graham chow
Posted by graham chow
on Mar 26 2012 06:38 AM
Prodigy175 points

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

 

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • AartiG
    Posted by AartiG
    on Mar 26 2012 09:55 AM
    Verified Answer
    Verified by AartiG
    Guru69065 points

    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, CCSv4
    Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • graham chow
    Posted by graham chow
    on Mar 26 2012 15:53 PM
    Prodigy175 points

    That would be great, can you see my email address?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • AartiG
    Posted by AartiG
    on Mar 26 2012 16:20 PM
    Guru69065 points

    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.


    If a post answers your question please mark it with the "Verify Answer" button

    Search the wikis for common questions: CGT, BIOS,  CCSv3, CCSv4
    Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use