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.

CCS: PARSE ERRORS IN RELEASE CONFIG OF MY PROJECT



Tool/software: Code Composer Studio

Hi,

I made a project that runs well in Debug Configuration. (SoC C5505 eZdsp). CCS  Version: 6.2.0.00050 

Passing to Relase configuration, i have a lot of linker errors like this:

"C:\Users\marti\AppData\Local\Temp\0526412", ERROR! at line 12: [E0004]
Substitution symbol operand expected
.asg DPH, MDP
^
"C:\Users\marti\AppData\Local\Temp\0526412", ERROR! at line 123:
[E0000]
parse error
PSH T2
^
"C:\Users\marti\AppData\Local\Temp\0526412", ERROR! at line 126:
[E0000]
parse error
PSH T3
^
"C:\Users\marti\AppData\Local\Temp\0526412", ERROR! at line 129:
[E0000]
parse error
PSHBOTH XAR5
^
"C:\Users\marti\AppData\Local\Temp\0526412", ERROR! at line 139:
[E0000]
parse error
AMOV #_sine_1K, XAR5
^
"C:\Users\marti\AppData\Local\Temp\0526412", ERROR! at line 142:
[E0000]
parse error
MOV #0, T2
^
"C:\Users\marti\AppData\Local\Temp\0526412", ERROR! at line 143:
[E0003]
Only labels and comments may begin in the first column. Make sure
that the label name is not a reserved keyword.
|| MOV #576, T3 ; |32|
^
"C:\Users\marti\AppData\Local\Temp\0526412", ERROR! at line 143:
[E0000]
parse error
|| MOV #576, T3 ; |32|

What does it mean? Any tip?

Thanks in Advance,

Paolo

  • Paolo,

    I would suggest taking a look at the CCS build console and comparing the build output for the Debug configuration with that for the Release configuration. I suspect some compiler options may be different. If there are compiler options set at file-specific level, make sure those match up as well. 

  • Thanks AartiG,

    but there are no significant difference.

    Investigating my problem, i noticed that the ASM file produced from C sources are different in Debug and Release configuration:

    For example, in Debug i have:

            push(T2)
            pshboth(XAR5)
            SP = SP + #-1
            XAR5 = #_sine_1K

    in Release configuration ASM is:

            PSH T3, T2
            PSHBOTH XAR5
            AMOV #_sine_1K, XAR5

    that format seems to be not recognized by the assembler.

    What should I do?

    Thanks in advance

    Paolo

  • Paolo Martinetti said:
    Investigating my problem, i noticed that the ASM file produced from C sources are different in Debug and Release configuration:

    That is quite strange especially if the same version of compiler and compile options are used in both configurations. 

    Would you mind saving the build output for both build configurations to a text file and attaching them here? We could take a look to see if we can spot anything unusual there.

  • Hi,

    my project comes from USB_Stick Audio filter, i have added some files, for example, signals.c

    In release mode:

    Errors in Source - Assembler Aborted
    'Building file: ../signals.c'
    'Invoking: C5500 Compiler'
    "C:/TI/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -vcpu:3.3 --memory_model=huge -O2 -g --include_path="C:/TI/ccsv6/tools/compiler/c5500_4.4.1/include" --include_path="C:/TI/c55_lp/c55_dsplib_3.00/c55_dsplib_03.00.00.03/include" --include_path="C:/Users/marti/Desktop/BACKUP/USB_Stick_AudioFilter/project/Release" --include_path="C:/TI/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/TI/bios_5_42_02_10/packages/ti/rtdx/include/c5500" --include_path="C:/Users/marti/Desktop/BACKUP/USB_Stick_AudioFilter/inc" --include_path="C:/Users/marti/Desktop/BACKUP/USB_Stick_AudioFilter/project/Release" --define=c5505 --define="C55X" --diag_warning=225 --ptrdiff_size=32 --asm_source=algebraic --preproc_with_compile --preproc_dependency="signals.d" "../signals.c"
    57 Assembly Errors, No Assembly Warnings

    >> Compilation failure
    subdir_rules.mk:70: recipe for target 'signals.obj' failed
    gmake: *** [sar.obj] Error 1
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 12: [E0004]
    Substitution symbol operand expected
    .asg DPH, MDP
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 123:
    [E0000]
    parse error
    PSH T2
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 126:
    [E0000]
    parse error
    PSH T3
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 129:
    [E0000]
    parse error
    PSHBOTH XAR5
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 139:
    [E0000]
    parse error
    AMOV #_sine_1K, XAR5
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 142:
    [E0000]
    parse error
    MOV #0, T2
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 143:
    [E0003]
    Only labels and comments may begin in the first column. Make sure
    that the label name is not a reserved keyword.
    || MOV #576, T3 ; |32|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 143:
    [E0000]
    parse error
    || MOV #576, T3 ; |32|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 154:
    [E0000]
    parse error
    || MOV T2, T0 ; |33|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 157:
    [E0000]
    parse error
    MOV dbl(*($C$FL1)), AC1 ; |33|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 170:
    [E0000]
    parse error
    MOV AC0, dbl(*AR5+) ; |33|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 172:
    [E0000]
    parse error
    ADD #1, T2 ; |32|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 173:
    [E0000]
    parse error
    CMPU T2 < T3, TC1 ; |32|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 174:
    [E0000]
    parse error
    BCC $C$L1,TC1 ; |32|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 179:
    [E0000]
    parse error
    POPBOTH XAR5
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 182:
    [E0000]
    parse error
    POP T3
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 185:
    [E0000]
    parse error
    POP T2
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 191:
    [E0000]
    parse error
    RET
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 247:
    [E0000]
    parse error
    PSH T2
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 250:
    [E0000]
    parse error
    PSH T3
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 253:
    [E0000]
    parse error
    PSHBOTH XAR5
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 256:
    [E0000]
    parse error
    PSHBOTH XAR7
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 259:
    [E0000]
    parse error
    AADD #-3, SP
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 275:
    [E0000]
    parse error
    AMOV #_cosines_32, XAR5
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 276:
    [E0000]
    parse error
    AMOV #_sines_32, XAR7
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 279:
    [E0000]
    parse error
    MOV #0, T2
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 280:
    [E0003]
    Only labels and comments may begin in the first column. Make sure
    that the label name is not a reserved keyword.
    || MOV #576, T3 ; |16|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 280:
    [E0000]
    parse error
    || MOV #576, T3 ; |16|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 291:
    [E0000]
    parse error
    || MOV T2, T0 ; |17|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 294:
    [E0000]
    parse error
    MOV dbl(*($C$FL2)), AC1 ; |17|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 301:
    [E0000]
    parse error
    MOV AC0, dbl(*SP(#0)) ; |17|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 302:
    [E0000]
    parse error
    MOV dbl(*SP(#0)), AC0 ; |17|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 309:
    [E0000]
    parse error
    MOV AC0, dbl(*AR5+) ; |17|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 311:
    [E0000]
    parse error
    MOV dbl(*SP(#0)), AC0
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 318:
    [E0000]
    parse error
    MOV AC0, dbl(*AR7+) ; |18|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 320:
    [E0000]
    parse error
    ADD #1, T2 ; |16|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 321:
    [E0000]
    parse error
    CMPU T2 < T3, TC1 ; |16|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 322:
    [E0000]
    parse error
    BCC $C$L2,TC1 ; |16|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 325:
    [E0000]
    parse error
    AMOV #_cosines_42, XAR5
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 326:
    [E0000]
    parse error
    AMOV #_sines_42, XAR7
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 328:
    [E0000]
    parse error
    MOV #0, T2
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 338:
    [E0000]
    parse error
    || MOV T2, T0 ; |22|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 341:
    [E0000]
    parse error
    MOV dbl(*($C$FL3)), AC1 ; |22|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 348:
    [E0000]
    parse error
    MOV AC0, dbl(*SP(#0)) ; |22|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 349:
    [E0000]
    parse error
    MOV dbl(*SP(#0)), AC0 ; |22|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 356:
    [E0000]
    parse error
    MOV AC0, dbl(*AR5+) ; |22|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 358:
    [E0000]
    parse error
    MOV dbl(*SP(#0)), AC0
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 365:
    [E0000]
    parse error
    MOV AC0, dbl(*AR7+) ; |23|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 367:
    [E0000]
    parse error
    ADD #1, T2 ; |21|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 368:
    [E0000]
    parse error
    CMPU T2 < T3, TC1 ; |21|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 369:
    [E0000]
    parse error
    BCC $C$L3,TC1 ; |21|
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 373:
    [E0000]
    parse error
    AADD #3, SP
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 375:
    [E0000]
    parse error
    POPBOTH XAR7
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 378:
    [E0000]
    parse error
    POPBOTH XAR5
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 381:
    [E0000]
    parse error
    POP T3
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 384:
    [E0000]
    parse error
    POP T2
    ^
    "C:\Users\marti\AppData\Local\Temp\0696412", ERROR! at line 390:
    [E0000]
    parse error
    RET
    ^

    Errors in Source - Assembler Aborted
    'Building file: ../vector.asm'
    'Invoking: C5500 Compiler'
    "C:/TI/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -vcpu:3.3 --memory_model=huge -O2 -g --include_path="C:/TI/ccsv6/tools/compiler/c5500_4.4.1/include" --include_path="C:/TI/c55_lp/c55_dsplib_3.00/c55_dsplib_03.00.00.03/include" --include_path="C:/Users/marti/Desktop/BACKUP/USB_Stick_AudioFilter/project/Release" --include_path="C:/TI/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/TI/bios_5_42_02_10/packages/ti/rtdx/include/c5500" --include_path="C:/Users/marti/Desktop/BACKUP/USB_Stick_AudioFilter/inc" --include_path="C:/Users/marti/Desktop/BACKUP/USB_Stick_AudioFilter/project/Release" --define=c5505 --define="C55X" --diag_warning=225 --ptrdiff_size=32 --asm_source=algebraic --preproc_with_compile --preproc_dependency="vector.d" "../vector.asm"
    gmake: *** [signals.obj] Error 1
    'Finished building: ../vector.asm'
    ' '
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    In debug mode:

    'Building file: ../signals.c'
    'Invoking: C5500 Compiler'
    "C:/TI/ccsv6/tools/compiler/c5500_4.4.1/bin/cl55" -vcpu:3.3 --memory_model=huge -O3 --symdebug:coff --include_path="C:/TI/ccsv6/tools/compiler/c5500_4.4.1/include" --include_path="C:/TI/c55_lp/c55_dsplib_3.00/c55_dsplib_03.00.00.03/include" --include_path="C:/Users/marti/Desktop/BACKUP/USB_Stick_AudioFilter/project/Debug" --include_path="C:/TI/bios_5_42_02_10/packages/ti/rtdx/include/c5500" --include_path="C:/Users/marti/Desktop/BACKUP/USB_Stick_AudioFilter/inc" --include_path="C:/Users/marti/Desktop/BACKUP/USB_Stick_AudioFilter/project/Debug" --include_path="C:/TI/bios_5_42_02_10/packages/ti/bios/include" --define="_DEBUG" --define="C55X" --define=c5505 --diag_warning=225 --ptrdiff_size=32 --algebraic --no_mac_expand --asm_source=algebraic --optimizer_interlist --opt_for_speed=5 --opt_for_space=3 --preproc_with_compile --preproc_dependency="signals.d" "../signals.c"
    'Finished building: ../signals.c'
    ' '

  • I see a few differences in the compiler options between the Debug and Release builds. The main ones are:

    -o3 vs -o2
    --symdebug:coff vs -g (--symdebug:dwarf)
    --no_mac_expand is missing in Release
    --opt_for_speed=5 and --opt_for_space=3 are missing in Release

    I would suggest changing these options in the Release build one at a time to match up with the equivalent ones in the Debug build. That should help isolate which option is required to get an error-free build.

  • Great AartiG!

    the problem was caused by -no_mac_expand flag, not set in Release mode:

    this flag prevents the expansion of assembly macros when outputting the source. Probably these macros are not recognized by the assembler

    Thanks you so much!

    Best regards

    Paolo