(all on FreeBSD/x86)
Free Pascal Compiler version 2.5.1 [2010/04/22] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Fatal: Can't find unit synch used by test
Fatal: Compilation aborted
Error: /home/marcov/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
This is due to writing Synch with capital "S", if I correct it, I get
Free Pascal Compiler version 2.5.1 [2010/04/22] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
synch.pas(92,29) Error: Identifier not found "class"
synch.pas(92,40) Error: Error in type definition
synch.pas(93,25) Error: Identifier not found "class"
synch.pas(93,36) Error: Error in type definition
synch.pas(97,3) Error: Identifier not found "class"
synch.pas(97,3) Error: Error in type definition
synch.pas(97,3) Fatal: Syntax error, ";" expected but "identifier PRIVATE" found
Fatal: Compilation aborted
Error: /home/marcov/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
Apparantly FPC is not put into Delphi mode ({$mode delphi}), if I correct that it fails on "currenttm", windows unit and more:
Free Pascal Compiler version 2.5.1 [2010/04/22] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
synch.pas(283,16) Error: Identifier not found "currenttm"
synch.pas(284,36) Error: Identifier not found "currenttm"
synch.pas(304,12) Error: Identifier not found "currenttm"
synch.pas(321,13) Error: Identifier not found "currenttm"
synch.pas(337,42) Error: Identifier not found "currenttm"
synch.pas(359,16) Error: Identifier not found "currenttm"
synch.pas(360,12) Error: Identifier not found "currenttm"
synch.pas(379,11) Error: Identifier not found "currenttm"
synch.pas(395,13) Error: Identifier not found "currenttm"
synch.pas(410,11) Error: Identifier not found "currenttm"
synch.pas(458,15) Error: Incompatible types: got "Pointer" expected "LongWord"
synch.pas(507,24) Error: Identifier not found "Windows"
synch.pas(586,15) Error: Incompatible types: got "Pointer" expected "LongWord"
synch.pas(681) Fatal: There were 13 errors compiling module, stopping
Fatal: Compilation aborted
Error: /home/marcov/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
The errors on 458 and 586 _might_ be related to several handle types on FreeBSD being pointer instead of (unsigned/signed or long) integer types.