Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366475

Summary: configuro generates a wrong linker.cmd when a tcf file is present
Product: [Technology] RTSC Reporter: Sasha Slijepcevic <sascha>
Component: ToolsAssignee: Sasha Slijepcevic <sascha>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: target:3.23.04
Attachments:
Description Flags
test project for the bug none

Description Sasha Slijepcevic CLA 2011-12-12 21:57:58 EST
Created attachment 208299 [details]
test project for the bug

If a TCF script is added to a RTSC project, and the project is built the following error output is displayed:
'Building file: ../app.cfg'
'Invoking: XDCtools'
"C:/ccsproducts/xdctools_3_23_00_32/xs" --xdcpath="C:/ccsproducts/bios_6_32_04_49/packages;" xdc.tools.configuro -o configPkg -t ti.targets.C64P -p ti.platforms.evm6424 -r release -c "C:/ccsv5/tools/compiler/c6000" --tcf "../app.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
gmake.exe: *** No rule to make target `package/cfg/app_p64P.xdl', needed by `linker.cmd'.  Stop.

The problem is caused by the mismatch in the name of the generated linker command file. The name in linker.cmd is package/cfg/app_p64P.xdl. The name used all through the generated package (and in package.mak) is package/cfg/app_x64P.xdl. I found that if I change the line 124 in xdc\tools\configuro\template\package.bld.xdt from '.p' to '.x' the problem is solved, but I am not sure if that's the right place for the fix.

I attached a CCSv5.1.0 project that demonstrates the problem. It contains empty config files, so it fails anyway in the config step even when the bug is fixed. Without the fix, it doesn't reach the config step.
Comment 1 Sasha Slijepcevic CLA 2012-05-04 17:09:42 EDT
- fixed in xdc-y26
Comment 2 Dave Russo CLA 2016-01-12 00:48:42 EST
closing bugs that have been in resolved state for more than a year
Comment 3 Dave Russo CLA 2016-02-17 18:42:27 EST
in fixed state for more than one year