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/TMS320F28379D: Git Syncing Issues; Unable to compile the program; gmake error

Part Number: TMS320F28379D


Tool/software: Code Composer Studio

All, good day.

I am unable to compile my C2000 code. I have used the same lab file I found in the workshop series (https://training.ti.com/c2000-f2837xd-microcontroller-workshop?context=1137791-1137781) and started manipulating the code to make it compatible with my project. I was  basically trying to sync the folder with a remote repository by terminal manipulations. The git repository I am connecting to, is also written by editing the same lab example file. The file compiles on the local repository properly but fails to compile when I just copy all the files from that remote repo (having the copy that works) into my computer's same lab file. I have absolutely no clue as to why this is happening. 

The error message reads:

gmake: *** [new_dc-dc-node_firmware/cpu01/F2837xD_Adc.obj] Error 1
gmake: Target 'all' not remade because of errors.

I have attached the file structure and the project properties window for your reference.

The following is my folder structure. The git, whenevr it clones the repo, generates cpu01 file within another folder. Dont know if that is a problem.

The project properties pane is shown below:

I'd appreciate any help regarding this matter.

Thank you.

-Kartikeya

  • Hi Kartikeya,

    Can you send the full compilation log? 

  • Hi Santosh,

    Here you go:


    **** Build of configuration Debug for project Lab6 ****

    /home/kartikeya/ti/ccsv8/utils/bin/gmake -k -j 4 all -O
     
    Building file: "../new_dc-dc-node_firmware/cpu01/F2837xD_Adc.c"
    Invoking: C2000 Compiler
    "/home/kartikeya/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.12.6.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --include_path="/home/kartikeya/workspace_v8/Lab6" --include_path="/home/kartikeya/ti/Labs/F2837xD_headers/include" --include_path="/home/kartikeya/ti/Labs/Lab_common/include" --include_path="/home/kartikeya/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.12.6.LTS/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="new_dc-dc-node_firmware/cpu01/F2837xD_Adc.d_raw" --obj_directory="new_dc-dc-node_firmware/cpu01"  "../new_dc-dc-node_firmware/cpu01/F2837xD_Adc.c"
     
    >> Compilation failure
    new_dc-dc-node_firmware/cpu01/subdir_rules.mk:7: recipe for target 'new_dc-dc-node_firmware/cpu01/F2837xD_Adc.obj' failed
     
    INTERNAL ERROR: /home/kartikeya/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.12.6.LTS/bin/ac2000 experienced a segmentation fault
                      while processing function (unknown or file scope) file (unknown) line 0
     
    This is caused by a defect in the TI C/C++ Parser.
    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.
    Include the .pp file created by option --preproc_with_comment
     
    gmake: *** [new_dc-dc-node_firmware/cpu01/F2837xD_Adc.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    
    

    Regards,
    Kartikeya

  • Kartikeya,

    Looks like there is an issue in compiler. It is seeing segmentation fault.

    Can you reinstall the latest compiler? If possible, I will recommend to install latest CCS (10.1.x) and it will automatically install latest compiler.

  • Hi Santosh,

    The compiler is able to compile similar lab files without the git repo in them without a problem. It is only not compiling for this lab that has git in it. I am thinking it is a linker file problem. But am not sure.

    Regards,

    kartikeya 

  • For the variant of the file F2837xD_Adc.c which fails to build, please follow the directions in the article How to Submit a Compiler Test Case.

    Thanks and regards,

    -George