IBM Support

Instrumentor fails on assembly code syntax: ERROR: syntax error near volatile

Troubleshooting


Problem

This technote explains how to resolve a Preprocessing error. This error might occur, when you instrument code in IBM Rational Test RealTime.

Symptom

You instrument code, that contains assembly code. Then the instrumentor fails with the following error.


code.c: Preprocessing...
cc -E -mcpu=30F6014A -I"..\include" "code.c" > "instr\code.i"
code.c: Instrumenting using TDP "C ASM" in "C:\PROGRA~1\Rational\TESTRE~1\targets\CASM"...
C:\PROGRA~1\Rational\TESTRE~1\bin\intel\win32\attolcc1 "instr\code.i" "instr\code._aug.c" atct.def -noinstrdir="C:\PROGRA~1\Rational\TESTRE~1\targets\instr\CASM" -proc=ret -block=logical -trace -studio_log="..\projet\intermediates_files300384607.log"
---
TestRT attolcc1 - ERROR: syntax error near volatile [C:\CODE.C,765]
TestRT attolcc1 - ERROR: syntax error near 0x4004 [C:\CODE.C,768]
TestRT attolcc1: Cannot recover from earlier errors ...
Failed.

[{"Product":{"code":"SSSHUF","label":"Rational Test RealTime"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Runtime Analysis: C","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.5;7.0.5.1;7.5;7.5.0.1","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
16 June 2018

UID

swg21395031