You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building bond on Apple Silicon is impossible today. The haskell-stack installed during setup provides the system with ghc-9.8.2, which is rejected by the Stack resolver lts-14.4 (ghc-8.6.5) defined in the compiler/stack.yaml file.
You can see it rejects newer versions of ghc.
2024-03-06 09:12:13.992344: [debug] Not using compiler at "/opt/homebrew/Cellar/ghc/9.8.2/bin/ghc-9.8.2": PrettyException UnwantedCompilerVersion
Changing the resolver to lts-22.12 allows the build to pass the initial checks, but compilation ultimately fails on the bond source code. I imagine there are breaking changes migrating from ghc 8.x to 9.x, but Apple Silicon support wasn't added until 9.2.x and later (and is still experimental, IIRC).
Example 1:
/Users/<me>/git-projects/bond/compiler/src/Language/Bond/Syntax/JSON.hs:84:19: error: [GHC-39999] • No instance for ‘FromJSON TypeParam’ arising from a use of ‘.:’ • In the second argument of ‘(<$>)’, namely ‘o .: "value"’ In the expression: BT_TypeParam <$> o .: "value" In a case alternative: String "parameter" -> BT_TypeParam <$> o .: "value" |84 | o .: "value" | ^^
Example 2:
/Users/<me>/git-projects/bond/compiler/src/Language/Bond/Syntax/Util.hs:64:32: error: [-Wunused-record-wildcards, Werror=unused-record-wildcards] No variables bound in the record wildcard match are used Possible fix: omit the ‘..’ |64 | isScalar (BT_UserDefined Enum {..} _) = True |
The text was updated successfully, but these errors were encountered:
Building
bond
on Apple Silicon is impossible today. Thehaskell-stack
installed during setup provides the system with ghc-9.8.2, which is rejected by the Stack resolverlts-14.4
(ghc-8.6.5
) defined in thecompiler/stack.yaml
file.You can see it rejects newer versions of ghc.
Changing the resolver to
lts-22.12
allows the build to pass the initial checks, but compilation ultimately fails on the bond source code. I imagine there are breaking changes migrating from ghc 8.x to 9.x, but Apple Silicon support wasn't added until 9.2.x and later (and is still experimental, IIRC).Example 1:
Example 2:
The text was updated successfully, but these errors were encountered: