Recent

Author Topic: Preparing FPC 3.2.4, point out road blocks now  (Read 16441 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 9701
  • FPC developer.
Re: Preparing FPC 3.2.4, point out road blocks now
« Reply #30 on: October 28, 2021, 12:34:43 pm »
Аccidentally discovered that FPC 3.2.2(and 3.3.1)-win64 lacks compiled units for the GMP package. Are there any reasons for this?

Headers are generally only enabled for targets that they were confirmed to fully work.

avk

  • Hero Member
  • *****
  • Posts: 505
    • my self-education project
Re: Preparing FPC 3.2.4, point out road blocks now
« Reply #31 on: October 28, 2021, 12:50:22 pm »
Thank you.


trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1686
  • Former Delphi 1-7, 10.2 user
OS X 10.8.5 fixes32 build failure
« Reply #33 on: November 15, 2021, 10:52:39 am »
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 2


I could not remove the signature either, but I could re-sign it with:

  /usr/bin/codesign --force --sign - ppc3.tmp

although 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.

Code: Text  [Select][+][-]
  1. trev@dynamic37 [/Users/trev/fpc_fixes32/compiler] $ codesign
  2. Usage: codesign -s identity [-fv*] [-o flags] [-r reqs] [-i ident] path ... # sign
  3.        codesign -v [-v*] [-R testreq] path|pid ... # verify
  4.        codesign -d [options] path ... # display contents
  5.        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.
« Last Edit: November 17, 2021, 11:51:51 pm by trev »
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

 

TinyPortal © 2005-2018