[fpc-pascal] unable to compile 3.0.0 both Linux x86_64 and arm-linux

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Jul 16 15:52:43 CEST 2016


On 16/07/16 15:23, Giuliano Colla wrote:
> I'm trying to upgrade from fpc 2.6.4 to 3.0.0 but make all fails both in
> Linux x86_64 platfoms and in arm-linux (Raspbian) plaform.
>
> I've downloaded a precompiled 3.0.0 in order to be able to compile. I
> have also tried using fpcup, but the result is the same in all cases:
>
> while compiling package paszlib, in file zbase.pas it fails with:
>
> zbase.pas(446,7) Error: Illegal expression
>
> where the offending line is a simple
>       str(err,zerror);
>
> and with
>
> zbase.pas(447,36) Error: Operator is not overloaded: "Constant String" +
> "zError(LongInt):AnsiString;"
 >
 > where the offending line is
 >     zerror:='Unknown zlib error '+zerror;
 >

These errors suggest you are not compiling that unit in FPC mode. If you 
use the top level Makefile in the fpcsrc directory, it will compile the 
packages directory with RELEASE=1, which in turn causes -n to be added 
to the FPC command line options so that it ignores any default 
(.)fpc.cfg files (that may otherwise contain -Mdelphi or so). The 
default compiler mode in FPC (including 3.0) is plain FPC mode.


Jonas



More information about the fpc-pascal mailing list