IBM Support

Instrumentor failed with error "too few template-parameter-lists"

Troubleshooting


Problem

Instrumenting source code with IBM Rational Test RealTime leads to error related to template .

Symptom

When you instrument source code, you get the following error message.

compilation of /test/TSource_aug.cc to /test/TSource_aug.o

/test/TSource_aug.cc:1730: error: too few template-parameter-lists

/test/TSource_aug.cc:1731: error: too few template-parameter-lists

Cause

This error might occur, when you use the Runtime Tracing component.

Resolving The Problem

Removing this error depends on if you need to use the Runtime Tracing component or not. In both situation you have three options to make the corrections.

  • Through the graphical user interface (GUI).

  • Through the command-line tools.

  • Through the code composer plugin.



  • Your need the Runtime Tracing component

    Turn off the "template note" feature. To turn off this feature do one of the following:

    THROUGH THE GUI
    1. Go to the setting dialog box.

    2. Click Runtime Analysis > Runtime Tracing > "Instrumentation control.

    3. Set "Display one note for class template instances" to "No".








    THROUGH COMMAND-LINE TOOLS


      Add the option "-no_template_note" to the instrumentor command line



    THROUGH CODE COMPOSER PLUGIN

    1. Go to the menu Tools" > Rational Test RealTime > "Runtime Options.

    2. Add the option -no_template_note in the field Other Options in the dialog box.



  • You are NOT interested in the Runtime Tracing component

    The solution consist of disabling this component.


  • THROUGH THE GUI


    1. Go to the setting dialog box.

    2. Click click on the "..." icon

    3. Clear the Runtime Tracing option in the section Build > Build options > Build options.










    THROUGH COMMAND-LINE TOOLS


      Remove the option "-trace" from the instrumentor from the command line.





    THROUGH CODE COMPOSER PLUGIN


    1. Go to the menu Tools > Rational Test RealTime > Runtime Analysis Options.

    2. Clear the "Runtime Tracing" option in the dialog box.

[{"Product":{"code":"SSSHUF","label":"Rational Test RealTime"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Runtime Analysis: C++","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF027","label":"Solaris"},{"code":"PF016","label":"Linux"},{"code":"PF010","label":"HP-UX"},{"code":"PF002","label":"AIX"}],"Version":"8.0;7.5.0.6;7.5.0.2;7.5.0.5;7.5.0.3;7.5.0.4;7.5.0.1;7.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21584931