Skip to content

ghc-9.2.3-arch64-apple-darwin codesigns binaries

Summary

Building with ghc-9.2.3-aarch64-apple-darwin results in a codesigned binary, which breaks my pipelines (ghc-9.2.3-x86_64-apple-darwin, as all previous versions of GHC, doesn't try to codesign the binaries after compilation).

Note: running codesign --remove-signature renders the binary unusable.

Steps to reproduce

Main.hs:

main = putStrLn "most useful program"

The following two commands:

  • ghc Main.hs
  • codesign -v -vvv Main

produce

Main: valid on disk
Main: satisfies its Designated Requirement

with ghc-9.2.3-aarch64-apple-darwin, and

Main: code object is not signed at all
In architecture: x86_64

with ghc-9.2.3-x86_64-apple-darwin.

Expected behavior

Both outputs to be code object is not signed at all.

Environment

  • GHC versions used: ghc-9.2.3-aarch64-apple-darwin, and ghc-9.2.3-x86_64-apple-darwin, both downloaded from https://downloads.haskell.org

  • Operating System: macOS 11.4 Big Sur

  • System Architecture: aarch64, and x86_64

Edited by Daniel Taskoff
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information