* * *

Author Topic: No compiler message text displayed when compiling with fpc 3.1.1  (Read 421 times)

ccrause

  • Jr. Member
  • **
  • Posts: 67
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 aborted


Messages 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 ";" found


Command 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 aborted


From 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:
Code: Pascal  [Select]
  1. program project1;
  2. const
  3.   a: byte;
  4. begin
  5.   a := 1;
  6. end.

ccrause

  • Jr. Member
  • **
  • Posts: 67
Re: No compiler message text displayed when compiling with fpc 3.1.1
« Reply #1 on: June 16, 2017, 10:08:47 am »
So I've updated the trunk version of the compiler (r36505) and now Lazarus reports the expected message text.  Not sure why it didn't work properly in Lazarus earlier, because the compiler output seemed identical.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus