Recently I've noticed that the compiler message strings in the Messages window of the IDE were missing when compiling projects with the trunk version of the compiler (tested in both 1.6.4 and 1.8 RC2). Compiling with fpc 3.0.2 shows the expected messages. Note that Lazarus in both cases are itself is compiled with fpc 3.0.2.
Messages window output when compiling using fpc 3.1.1:
Compile Project, Target: project1: Exit code 256, Errors: 1
project1.lpr(4,10) Error: Command line output using Lazarus settings:
~/fpc/3.1.1/compiler/ppcx64 -MObjFPC -Scghi -Cut g -O1 -g -gl -l -vewnhibq -Filib/x86_64-linux -Fu. -FUlib/x86_64-linux project1.lpr
Hint: (11030) Start of reading config file /home/christo/.fpc.cfg
Hint: (11031) End of reading config file /home/christo/.fpc.cfg
Free Pascal Compiler version 3.1.1 [2017/06/16] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling project1.lpr
/home/christo/LazProjs/test/project1.lpr(4,10) Fatal: (2003) Syntax error, "=" expected but ";" found
Fatal: (1018) Compilation abortedMessages window output compiling with fpc 3.0.2:
Compile Project, Target: project1: Exit code 256, Errors: 1, Hints: 2
Hint: Start of reading config file /home/christo/.fpc.cfg
Hint: End of reading config file /home/christo/.fpc.cfg
project1.lpr(4,10) Fatal: Syntax error, "=" expected but ";" foundCommand line output using Lazarus settings:
~/fpc/3.0.2/compiler/ppcx64 -MObjFPC -Scghi -Cg -O1 -g -gl -l -vewnhibq -Filib/x86_64-linux -Fu. -FUlib/x86_64-linux project1.lpr
Hint: (11030) Start of reading config file /home/christo/.fpc.cfg
Hint: (11031) End of reading config file /home/christo/.fpc.cfg
Free Pascal Compiler version 3.0.2 [2017/02/27] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling project1.lpr
/home/christo/LazProjs/test/project1.lpr(4,10) Fatal: (2003) Syntax error, "=" expected but ";" found
Fatal: (1018) Compilation abortedFrom the above output it seems as if the compiler messages are identical. Also note that Lazarus reports the two hints about the config file for 3.0.2, but omits the hints for 3.1.1
Anyone has an idea why this happens and how to fix it?
Example project used:
program project1;
const
a: byte;
begin
a := 1;
end.