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: Segmentation fault while compiling the TI-RTOS source for AM57xx



Tool/software: TI C/C++ Compiler

INTERNAL ERROR: /home/sunny/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armasm experienced a segmentation fault while processing section .text:PCIETrafficCtrl file /home/sunny/project/kgr/am57xx_dsp/tirtos/install/pdk_am57xx_1_0_5/packages/ti/binary/ti/csl/obj/am572x/m4/release/pcie.sem4 line 313

This is caused by a defect in the compiler itself. 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.

  • Unfortunately, I cannot reproduce this error.  So I cannot explain what happened.

    I'm not familiar with the PDK you are building.  But I did download it, and I built the CSL part of it in a failed attempt to reproduce the problem.  So I know enough to suggest a method you can use to send a test case which should allow us to reproduce the problem.

    I presume you have just completed the failed make that ends with the above diagnostic.  Add this environment variable setting to your system ...

    TI_ARM_C_OPTION=--preproc_with_comment --preproc_with_compile

    Then run the make again.  The build will fail as before.  But it will create a pcie.pp file.  It will be in the same directory as the pcie.c source file, something similar to ...

    /home/sunny/project/kgr/am57xx_dsp/tirtos/install/pdk_am57xx_1_0_5/packages/ti/csl/src/ip/pcie/V1/priv/pcie.pp

    Attach that file to your next post.  Also show the full command string exactly as the compiler sees it.

    For more background on the method just described ...  Documentation on the TI_ARM_C_OPTION environment variable is in the ARM compiler manual.  Information on preprocessing C files for a test case is in the wiki article Preprocess Complex Source Code for Bug Submissions.

    Thanks and regards,

    -George