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.
Hi,
I am using Version: 5.2.1.00018. When i try to make a new project with SYSBIOS (standart hello example), When i tried to build, it gives me this error. When i looked into std.h with Right click-> Open declaration file everything seems ok. I was using Code Composer v4 before and it still loaded in my computer. Problem can be related with this? I've tried the solve the problem for 3 hours. Thanks for help.
I have added c/c++ General / Paths and Symbols/ Includes directory of xdctools , BIOS and ccs_base and now it gives another errors not xdc/std.h missing. Copy and paste from CDT Build Console :
**** Build of configuration Debug for project SYS 1 ****
C:\ti\ccsv5\utils\bin\gmake -k all
'Building file: ../app.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_23_03_53/xs" --xdcpath="C:/ti/bios_6_33_05_46/packages;C:/ti/ccsv5/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.stellaris:LM3S9D96 -r release -c "C:/ti/ccsv5/tools/compiler/tms470_4.9.5" --compileOptions "-g --optimize_with_debug"
Usage: xs xdc.tools.configuro [--help]
[-v | -q]
[-@ optionsfile]
[-o outdir]
[-b config_bld | -c codegen_dir | --cb]
[-t target] [-p platform[:instance]] [-r profile]
[-Dname=value]
[-w | -x regexp]
[--rtsName pkg_name]
[--cfgArgs args_string]
[--linkTemplate linker_template]
[--tcf] [--bios5] [--pkg] [--generationOnly]
[--compileOptions compile_options_string]
[--oc compiler.opt] [--ol linker.cmd]
infile.cfg
'Finished building: ../app.cfg'
' '
'Building file: ../main.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M3 --code_state=16 --abi=eabi -me -g --include_path="C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --include_path="C:/ti/xdctools_3_23_03_53/packages" --include_path="C:/ti/bios_6_33_05_46/packages" --include_path="C:/ti/ccsv5/ccs_base" --diag_warning=225 --display_error_number --preproc_with_compile --preproc_dependency="main.pp" --cmd_file="./configPkg/compiler.opt" "../main.c"
>> ERROR: Cannot open command file './configPkg/compiler.opt': No such file or directory
'Finished building: ../main.c'
' '
'Building target: SYS 1.out'
'Invoking: ARM Linker'
"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/bin/cl470" -mv7M3 --code_state=16 --abi=eabi -me -g --diag_warning=225 --display_error_number -z --stack_size=256 -m"SYS 1.map" --heap_size=0 -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/lib" -i"C:/ti/ccsv5/tools/compiler/tms470_4.9.5/include" --reread_libs --warn_sections --display_error_number --rom_model -o "SYS 1.out" -l"./configPkg/linker.cmd" "./main.obj" -l"libc.a" "../lm3s9d96.cmd"
<Linking>
error #10008-D: cannot find file "./configPkg/linker.cmd"
>> Compilation failure
undefined first referenced
symbol in file
--------- ----------------
ti_sysbios_BIOS_start__E ./main.obj
ti_sysbios_knl_Task_sleep__E ./main.obj
xdc_runtime_System_printf__E ./main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "SYS 1.out" not built
gmake: *** [SYS 1.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
------------------------------------------------------------------------------
Errors are :
Description Resource Path Location Type #10008-D cannot find file "./configPkg/linker.cmd" SYS 1 C/C++ Problem
Description Resource Path Location Type #10010 errors encountered during linking; "SYS 1.out" not built SYS 1 C/C++ Problem
Description Resource Path Location Type <a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a> unresolved symbols remain SYS 1 C/C++ Problem
Description Resource Path Location Type Unresolved symbol ti_sysbios_BIOS_start__E in file ./main.obj .xdchelp /SYS 1 0 C/C++ Problem
Description Resource Path Location Type Unresolved symbol ti_sysbios_knl_Task_sleep__E in file ./main.obj .xdchelp /SYS 1 0 C/C++ Problem
Description Resource Path Location Type Unresolved symbol xdc_runtime_System_printf__E in file ./main.obj .xdchelp /SYS 1 0 C/C++ Problem
What is the Problem?
Hi Yasin,
from a first look at your symptoms, it looks like you have the correct idea - checking the include paths and options, however seem to have found your way to the eclipse version of the options rather than the ccs version.
Have a look at this wiki and make sure you add/correct the include paths and variables as shown there.
http://processors.wiki.ti.com/index.php/Include_paths_and_options
Please keep us informed.
Best Regards,
Lisa
I'm little bit confused.
When i looked C/C++ build everything seem normal. (ex. Paths for system variable or XDC Tools settings in CCS Build -> XDC Tools)
When i tried to build - cannot find the file "./configPkg/Linker.cmd"... where is the exact path for these. How can i define it? Why it say Linker.cmd is missing?
Hi Yasin,
the message means CCS can not find the file, it does not mean the file is missing. Please have a look at the wiki I sent and use those include paths and options.
Please keep us informed.
Best Regards,
Lisa
I have found the solution adding .cfg file manually. Old one is like that :
--compileOptions "-g --optimize_with_debug"
after adding .cfg manually :
--compileOptions "-g --optimize_with_debug" "../project.cfg"
it gives no error like that. But actually Why i have to add this manually.
Hi Yasin,
this is possibly becuase the .cfg was not in the project or properly included? It may also have to do with your settings and the way you build. At any rate, I am happy to see you found a work around and all the best with development.
Best Regards,
Lisa