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.

ARM compiler 5.1.1 internal errors compiling CMSIS-SP-00300-r3p1-00rel0

With CCS 5.4 and TI ARM compiler 5.0.5 had successfully compiled the ARM CMSIS DSP Software Library  Version 3.01. When the TI ARM compiler was changed to 5.1.1 internal compiler errors are reported on three source files:

**** Build of configuration Debug for project dsplib-cm4f ****

"C:\\ti_ccs5_4\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/DSP_Lib/Source/SupportFunctions/arm_q7_to_q15.c'
'Invoking: ARM Compiler'
"C:/ti_ccs5_4/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti_ccs5_4/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/Include" -g --gcc --define=ARM_MATH_CM4 --define=__FPU_PRESENT --diag_warning=225 --display_error_number --diag_wrap=off --gen_func_subsections=on -k --c_src_interlist --ual --preproc_with_compile --preproc_dependency="SupportFunctions/arm_q7_to_q15.pp" --obj_directory="SupportFunctions"  "C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/DSP_Lib/Source/SupportFunctions/arm_q7_to_q15.c"
>> C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/DSP_Lib/Source/SupportFunctions/arm_q7_to_q15.c, line 92:
               INTERNAL ERROR: no match for ASG


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!


>> Compilation failure
gmake: *** [SupportFunctions/arm_q7_to_q15.obj] Error 1
'Building file: C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/DSP_Lib/Source/StatisticsFunctions/arm_power_q7.c'
'Invoking: ARM Compiler'
"C:/ti_ccs5_4/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti_ccs5_4/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/Include" -g --gcc --define=ARM_MATH_CM4 --define=__FPU_PRESENT --diag_warning=225 --display_error_number --diag_wrap=off --gen_func_subsections=on -k --c_src_interlist --ual --preproc_with_compile --preproc_dependency="StatisticsFunctions/arm_power_q7.pp" --obj_directory="StatisticsFunctions"  "C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/DSP_Lib/Source/StatisticsFunctions/arm_power_q7.c"
>> C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/DSP_Lib/Source/StatisticsFunctions/arm_power_q7.c, line 96:
               INTERNAL ERROR: no match for ASG


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!


>> Compilation failure
gmake: *** [StatisticsFunctions/arm_power_q7.obj] Error 1
'Building file: C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/DSP_Lib/Source/BasicMathFunctions/arm_dot_prod_q7.c'
'Invoking: ARM Compiler'
"C:/ti_ccs5_4/ccsv5/tools/compiler/arm_5.1.1/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -O2 --include_path="C:/ti_ccs5_4/ccsv5/tools/compiler/arm_5.1.1/include" --include_path="C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/Include" -g --gcc --define=ARM_MATH_CM4 --define=__FPU_PRESENT --diag_warning=225 --display_error_number --diag_wrap=off --gen_func_subsections=on -k --c_src_interlist --ual --preproc_with_compile --preproc_dependency="BasicMathFunctions/arm_dot_prod_q7.pp" --obj_directory="BasicMathFunctions"  "C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/DSP_Lib/Source/BasicMathFunctions/arm_dot_prod_q7.c"
>> C:/sw01291/CMSIS-SP-00300-r3p1-00rel0/CMSIS/DSP_Lib/Source/BasicMathFunctions/arm_dot_prod_q7.c, line 105:
               INTERNAL ERROR: no match for ICALL


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!


>> Compilation failure
gmake: *** [BasicMathFunctions/arm_dot_prod_q7.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

The pre-processed source files which cause the interal compiler errors with TI ARM compiler 5.1.1 are attached in 7317.preprocessed_source_files.zip

  • Thank you for submitting a well defined test case.  I can reproduce the problem. I filed 
     SDSCM00048263 in the SDOWP system to have this addressed.  Feel free to follow it with the SDOWP link below in my signature.

    Thanks and regards,

    -George

  • Using the TI ARM compiler 5.1.1 I tried changing the optimization settings, but that didn't prevent the internal compiler errors.Using the original compiler options and trying diferent compiler versions:

    - v5.0.5 and v5.0.6 compile without error

    - v5.1.0 and v5.1.1 generate internal compiler errors

    i.e. the problem was introduced in v5.1.0 and so as a work-around will continue to use a previous compiler version to build CMSIS.

  • George Mock said:
    I filed SDSCM00048263 in the SDOWP system to have this addressed.

    SDSCM00048263 has been fixed in ARM compiler 5.1.2, which now compiles CMSIS-SP-00300-r3p1-00rel0 without error.