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

Bug 369984

Summary: Crash generating package.mak if (buggy) target fails to set cmds
Product: [Technology] RTSC Reporter: Chris Ring <cring>
Component: TargetsAssignee: Dave Russo <d-russo>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: d-russo, sascha
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: target:3.23.05

Description Chris Ring CLA 2012-01-27 13:01:34 EST
If an ITarget implementor [incorrectly] fails to set the .cmds field in the returned CommandSet (e.g. from link(), compile(), etc), the following error occurs:

js: "/db/rtree/install/trees/products/xdcprod/xdcprod-p32/product/Linux/xdctools_3_23_00_32/packages/xdc/bld/_gen.xs", line 2694: TypeError: Cannot call method"replace" of undefined

Though rare, this is confusing for target developers.
Comment 1 Dave Russo CLA 2012-06-04 14:45:53 EDT
added check for null cmds; if they are null or undefined, no rules are generated and a warning is written to stderr:
    Warning: target 'foo.bar' didn't supply any commands for 'toto.o66'

fixed in xdc-z17 and xdc-y28 (xdctools 3.23 and 3.25)
Comment 2 Dave Russo CLA 2016-01-12 00:49:04 EST
closing bugs that have been in resolved state for more than a year
Comment 3 Dave Russo CLA 2016-02-17 18:42:45 EST
in fixed state for more than one year