Skip to content

Static package fails to build on darwin #411

@figsoda

Description

@figsoda

The (static) pretty-simple dependency fails to build with withBinaryFile: does not exist (No such file or directory)

First encountered in https://github.com/NixOS/nixfmt/actions/runs/26721856555/job/78750249867#step:6:47658

error: Cannot build '/nix/store/4ipm57s8zfp19zz0s4a8gcwjv5fb4wwg-pretty-simple-static-arm64-apple-darwin-4.1.4.0.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/19rhakbmk6z4a07ckbyq9s7km2xfdvzj-pretty-simple-static-arm64-apple-darwin-4.1.4.0
       Last 25 log lines:
       > [1 of 7] Compiling Text.Pretty.Simple.Internal.Color ( src/Text/Pretty/Simple/Internal/Color.hs, dist/build/Text/Pretty/Simple/Internal/Color.o, dist/build/Text/Pretty/Simple/Internal/Color.dyn_o )
       > src/Text/Pretty/Simple/Internal/Color.hs:31:1: error: [GHC-47808]
       >     Failed to load dynamic interface file for Prettyprinter.Render.Terminal:
       >       Exception when reading interface file  /nix/store/7i8bxi7843bjv54knk1n06sbdpj6jqnc-prettyprinter-ansi-terminal-static-arm64-apple-darwin-1.1.3/lib/ghc-9.12.3/lib/aarch64-osx-ghc-9.12.3-b194/prettyprinter-ansi-terminal-1.1.3-4R3Wtks61yF5H7fIIDfn0n/Prettyprinter/Render/Terminal.dyn_hi
       >         /nix/store/7i8bxi7843bjv54knk1n06sbdpj6jqnc-prettyprinter-ansi-terminal-static-arm64-apple-darwin-1.1.3/lib/ghc-9.12.3/lib/aarch64-osx-ghc-9.12.3-b194/prettyprinter-ansi-terminal-1.1.3-4R3Wtks61yF5H7fIIDfn0n/Prettyprinter/Render/Terminal.dyn_hi: withBinaryFile: does not exist (No such file or directory)
       >    |
       > 31 | import Prettyprinter.Render.Terminal
       >    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
       >
       > [2 of 7] Compiling Text.Pretty.Simple.Internal.Expr ( src/Text/Pretty/Simple/Internal/Expr.hs, dist/build/Text/Pretty/Simple/Internal/Expr.o, dist/build/Text/Pretty/Simple/Internal/Expr.dyn_o )
       > src/Text/Pretty/Simple/Internal/Expr.hs:31:38: warning: [GHC-90584] [-Wderiving-typeable]
       >     • Deriving ‘Typeable’ has no effect: all types now auto-derive Typeable
       >     • In the newtype declaration for ‘CommaSeparated’
       >    |
       > 31 |   deriving (Data, Eq, Generic, Show, Typeable)
       >    |                                      ^^^^^^^^
       >
       > src/Text/Pretty/Simple/Internal/Expr.hs:46:38: warning: [GHC-90584] [-Wderiving-typeable]
       >     • Deriving ‘Typeable’ has no effect: all types now auto-derive Typeable
       >     • In the data declaration for ‘Expr’
       >    |
       > 46 |   deriving (Data, Eq, Generic, Show, Typeable)
       >    |                                      ^^^^^^^^
       >
       > [3 of 7] Compiling Text.Pretty.Simple.Internal.ExprParser ( src/Text/Pretty/Simple/Internal/ExprParser.hs, dist/build/Text/Pretty/Simple/Internal/ExprParser.o, dist/build/Text/Pretty/Simple/Internal/ExprParser.dyn_o )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions