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/EK-TM4C1294XL: Illegal source/input character

Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: TEST2, TM4C1294NCPDT

Tool/software: TI C/C++ Compiler

Hi, I'm trying to compile some code and am getting warnings/errors about illegal source/input characters in the object file. I can't find anywhere online what this could be caused by,

Does anyone have any suggestions on what I need to change to get it to compile?
I've included the build output below. 


**** Build of configuration Debug for project Test2 ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O
'Building file: ../TestFunction_ert_rtw/TestFunction.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.3.156" --define=ccs="ccs" --define=TARGET_IS_TM4C129_RA0 --define=PART_TM4C1294NCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="TestFunction_ert_rtw/TestFunction.d" --obj_directory="TestFunction_ert_rtw" "../TestFunction_ert_rtw/TestFunction.c"
'Finished building: ../TestFunction_ert_rtw/TestFunction.c'
' '
'Building file: ../TestFunction_ert_rtw/ert_main.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.3.156" --define=ccs="ccs" --define=TARGET_IS_TM4C129_RA0 --define=PART_TM4C1294NCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="TestFunction_ert_rtw/ert_main.d" --obj_directory="TestFunction_ert_rtw" "../TestFunction_ert_rtw/ert_main.c"
'Finished building: ../TestFunction_ert_rtw/ert_main.c'
' '
'Building target: Test2.out'
'Invoking: ARM Linker'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --define=ccs="ccs" --define=TARGET_IS_TM4C129_RA0 --define=PART_TM4C1294NCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"Test2.map" --heap_size=0 --stack_size=512 -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="Test2_linkInfo.xml" --rom_model -o "Test2.out" "./tm4c1294ncpdt_startup_ccs.obj" "./TestFunction_ert_rtw/TestFunction.obj" "../TestFunction_ert_rtw/TestFunction.obj" "./TestFunction_ert_rtw/ert_main.obj" "./TestFunction_ert_rtw/gpiotest.obj" "../TestFunction_ert_rtw/gpiotest.obj" "../tm4c1294ncpdt.cmd" -llibc.a -l"C:/ti/TivaWare_C_Series-2.1.3.156/driverlib/ccs/Debug/driverlib.lib"
<Linking>
"../TestFunction_ert_rtw/TestFunction.obj", line 1: warning #19034-D: illegal source character: 0x86
"../TestFunction_ert_rtw/TestFunction.obj", line 1: warning #19034-D: illegal source character: 0x03
"../TestFunction_ert_rtw/TestFunction.obj", line 1: error #10045-D: illegal input character: 0xffffff86
"../TestFunction_ert_rtw/gpiotest.obj", line 1: warning #19034-D: illegal source character: 0x86
"../TestFunction_ert_rtw/gpiotest.obj", line 1: warning #19034-D: illegal source character: 0x03
"../TestFunction_ert_rtw/gpiotest.obj", line 1: error #10045-D: illegal input character: 0xffffff86
error #10010: errors encountered during linking; "Test2.out" not built

>> Compilation failure
makefile:149: recipe for target 'Test2.out' failed
gmake[1]: *** [Test2.out] Error 1
makefile:145: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

  • The linker is attempting to read those files as if they were linker command files. They are either corrupted or are not actually object files.
    Why do you have both "./TestFunction_ert_rtw/TestFunction.obj" and "../TestFunction_ert_rtw/TestFunction.obj" in the link step? (notice the difference between . and .. at the start of the filenames).

    I suspect there is an earlier problem; perhaps some compiler option is set to create a .c file when it should be creating an .obj file or something to that effect. Please rebuild the entire project and send us the complete console build window.
  • Hi, I actually have the same problem while compiling my code on CCS, there are 104 errors on illegal sources/input characters. I've been struggling to fix the errors. I know the problem must be in the linker part but I've attached every related functions and libraries already. I'm just wondering if you guys ok with me sending the errors over :(. Thank you so much.
  • Sure; please be sure to send the exact error messages; it's best to just send us the whole contents of the build console window.