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: C6000 INTERNAL ERROR

Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI C/C++ Compiler

Hi,

I am using C6000 compiler 8.1.1, when assigning a c++ object(struct) to another, compiler crashes. That is,

objA = objB;

assignment causes compiler crash.

I dont know if this problem is related to abondoned gcc support in 8.1.1 or copy assignment  issue?

thanks.

mustafa

  • To investigate the cause of this problem, I need a test case which allows me to reproduce that behavior.  Please preprocess the source file with the problem assignment, and attach that to your next post.  Also show all the build options exactly as the compiler sees them.

    Thanks and regards,

    -George

  • Hi George,
    I have big code base, and when I extract the related code into different project, it did not happened again.
    However I can give you the log message :
    recipe for target 'blabla.obj' failed.
    INTERNAL ERROR:Decomposition Error
    This may be a serious problem. Please contact ...

    Note also that Visual c++ compiler succesfully comopiles the code.
    When I use memcpy() instead of assignment, it also works.

    here is the build log and compiler options:

    ====================================================================================

    **** Build of configuration Debug for project SystemManager ****

    "D:\\Apps\\ti60\\ccsv6\\utils\\bin\\gmake" -j 4 all -O
    'Building file: ../system.cfg'
    'Invoking: XDCtools'
    "D:/Apps/ti60/xdctools_3_32_01_22_core/xs" --xdcpath="D:/Apps/ti60/bios_6_46_00_23/packages/ti/platforms;D:/Apps/ti60/bios_6_46_00_23/packages;D:/yglsdev/Common/ti;D:/Apps/ti60/ndk_2_24_01_18/packages;D:/Apps/ti60/ccsv6/ccs_base;D:/yglsdev/Common;D:/Apps/ti60/pdk_C6678_1_1_2_6/packages;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p yglsplatform -r debug -c "D:/Apps/ti60/ccsv6/tools/compiler/ti-cgt-c6000_8.1.1" --compileOptions "-g --optimize_with_debug" "../system.cfg"
    'Finished building: ../system.cfg'
    ' '
    'Building file: D:/yglsdev/SystemManager/source/MissionComputerCls.cpp'
    'Invoking: C6000 Compiler'
    "D:/Apps/ti60/ccsv6/tools/compiler/ti-cgt-c6000_8.1.1/bin/cl6x" -mv6600 --abi=eabi --opt_for_speed=4 --include_path="D:/Apps/ti60/ccsv6/tools/compiler/ti-cgt-c6000_8.1.1/include" --include_path="D:/Apps/ti60/bios_6_46_00_23/packages/ti/sysbios" --include_path="D:/yglsdev/Common" --include_path="D:/yglsdev/SystemManager/source" --include_path="D:/yglsdev/" --include_path="D:/yglsdev/SystemManager/TIConfig" --include_path="D:/Apps/ti60/ndk_2_24_01_18/packages/ti/ndk/inc/bsd" --include_path="D:/Apps/ti60/ndk_2_24_01_18/packages/ti/ndk/inc" --include_path="D:/Apps/ti60/ndk_2_24_01_18/packages" --include_path="D:/Apps/ti60/pdk_C6678_1_1_2_6/packages/ti/drv/cppi" --include_path="D:/Apps/ti60/pdk_C6678_1_1_2_6/packages/ti/csl" --include_path="D:/Apps/ti60/pdk_C6678_1_1_2_6/packages/ti/drv/qmss" --include_path="D:/Apps/ti60/pdk_C6678_1_1_2_6/packages" --include_path="D:/Apps/ti60/pdk_C6678_1_1_2_6/packages/ti/platform" --include_path="D:/yglsdev/Common/ti/platform/c6678platform/platform_lib/include" --include_path="D:/yglsdev/Common/ti" --include_path="D:/yglsdev/SystemManager" -g --relaxed_ansi --gcc --define=SM --diag_wrap=off --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="systempkg/MissionComputerCls.d" --obj_directory="systempkg" --cmd_file="configPkg/compiler.opt" "D:/yglsdev/SystemManager/source/MissionComputerCls.cpp"

    >> Compilation failure
    systempkg/subdir_rules.mk:49: recipe for target 'systempkg/MissionComputerCls.obj' failed
    >> D:/yglsdev/SystemManager/source/MissionComputerCls.cpp, line 331:
    INTERNAL ERROR: Decomposition error


    This may be a serious problem. Please contact customer support with a
    description of this problem and a sample of the source files that caused this
    INTERNAL ERROR message to appear.

    Cannot continue compilation - ABORTING!

    gmake: *** [systempkg/MissionComputerCls.obj] Error 1



    ------------------------------- compiler options ------------------------


    -mv6600 --abi=eabi --opt_for_speed=4

    -g --relaxed_ansi --gcc --define=SM --diag_wrap=off --diag_warning=225 --display_error_number

    ======================================================================================================

    -mustafa
  • Please preprocess the source file MissionComputerCls.cpp as described here.  Then attach the resulting .pp file to your next post.  It is possible that I cannot reproduce the bug with that file.  But, in my experience, that is very rare.

    Thanks and regards,

    -George

  • MissionComputerCls_makeextensionpp.txtHi George,
    I attached the file.

    thanks and regards,
    Mustafa

  • Thank you submitting a test case.  I can reproduce the problem.  I filed CODEGEN-1996 in the SDOWP system to have this investigated.  You are welcome to follow it with the SDOWP link below in my signature.

    Thanks and regards,

    -George

  • could you put the case link?
  • Please visit this SDOWP link.  Enter the issue identifier (ID) CODEGEN-1996 in the Search box in the upper left corner.

    Thanks and regards,

    -George

  • This is a duplicate report of CODEGEN-1333, fixed in C6000 8.1.2