Building Lazarus fails with compiler error in "dbgrids.pas" when using latest FPC
Original Reporter info from Mantis: lenz
-
Reporter name: Lenz Kessler
Original Reporter info from Mantis: lenz
- Reporter name: Lenz Kessler
Description:
When trying to build the entire Lazarus package with "make clean all bigide", while using latest FreePascal built from trunk revision 26620 (latest at this moment), build fails with error in "dbgrids.pas":
Compiling dbactns.pp
Compiling dbctrls.pp
Compiling maskedit.pp
Compiling calendar.pp
Compiling .\widgetset\wscalendar.pp
dbctrls.pp(1337,56) Warning: Symbol "Lookup" is deprecated
Compiling dbgrids.pas
Compiling grids.pas
Compiling dynamicarray.pas
Compiling .\widgetset\wsgrids.pp
grids.pas(6989,3) Note: Local variable "i" not used
dbgrids.pas(1149,18) Warning: Symbol "Lookup" is deprecated
dbgrids.pas(2996,54) Warning: Symbol "Lookup" is deprecated
dbgrids.pas(3017,28) Warning: Symbol "Lookup" is deprecated
dbgrids.pas(3697,30) Warning: Symbol "Lookup" is deprecated
dbgrids.pas(3991,32) Error: Can't take the address of constant expressions
dbgrids.pas(4035,30) Error: Can't take the address of constant expressions
dbgrids.pas(4050,30) Error: Can't take the address of constant expressions
dbgrids.pas(4126) Fatal: There were 3 errors compiling module, stopping
Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directory `d:/FreePascal/Lazarus/lcl'
make: *** [lazbuild] Error 2
When using trunk revisions of both FreePascal and Lazarus from a couple of days ago, the compilation was successful.