| Summary: | Config crash when XDCBUILDCFG assigned a file with a space in its path | ||
|---|---|---|---|
| Product: | [Technology] RTSC | Reporter: | Chris Ring <cring> |
| Component: | Core | Assignee: | Sasha Slijepcevic <sascha> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | amitm, d-russo |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | target:3.21 | ||
|
Description
Chris Ring
I could replicate the error message as written in the first comment only if XDCBUILDCFG is supplied on the command line without quotes as: C:\rtsc>"C:/Program Files/Texas Instruments/xdctools_3_21_00_10_eng/xdc" XDCBUILDCFG=C:/Program Files/Texas Instruments/config.bld Chris, if the actual use case is different please let me know. However, even if XDCBUILDCFG is quoted, the build still fails with a similar error message. (In reply to comment #1) > I could replicate the error message as written in the first comment only if > XDCBUILDCFG is supplied on the command line without quotes as: > C:\rtsc>"C:/Program Files/Texas Instruments/xdctools_3_21_00_10_eng/xdc" > XDCBUILDCFG=C:/Program Files/Texas Instruments/config.bld > > Chris, if the actual use case is different please let me know. > > However, even if XDCBUILDCFG is quoted, the build still fails with a similar > error message. I believe the customer's use case was when XDCBUILDCFG was assigned to a relative build script when run from a directory that contains a space. For example: C:\Program Files\foo> xdc XDCBUILDCFG=./_config.bld I detected three cases in which a space in XDCBUILDCFG breaks the build. If config.bld is in C:/Program Files/Texas Instruments, and the package being built is in C:/Program Files/Texas Instruments/myRepo/myPkg, these are the cases: 1. cd myRepo; xdc XDCBUILDCFG=../config.bld -PR . That was the most likely the use case reported by the customer. 2. cd myRepo; xdc XDCBUILDCFG="../../Texas Instruments/config.bld" -PR . 3. cd myRepo/myPkg; xdc XDCBUILDCFG="../../../Texas Instruments/config.bld" The testcases for all three use cases will be available in xdctest-b02, in src/gmaketests/xdcbuildcfg/windows. The fix that solves all three cases described in Comment 3 is available in xdc-w07. The changes are in xdc_top.mak and xdc_rules.mak, and they mainly consist of calling path2dos executable on $XDCBUILDCFG whenever a space in XDCBUILDCFG may be important. The fix is therefore limited to Windows. Reproduced problem with XDCtools 3.20.07.86. Tried to build an application with a relative path to the "config.bld" script kept in a folder with spaces. Got the error has described in the bug report. Build worked fine with XDCtools 3.21.00.48-eng. Reviewed code to confirm the fix. Shipped in XDCtools 3.21. Shipped in XDCtools 3.21 |