2.1 Understanding diagnostics

All the tools in the ARM® Compiler 6 toolchain produce detailed diagnostic messages, and let you control how much or how little information is output.

The format of diagnostic messages and the mechanisms for controlling diagnostic output are different for armclang than for the other tools in the toolchain.

Message format for armclang

armclang produces messages in the following format:

file:line:col: type: message

where:

file

The filename that generated the message.

line

The line number that generated the message.

col

The column number that generated the message.

type

The type of the message, for example error or warning.

message

The message text.

For example:

hello.c:7:3: error: use of undeclared identifier 'i'
i++;
^
1 error generated.

Message format for other tools

The other tools in the toolchain (such as armasm and armlink) produce messages in the following format:

type: prefix id suffix: message_text

Where:

type

is one of:

Internal fault

Internal faults indicate an internal problem with the tool. Contact your supplier with feedback.

Error

Errors indicate problems that cause the tool to stop.

Warning

Warnings indicate unusual conditions that might indicate a problem, but the tool continues.

Remark

Remarks indicate common, but sometimes unconventional, tool usage. These diagnostics are not displayed by default. The tool continues.

prefix

indicates the tool that generated the message, one of:

  • A - armasm
  • L - armlink or armar
  • Q - fromelf
id

a unique numeric message identifier.

suffix

indicates the type of message, one of:

  • E - Error
  • W - Warning
  • R - Remark
message_text

the text of the message.

For example:

Error: L6449E: While processing /home/scratch/a.out: I/O error writing file '/home/scratch/a.out': Permission denied
Non-ConfidentialPDF file icon PDF versionARM 100066_0608_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.