Mountain Lion 10.8.5 (Intel) fails to build FPC 3.2 Fixes. The cause is the
codesign command:
/usr/bin/codesign --remove-signature ppc3.tmp
ppc3.tmp: unsupported type or version of signature
make[2]: *** [cycle] Error 1
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.x86_64-darwin] Error 2I could not remove the signature either, but I could re-sign it with:
/usr/bin/codesign --force --sign - ppc3.tmpalthough the Makefile only wants to remove a signature and not re-sign the executables. It turns out that the codesign utility for Mountain Lion lacks the
--remove-signature option.
trev@dynamic37 [/Users/trev/fpc_fixes32/compiler] $ codesign
Usage: codesign -s identity [-fv*] [-o flags] [-r reqs] [-i ident] path ... # sign
codesign -v [-v*] [-R testreq] path|pid ... # verify
codesign -d [options] path ... # display contents
codesign -h pid ... # display hosting paths
[Updated]
The same issue also applies to OS X Maevricks, OS X Yosemite, OS X El Capitan and macOS Sierra.
[Updated2]
My workaround was to create a fake codesign and ensure it was found first in the path.
Jonas suggested that you can provide a custom codesign command via the CODESIGN=xxx make parameter. You could use CODESIGN=/usr/bin/true to work around it.