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.

"../configPkg/linker.cmd" cannot find file Error SYS/BIOS

Other Parts Discussed in Thread: SYSBIOS

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. "

That was my first problem and 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? it seems Linker problem but i couldn't solve it. Thanks for help.

  • Hi,

    I'm thinking that the embedded spaces in the project name is giving you grief.

    Can you rename the project to something without spaces in the name nor its directory path and try again?

    Alan

  • Hi Alan,

    First of all Thanks for help, But it didnt solve my problem. I've been tried to solve this problem for 3 days.

    Any advice for this annoying problem? I have tried so many things but nothing worked.

  • Can you export and post your CCS project in a .zip file?

    Then I can try building it locally to see if I can diagnose the problem.

    Alan

  • 2728.Sample.rar

    This is the file i've worked with.

    I saw the same problem in other topics and many of them without solution.

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/148875/540192.aspx#540192

    in here Selcuk Bahtiyar says how he solved this problem, ı have added "hello.cfg" manually too. when i tried this it gives this CDT Build Console reply:

     

    ------------------------------------------------------------------------------------------------------------

    **** Build of configuration Debug for project Sample ****

    C:\ti\ccsv5\utils\bin\gmake -k all

    'Building file: ../hello.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" "../hello.cfg"

    making package.mak (because of package.bld) ...

    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...

    configuring hello.xem3 from package/cfg/hello_pem3.cfg ...

    clem3 package/cfg/hello_pem3.c ...

    'Finished building: ../hello.cfg'

    ' '

    'Building file: ../hello.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="hello.pp" --cmd_file="./configPkg/compiler.opt"  "../hello.c"

    'Finished building: ../hello.c'

    ' '

    'Building target: Sample.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"Sample.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 "Sample.out" -l"./configPkg/linker.cmd"  "./hello.obj" -l"libc.a" "../lm3s9d96.cmd"

    <Linking>

    'Finished building target: Sample.out'

    ' '

    **** Build Finished ****

     

    ------------------------------------------------------------------------------------------------

    New Errors are :

    Description Resource Path Location Type Unresolved symbol xdc_runtime_System_printf__E in file ./hello.obj .xdchelp /Sample 0 C/C++ Problem

    Description Resource Path Location Type Unresolved symbol ti_sysbios_BIOS_exit__E in file ./hello.obj .xdchelp /Sample 0 C/C++ Problem

    ---------------------------------------------------------------------------------------------------

    linker.cmd error has gone. But still have another problems. in log file yellow area can be the reason of new errors?

  • I have build a new project and only added hello.cfg manually and it has been builded succesfully. No need another process.