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: Issue with experienced a segmentation fault while processing section .text

Tool/software: TI C/C++ Compiler

Hello All

When I migrate myproject from CCS v6 to CCS v9 ; I have very strange problem.

What I have to do with this.

INTERNAL ERROR: /home/andrii/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/asm2000 experienced a segmentation fault
                  while processing section .text:_USBHCDPipeFree file usbhostenum.asm line 4734
 
This is caused by a defect in the TI Assembler.
TI Customer Support may be able to suggest a workaround to avoid this.
 
Upgrading to the newest version of the compiler may fix this problem.
 
Contact TI in the E2E support forums at http://e2e.ti.com under
"Development Tools", "TI C/C++ Compiler".  See the link titled
"Submitting an issue".
 
We need to see this ENTIRE error message and a complete, reproducible
test case including ALL of the command-line options.
 

Best regards

Andrii Shevchuk

  • I send more detailed information
    Building file: "../F2837xD_common/usblib/host/usbhostenum.c"
    Invoking: C2000 Compiler
    "/home/andrii/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/cl2000" -v28 -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 -Ooff --opt_for_speed=5 --fp_mode=relaxed --fp_reassoc=off --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/Drivers" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/v2_10_00_00/include/vcu0" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/v2_10_00_00/include/vcu2" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_common/include/" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_headers/inc" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_headers/include" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/USB" --include_path="/home/andrii/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/include" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/USB/device" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_common/" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/v2_10_00_00/include/vcu2" --advice:performance=all -g --c++03 --define=CPU1 --define=DEBUG --define=FLASH --define=ccs_c2k --undefine=RAM --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on --ramfunc=off -k --asm_listing --preproc_with_compile --preproc_dependency="F2837xD_common/usblib/host/usbhostenum.d_raw" --obj_directory="F2837xD_common/usblib/host" "../F2837xD_common/usblib/host/usbhostenum.c"

    >> Compilation failure
    F2837xD_common/usblib/host/subdir_rules.mk:7: recipe for target 'F2837xD_common/usblib/host/usbhostenum.obj' failed

    INTERNAL ERROR: /home/andrii/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/asm2000 experienced a segmentation fault
    while processing section .text:_USBHCDPipeRead file usbhostenum.asm line 4263

    This is caused by a defect in the TI Assembler.
    TI Customer Support may be able to suggest a workaround to avoid this.

    Upgrading to the newest version of the compiler may fix this problem.

    Contact TI in the E2E support forums at http://e2e.ti.com under
    "Development Tools", "TI C/C++ Compiler". See the link titled
    "Submitting an issue".

    We need to see this ENTIRE error message and a complete, reproducible
    test case including ALL of the command-line options.

    gmake: *** [F2837xD_common/usblib/host/usbhostenum.obj] Error 1
    Building file: "../USB/host/usbhostenum.c"
    Invoking: C2000 Compiler
    "/home/andrii/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/cl2000" -v28 -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 -Ooff --opt_for_speed=5 --fp_mode=relaxed --fp_reassoc=off --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/Drivers" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/v2_10_00_00/include/vcu0" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/v2_10_00_00/include/vcu2" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_common/include/" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_headers/inc" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_headers/include" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/USB" --include_path="/home/andrii/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/include" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/USB/device" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_common/" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/v2_10_00_00/include/vcu2" --advice:performance=all -g --c++03 --define=CPU1 --define=DEBUG --define=FLASH --define=ccs_c2k --undefine=RAM --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on --ramfunc=off -k --asm_listing --preproc_with_compile --preproc_dependency="USB/host/usbhostenum.d_raw" --obj_directory="USB/host" "../USB/host/usbhostenum.c"
    1 Assembly Error, No Assembly Warnings

    >> Compilation failure
    USB/host/subdir_rules.mk:7: recipe for target 'USB/host/usbhostenum.obj' failed
    "usbhostenum.asm", ERROR! at line 14284: [E0002] Invalid mnemonic specification
    _AT_name("unsigned long long")


    Errors in Source - Assembler Aborted
    gmake: *** [USB/host/usbhostenum.obj] Error 1
  • For the source file usbhostenum.c, please follow the directions in the article How to Submit a Compiler Test Case.

    Thanks and regards,

    -George

  • Hello George

    I upgraded not only CCS from v6 to v9 but and Ubuntu as well. from 14.04 to 18.04 LTS.
    During project transfer from CCS v6 to CCS v9 I change some paths.

    Now I resolved the problem by renaming some folders and changing some paths accordingly.  
    The firmware runs properly. But I do not understand the causal relationship
    But nonetheless, I send you demanded information of the wrong configuration if you wish to investigate this certain case.

    CCS 9.0.1.00004

    C2800 Compiler Tools 18.12.1

    **** Build of configuration Debug for project KnockDetector ****

    /home/andrii/ti/ccs901/ccs/utils/bin/gmake -k -j 12 USB/host/usbhostenum.obj -O
     
    Building file: "../USB/host/usbhostenum.c"
    Invoking: C2000 Compiler
    "/home/andrii/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/cl2000" -v28 -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 -Ooff --opt_for_speed=5 --fp_mode=relaxed --fp_reassoc=off --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/Drivers" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/v2_10_00_00/include/vcu0" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/v2_10_00_00/include/vcu2" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_common/include/" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_headers/inc" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_headers/include" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/USB" --include_path="/home/andrii/ti/ccs901/ccs/tools/compiler/ti-cgt-c2000_18.12.1.LTS/include" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/USB/device" --include_path="/home/andrii/projects/Knock_Detector/P920740/trunk/900-Software/990-Source/src/F2837xD_common/" --advice:performance=all --symdebug:none --c++03 --preproc_with_compile --preproc_with_comment --define=CPU1 --define=DEBUG --define=FLASH --define=ccs_c2k --undefine=RAM --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on --ramfunc=off -k --asm_listing --obj_directory="USB/host"  "../USB/host/usbhostenum.c"
    Finished building: "../USB/host/usbhostenum.c"
     

    **** Build Finished ****

    Best Regards

    Andrii

    P.S.

    I had to change the file extension because  extension .pp is not permitedusbhostenum.txt

  • Andrii Shevchuk said:
    The firmware runs properly. But I do not understand the causal relationship
    But nonetheless, I send you demanded information of the wrong configuration if you wish to investigate this certain case.

    Thank you for sending in the test case.  I also get a clean build.  That being the case, I am unable to investigate further, and this thread is marked resolved.

    Thanks and regards,

    -George