Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369984 - Crash generating package.mak if (buggy) target fails to set cmds
Summary: Crash generating package.mak if (buggy) target fails to set cmds
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Targets (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Russo CLA
QA Contact:
URL:
Whiteboard: target:3.23.05
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-27 13:01 EST by Chris Ring CLA
Modified: 2016-02-17 18:42 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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