Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332802 - Cannot use 'linkTemplate' configuration parameter of xdc.cfg.Program in Windows
Summary: Cannot use 'linkTemplate' configuration parameter of xdc.cfg.Program in Windows
Status: CLOSED INVALID
Alias: None
Product: RTSC
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Russo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 18:05 EST by Amit Mookerjee CLA
Modified: 2011-11-25 19:29 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Mookerjee CLA 2010-12-16 18:05:03 EST
Steps to reproduce problem
--------------------------
1. Create SYS/BIOS project in CCS4.2 with XDCtools 3.21.0.27-eng
2. Add a linker template named 'linker.xdt' to the project
3. Add the following line to the configuration script:

Program.linkTemplate = xdc.csd() + java.io.File.separator + "linker.xdt";

4. On project build the following error is seen:

js: "$$Template$exec", line 1: xdc.services.global.XDCException: xdc.FILE_NOT_FOUND: can't locate file 'C:Documents and Settingsa0876492My Documentsworkspaceda830linker.xdt' along the path: C:/Program Files/Texas Instruments/ccs4_2/xdctools_3_21_00_27_eng/packages/xdc/cfg/;C:/PROGRA~1/TEXASI~1/bios_6_30_03_46/packages;C:/PROGRA~1/TEXASI~1/ccs4_2/ipc_1_21_02_23/packages;C:/DOCUME~1/a0876492/myRepository/packages;C:/PROGRA~1/TEXASI~1/ccs4_2/xdctools_3_21_00_27_eng/packages;..;
gmake.exe: *** [package/cfg/hello_p674.xdl] Error 1
gmake.exe: *** Deleting file `package/cfg/hello_p674.xdl'
gmake.exe: *** [package/cfg/hello_p674.xdl] Deleting file `package/cfg/hello_p674.h'
gmake.exe: *** [package/cfg/hello_p674.xdl] Deleting file `package/cfg/hello_p674.c'
js: "C:/Program Files/Texas Instruments/ccs4_2/xdctools_3_21_00_27_eng/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
C:\Program Files\Texas Instruments\ccs4_2\ccsv4\utils\gmake\gmake: *** [configPkg/compiler.opt] Error 1


This problem is not observed on Linux.
Comment 1 Dave Russo CLA 2010-12-16 18:57:33 EST
The problem is that file names should use '/' not '\' to separate directories.
Comment 2 Dave Russo CLA 2010-12-16 20:39:15 EST
(In reply to comment #1)
> The problem is that file names should use '/' not '\' to separate directories.

Shouldn't xdc.csd() give the path name with the right platform specific separators? That way we can keep the same config file in multiple platforms.
Comment 3 Dave Russo CLA 2011-11-25 19:29:28 EST
The problem is that java.io.File.separator is a backslash which either needs to be properly quoted or replaced with a forward slash.