Community
Participate
Working Groups
My CCS workspace is C:\Documents and Settings\a0868339\My Documents\workspace\. When I build a project there, with a following line in the config script: xdc.module("xdc.cfg.SourceDir").outputDir = "../src"; I get the following error: error: xdc.cfg.SourceDir: "E:/XDCtools installs/xdctools_3_22_00_08_eng/packages/xdc/cfg/SourceDir.xs", line 122: xdc.cfg.SourceDir : Build of generated source libraries failed: exit status = 2: gmake[1]: C:\Documents: No such file or directory When I use an absolute path with spaces for 'outputDir', I get the following error: ../src/makefile.libs:22: *** "ERROR: GEN_SRC_DIR must be set to the directory containing the generated sources". I checked what's in that file, and the line that fails is: GEN_SRC_DIR ?= ../../src When I edited the line to GEN_SRC_DIR ?= ../src the build worked.
The second problem with the absolute path happens when 'outputDir' points to a project directory, for example "C:/Documents and Settings/a0868339/My Documents/workspace/M3closure/src" for the project M3closure. However, the error does not show up if the 'outputDir' is inside 'Debug' or 'Release' direcotry, for example "C:/Documents and Settings/a0868339/My Documents/workspace/M3closure/Debug/src"
Moved to 3.22.02
There are several problems configuring SourceDir.outputDir in CCS projects: 1. the makefile.defs assumes the directory is ./src so changes to outputDir must be matched with changes to makefile.defs 2. setting outputDir is not enough to handle the CCS project build working directory which is in ./Debubg or ./Release, ... You must also set SourceDir.toBuildDir 3. finally, there is a bug in the command executed by SourceDir to build the generated sources and in the generated makefile: they do not handle directories with spaces in the absolute path to the outputDir. The last problem was "fixed" by replacing directories with spaces by Windows 8.3 names.
fixed in r 1455 (to be xdc-x16)
closing "ancient" resolved bugs