Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315822 - Errant xdc.runtime dependency during config
Summary: Errant xdc.runtime dependency during config
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Dave Russo CLA
QA Contact:
URL:
Whiteboard: target:3.20.01,3.16.04
Keywords:
Depends on:
Blocks: 316403
  Show dependency tree
 
Reported: 2010-06-04 15:29 EDT by Chris Ring CLA
Modified: 2010-10-29 19:37 EDT (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 2010-06-04 15:29:43 EDT
The xdc.runtime package is _always_ imported during configuration.  Why?  To generate Rta data:

    var Rta = xdc.module('xdc.runtime.Rta');
    Rta.genRta(prefix + ".rta.xml");

These statements should probably be bracketed by:
    if ("xdc.runtime" in xdc.om) {
    }

as is done in other parts of xdc.cfg.

Executables that don't require the xdc.runtime shouldn't have a dependency on it.
Comment 1 Sasha Slijepcevic CLA 2010-06-11 12:52:42 EDT
The package xdc.runtime ended up in 3.16 configurations in two ways. First, the app was not setting rtsName to 'null', and second, the call to xdc.runtime.finalize() in xdc.cfg.Main.xs wasn't checking if xdc.runtime is loaded in the configuration at all. The second problem was fixed in 3.20 in xdc-v20, rev. 882 in svn, and now it's applied in xdc-u18 for 3.16.04.
The first problem is a user's error.
Comment 2 Amit Mookerjee CLA 2010-06-11 17:10:56 EDT
Built a BIOS5 application using XDCtools 3.16.03.36. Command line build was used using the 'xdc' tool.The 'rtsName' field of 'Executable.Attrs' is set to null in the 'package.bld' script. The 'package.ext.xml' file of the released package had a reference to 'xdc.runtime'.

Rebuilt application using XDCtools 3.16.04.38-eng. There was no reference to 'xdc.runtime' in 'package.ext.xml'.
Comment 3 Dave Russo CLA 2010-06-11 17:12:00 EDT
Verified with XDCtools 3.16.04.38-eng
Comment 4 Dave Russo CLA 2010-10-29 19:37:00 EDT
3.20.02 and 3.16.05 are available here:http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/