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.

PROCESSOR-SDK-J784S4: Cg7x compiler crash

Part Number: PROCESSOR-SDK-J784S4


Tool/software:

Hi,

I encountered a CGT 4.1.0 C++ compiler crash. I was able to reduce the source code so I may include it here 100

cg7x, cross compiling from Linux to C7X, ends with a "segmentation violation" with no other information. As the compilation is pretty long for a small source code, I guess the compiler goes in a deep recursion or something.c7x_segv.cpp

  • Adding a "Makefile.txt"

    # CGT C++ Cmpiler crash
    #		make: *** [<builtin>: c7x_segv.o] Segmentation fault (core dumped)
    
    
    # Intall paths of CGT and SDK
    C7XHOME       := .../ti-cgt-c7000_4.1.0.LTS
    SDK_DIR       := .../ti-processor-sdk-rtos-j784s4-evm-09_02_00_05
    
    PDK_DIR       := $(SDK_DIR)/pdk_j784s4_09_02_00_30/packages
    
    PATH		:= $(PATH):$(C7XHOME)/bin
    export PATH
    
    
    CC			 = cl7x
    CXX			 = cl7x
    
    CPPFLAGS	 = -DSOC_J784S4 \
    			   -DBUILD_C7X \
    			   -DBUILD_C7X_1 \
    			   -DFREERTOS \
    			   -DA72_LINUX_OS  \
    			   -Dj784s4_evm=j784s4_evm \
    				-I$(C7XHOME)/include \
    				$(addprefix -I$(PDK_DIR)/, . \
    					ti/kernel \
    					ti/kernel/freertos/FreeRTOS-LTS/FreeRTOS-Kernel/include \
    					ti/kernel/freertos/config/j784s4/c7x \
    					ti/kernel/freertos/portable/TI_CGT/c7x \
    					ti/csl/arch/c7x) \
    				-Icommon
    
    comflags	 = --emit_warnings_as_errors \
    				--opt_level=3 --opt_for_speed=5 --advice:performance \
    				--symdebug:none \
    				-pds=238 -pds=880 -pds1110 \
    				-mv7120 --abi=eabi -q -mo -pden \
    				--endian=little
    
    CXXFLAGS	 = --c++14 $(CPPFLAGS) $(comflags)
    
    
    all: c7x_segv.o
    
    clean:
    	/bin/rm -f *.obj
    
    
    c7x_segv.o: c7x_segv.cpp
    

  • Thank you for notifying us of this behavior, and for providing a concise test case.  I am able to reproduce the same behavior.  I filed the entry EXT_EP-11966 to have this investigated.  You are welcome to follow it with that link.

    Thanks and regards,

    -George