I installed Lazarus on my old Mac, upgraded to Catalina and it couldn't compile, showed a message like:
lcltype.pp(18,42) Fatal: Invalid PPU-File entry: 87
I modified manually the file deleting the consecutive brackets
}
{
then, I tried to compile again and this new error appeared:
laz_avl_tree.pp(33,24) Fatal: Invalid PPU-File entry: 87
deleted a pair of brackets, reinserted them the same way and next error was:
lazutf8.pas(17,58) Fatal: Invalid PPU-File entry: 87
... next ...
fpcadds.pas(37,6) Fatal: Invalid PPU-File entry: 87
seems that there is a bad Tab inserted or some hidden character on every file.
... after 30 more dumbie characters to correct ...
lookupstringlist.pas(23,44) Fatal: Invalid PPU-File entry: 87
... and ...
more painful hidden char finding...
Later, I opened a terminal, listed the files in /Applications/Lazarus/components and all belonged to Macports:Admin, so I changed to my user like this:
$ sudo chown -R edgarrod:admin /Applications/Lazarus/components
changed also the +w option with
$ sudo chmod -R +w /Applications/Lazarus/components
and the same with
$ sudo chown -R edgarrod:admin /Applications/Lazarus/packager
$ sudo chmod -R +w /Applications/Lazarus/packager
and voilà, it compiled at last, but I couldn't make a clean compile of Lazarus yet.