Tool/software: TI C/C++ Compiler
The Code inside this repository led to a segmentation fault.
This Code compile under VisualStudio19 and with the GNU v7.2.1 (provided with Code Composer Studio)
This is the .pp file: 1drv.ms/.../s!AqJ2WVYwAYEujN4eKALwMjSX0V-bnA
This is the output:
**** Build of configuration Debug__TI for project comtest **** "C:\\ti\\ccs910\\ccs\\utils\\bin\\gmake" -k -j 8 all -O Building file: "../tm4c1294ncpdt_startup_ccs.c" Invoking: ARM Compiler "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O0 --include_path="C:/Users/mathi/workspace_v9/comtest" --include_path="C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.3.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --c11 --c++14 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="tm4c1294ncpdt_startup_ccs.d_raw" "../tm4c1294ncpdt_startup_ccs.c" Finished building: "../tm4c1294ncpdt_startup_ccs.c" Building file: "../main.cpp" Invoking: ARM Compiler "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O0 --include_path="C:/Users/mathi/workspace_v9/comtest" --include_path="C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.3.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --c11 --c++14 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.cpp" >> Compilation failure subdir_rules.mk:9: recipe for target 'main.obj' failed "C:/Users/mathi/workspace_v9/comtest/comms/details/message_check.h", line 164: warning #1-D: last line of file ends without a newline "C:/Users/mathi/workspace_v9/comtest/comms/details/DispatchMsgIdRetrieveHelper.h", line 91: warning #1-D: last line of file ends without a newline "../main.cpp", line 34: warning #112-D: statement is unreachable INTERNAL ERROR: C:\ti\ccs910\ccs\tools\compiler\ti-cgt-arm_18.12.3.LTS\bin\armopt.exe experienced a segmentation fault while processing function <unknown> file C:\\Users\\mathi\\AppData\\Local\\Temp\\{D04CADB2-C408-4889-B414-F25F34A68380} This is caused by a defect in the TI C/C++ Optimizer. 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: *** [main.obj] Error 1 Building file: "../Handler.cpp" Invoking: ARM Compiler "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.3.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me -O0 --include_path="C:/Users/mathi/workspace_v9/comtest" --include_path="C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.3.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --c11 --c++14 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="Handler.d_raw" "../Handler.cpp" "C:/Users/mathi/workspace_v9/comtest/comms/details/message_check.h", line 164: warning #1-D: last line of file ends without a newline "C:/Users/mathi/workspace_v9/comtest/comms/details/DispatchMsgIdRetrieveHelper.h", line 91: warning #1-D: last line of file ends without a newline Finished building: "../Handler.cpp" gmake: Target 'all' not remade because of errors. **** Build Finished ****