Troubleshooting
Problem
This technote provides a script that resolves an error that might occur when performing a makefile generation in IBM Rational Rose RealTime.
Symptom
One of these two errors might occur:
Error: The name of this class (from component 'Component View::ALibrary') is not unique in component 'Component View::TopExecutable'
NMAKE : fatal error U1077: 'rtcppgen' : return code '0x3'
Or...
Error: Name [Logical View::A] collides with [Logical View::A]
!> Generating Makefiles for C
NMAKE : fatal error U1077: 'rtcppgen' : return code '0x3'
Resolving The Problem
When this error is encountered, a component exists with dependencies on two or more library components which reference the same element from the Logical View package.
For example: class A is referenced in component LibraryA and component LibraryB. These libraries build independently. If a component has a dependency on component LibraryA and component LibraryB the error will be encountered.
There are different ways of dealing with this problem. Using the example above:
- Remove class A from the references of both LibraryA and LibraryB. Create a new library referencing class A which will have LibraryA and LibraryB as dependents.
- Remove class A from the references of either LibraryA or LibraryB. Create a dependency from the library component that no longer references the class to the library component that still references the class.
Please note:
To find out which components reference an element, navigate to the element and bring up the specification for the element. Look at the Components tab for the element. A component that references the element will show up with a red check mark next to the component name.
Some components reference the containing package, in which case, you will have to check the Components tab of each package in the containment hierarchy. A red check mark will not show up next to the component in the elements specification. Using the drop down button "Browse > Browse Parent" can be a quick way of navigating through the containment hierarchy.
For first error referenced in the Symptom section of this technote, the name of the logical view element is not given. The references of all the components must be checked for duplicates.
The attached script can be used to determine elements in the build chain that are referenced more than once either directly or indirectly through packages.
The attached file is an .ebs file, a Rose Realtime script file that you need to run from Rose Realtime.
To run the script:
1. Start Rational Rose RealTime.
2. Open your model.
3. Click Tools > Open Script.
4. Browse to the .ebs file and open.
5. Click Start ( green arrowhead) to execute the script.
Historical Number
24098
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21125898