The build succeeds, but when the command
gmake install is given, it throws a bunch of errors like this
/opt/csw/gnu/cp: preserving permissions for '/path/to/file': Invalid argument
Could be solved by doing
mv /opt/csw/gnu/cp /opt/csw/gnu/cp.bak && ln -s /bin/cp /opt/csw/gnu/cp
before and
mv /opt/csw/gnu/cp.bak /opt/csw/gnu/cp
after the install command, but before this, it worked. (With FreePascal 3.2.0 and Lazarus 2.0.10.)