Community
Participate
Working Groups
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.
The problem is that file names should use '/' not '\' to separate directories.
(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.
The problem is that java.io.File.separator is a backslash which either needs to be properly quoted or replaced with a forward slash.