Next | Prev | Up | Top | Contents | Index

Compilation Messages

Because they are two separate and different compiler systems, the 32-bit and 64-bit MIPSpro compilers have different warning and error messages.

The 32-bit C compiler emits errors as follows: the phase of the compiler which detects an error or warning, identifies itself first, then it prints whether it found an error or warning. The next printed items are the file name, line number and description of the error.

Fortran error messages are similar except the compiler phase name is omitted.

Two examples illustrate this:

C:

%cc -32bit test.c cfe: Error: test.c, line 4: Syntax Error

Fortran:

% f77 -32bit err.f Error on line 6 of err.f: syntax error

Under the 64-bit compiler, back end warning messages start with the string "!!!". Error messages start with the string "###". This allows easier searches in log files. C error messages are similar to the 32-bit compiler's error messages, although they are usually more descriptive.

Here the same files compiled with the 64-bit compiler result in the following error messages:

C:

%cat test.c #include <stdio.h> main () { printf ("hhelp")

} %cc -64bit test.c "test.c", line 4: error(1065): expected a ";"

}

^

Fortran:

%cat err.f
 program test
c
c
2 write(6,8)
8 formatr('This is a test')
 end

% f77 -64bit err.f
### 8 formatr('This is a test')
### in line 6 procedure TEST of file err.f ###
### error Statement unrecognizable as any known statement type. ###
### error Label "8" is not the label of a format statement. ###

2 errors in file /tmp/ctmi.AAAa000Y


Important Warning Messages

Next | Prev | Up | Top | Contents | Index