Recent

Author Topic: Make build crashes  (Read 2691 times)

edgarrod71

  • Jr. Member
  • **
  • Posts: 68
Make build crashes
« on: March 30, 2023, 06:25:53 am »
I was using fpc 3.0.4 on El Capitan, later, I installed fpc 3.2.0 on MacOS El Capitan successfully, but when I try to upgrade to 3.2.2 build doesn't work, it crashes.  Terminal shows this:
Code: Bash  [Select][+][-]
  1.     ·
  2.     ·
  3.     ·
  4. /bin/cp -fp ppc3 ppc3.tmp
  5. /bin/cp -fp ppcx64 ppcx64.tmp
  6. strip -no_uuid ppc3.tmp
  7. strip -no_uuid ppcx64.tmp
  8. /usr/bin/codesign --remove-signature ppc3.tmp
  9. ppc3.tmp: invalid or unsupported format for signature
  10. make[3]: *** [cycle] Error 1
  11. make[2]: *** [compiler_cycle] Error 2
  12. make[1]: *** [build-stamp.x86_64-darwin] Error 2
  13. make: *** [fpcsrc/build-stamp.x86_64-darwin] Error 2
  14. bash-3.2#

Seems there is a problem with the signature on old macs, can anyone give me an idea how to solve this?  ( without buying a new MacBook Pro, ;) )

edgarrod71

  • Jr. Member
  • **
  • Posts: 68
Re: Make build crashes
« Reply #1 on: March 30, 2023, 07:25:27 am »
Found a solution, not orthodox but it works...

find on ./compiler/Makefile on lines 4919-4921 and put in comments with #
find on ./compiler/Makefile.fpc on lines 510-512 and put comments also.

compiled, installed... ok! :)

Starting to read about codesign on terminal...

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1060
Re: Make build crashes
« Reply #2 on: March 30, 2023, 08:02:11 am »
You can also add CODESIGN=/bin/true to the command line. Although the error message is strange.

edgarrod71

  • Jr. Member
  • **
  • Posts: 68
Re: Make build crashes
« Reply #3 on: March 30, 2023, 05:57:05 pm »
Maybe the MacOS fp developers are not working with El Capitan.  Probably with Big Sur, Catalina or Ventura... codesign on those versions changes on terminal parameters.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1060
Re: Make build crashes
« Reply #4 on: March 30, 2023, 09:19:49 pm »
It's not complaining about the parameters though. Maybe it's complaining about the fact that the file is not actually codesigned, so that there's no signature to remove. That case indeed works fine at least on macOS 10.14.

 

TinyPortal © 2005-2018