FugaLib does not compile on mac
FugaLib does not compile on my Mac:
> lazbuild Colonel/FugaLib/FugaLib.lpr
Info: (lazarus) Execute Title="Compile Project, Target: libfugalib.dylib"
Info: (lazarus) Working Directory="/Users/pe/git/TopFarm2/topfarm/cost_models/fuga/Colonel/FugaLib/"
Info: (lazarus) Executable="/usr/local/bin/ppc386"
Info: (lazarus) Param[0]="-MDelphi"
Info: (lazarus) Param[1]="-Scaghi"
Info: (lazarus) Param[2]="-O1"
Info: (lazarus) Param[3]="-gw"
Info: (lazarus) Param[4]="-gl"
Info: (lazarus) Param[5]="-l"
Info: (lazarus) Param[6]="-vewnhibq"
Info: (lazarus) Param[7]="-Fi/Users/pe/git/TopFarm2/topfarm/cost_models/fuga/Colonel/FugaLib/lib/i386-darwin"
Info: (lazarus) Param[8]="-Fu/Users/pe/git/TopFarm2/topfarm/cost_models/fuga/Colonel/FugaLib/"
Info: (lazarus) Param[9]="-FU/Users/pe/git/TopFarm2/topfarm/cost_models/fuga/Colonel/FugaLib/lib/i386-darwin/"
Info: (lazarus) Param[10]="-olibfugalib.dylib"
Info: (lazarus) Param[11]="FugaLib.lpr"
Hint: (11030) Start of reading config file /usr/local/etc/fpc.cfg
Hint: (11031) End of reading config file /usr/local/etc/fpc.cfg
Free Pascal Compiler version 3.0.4 [2017/11/26] for i386
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Darwin for i386
(3104) Compiling FugaLib.lpr
/Users/pe/git/TopFarm2/topfarm/cost_models/fuga/Colonel/FugaLib/FugaLib.lpr(17,41) Error: (5040) Data element too large
/Users/pe/git/TopFarm2/topfarm/cost_models/fuga/Colonel/FugaLib/FugaLib.lpr(95,14) Hint: (5057) Local variable "q" does not seem to be initialized
/Users/pe/git/TopFarm2/topfarm/cost_models/fuga/Colonel/FugaLib/FugaLib.lpr(239,38) Hint: (5057) Local variable "iModel" does not seem to be initialized
FugaLib.lpr(460) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: (lazarus) Compile Project, Target: libfugalib.dylib: stopped with exit code 256
Error: (lazbuild) failed compiling of project /Users/pe/git/TopFarm2/topfarm/cost_models/fuga/Colonel/FugaLib/FugaLib.lpi
The error seems to stem from:
FugaLib.lpr(17,41) Error: (5040) Data element too large
So this line:
TFloatArray = array[0..MaxInt] of TFloat;
Any idea where this MaxInt is defined?
System description:
- MacOSX 10.13.4
- Lazarus 1.8.2
- FPC 3.0.4
Edited by Pierre-Elouan Rethore