Recent

Author Topic: FPC 3.2.x series and Lazarus trunk compiling problems  (Read 6566 times)

af0815

  • Hero Member
  • *****
  • Posts: 1288
FPC 3.2.x series and Lazarus trunk compiling problems
« on: August 19, 2018, 02:49:31 pm »
The new upcoming fpc 3.2.x is announced and tried to make a fresh installation of fpc fixes 3.2 and Lazarus trunk.

The first problem is utf8process, i have to patch this file in the lazarus sources
Quote
Index: components/lazutils/utf8process.pp
===================================================================
--- components/lazutils/utf8process.pp   (revision 58738)
+++ components/lazutils/utf8process.pp   (working copy)
@@ -537,7 +537,7 @@
 type
   TProcessClassTemplate = class(TComponent)
   private
-    {$if fpc_fullversion < 30101}
+    {$if fpc_fullversion <= 30101}
     {%H-}FProcessOptions : TProcessOptions;
     {%H-}FStartupOptions : TStartupOptions;
     FProcessID : Integer;

What is the fpc_fullversion ? It should 30200 or 30201 for the fixes branch ?!
regards
Andreas

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
Re: FPC 3.2.x series and Lazarus trunk compiling problems
« Reply #1 on: August 19, 2018, 04:30:12 pm »
The last 3.1.1 version is equal to 3.2.0 and 3.3.1, so that change is not logical

af0815

  • Hero Member
  • *****
  • Posts: 1288
Re: FPC 3.2.x series and Lazarus trunk compiling problems
« Reply #2 on: August 19, 2018, 05:15:05 pm »
The last 3.1.1 version is equal to 3.2.0 and 3.3.1, so that change is not logical
Yes, and this is the reason for my question. Without the change it does not compile and complain about the not finding declarations (because they were changed).

But for fixes 3.2 the fpc_fullversion should be 30200 ?

With the fix i can compile Lazarus trunk complete mit fpc 3.2.0.

Lazarus 1.9.0 r58740 FPC 3.2.0 i386-win32-win32/win64
« Last Edit: August 19, 2018, 05:17:35 pm by af0815 »
regards
Andreas

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: FPC 3.2.x series and Lazarus trunk compiling problems
« Reply #3 on: August 19, 2018, 05:37:09 pm »
What is the fpc_fullversion ? It should 30200 or 30201 for the fixes branch ?!

What does this output if you build with 3.2 fixes compiler?

Code: Pascal  [Select][+][-]
  1.   {$if fpc_fullversion<30101}
  2.   writeln('3.0.x (or lower)');
  3.   {$endif}
  4.   {$if fpc_fullversion=30101}
  5.   writeln('3.1.1');
  6.   {$endif}
  7.   {$if fpc_fullversion=30200}
  8.   writeln('3.2.0');
  9.   {$endif}
  10.   {$if fpc_fullversion=30201}
  11.   writeln('3.2.1');
  12.   {$endif}
  13.   {$if fpc_fullversion=30301}
  14.   writeln('3.3.1 (trunk)');
  15.   {$endif}
  16.  

Bart

af0815

  • Hero Member
  • *****
  • Posts: 1288
Re: FPC 3.2.x series and Lazarus trunk compiling problems
« Reply #4 on: August 19, 2018, 05:42:58 pm »
3.2.0

so it is realy 30200 as fpc_fullversion
regards
Andreas

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • Bart en Mariska's Webstek
Re: FPC 3.2.x series and Lazarus trunk compiling problems
« Reply #5 on: August 19, 2018, 06:12:51 pm »
3.2.0

so it is realy 30200 as fpc_fullversion

And since (30200 <  30101)  evaluates to FALSE,  your change makes no sense (as marco already said)  O:-)

Bart

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
Re: FPC 3.2.x series and Lazarus trunk compiling problems
« Reply #6 on: August 19, 2018, 06:27:43 pm »
Yeah, probably some old compiler gets grabbed while compiling lazarus. Maybe add some $Info directives to the source in various branches  to  debug it ?

af0815

  • Hero Member
  • *****
  • Posts: 1288
Re: FPC 3.2.x series and Lazarus trunk compiling problems
« Reply #7 on: August 19, 2018, 07:02:41 pm »
IT was not the compiler, but an failure in the fpc.cfg. Thanks for the information.
regards
Andreas

 

TinyPortal © 2005-2018