Resolving dependencies... Starting BoundedChan-1.0.3.0 Starting OneTuple-0.4.1.1 Starting StateVar-1.2.2 Starting bimap-0.5.0 Starting base-orphans-0.9.1 Starting bitwise-1.0.0.1 Starting call-stack-0.4.0 Starting config-value-0.8.3 Starting copilot-core-3.18 Starting data-default-class-0.1.2.0 Starting dlist-1.0 Starting fingertree-0.1.5.0 Starting indexed-traversable-0.1.3 Starting integer-logarithms-1.0.3.1 Starting old-locale-1.0.0.7 Starting parallel-3.2.2.0 Starting primitive-0.9.0.0 Starting prettyprinter-1.7.1 Starting reflection-2.1.7 Starting s-cargot-0.1.6.0 Starting safe-exceptions-0.1.7.4 Starting semigroups-0.20 Starting th-abstraction-0.5.0.0 Starting tagged-0.8.8 Starting type-equality-1 Starting unbounded-delays-0.1.1.1 Starting transformers-compat-0.7.2 Starting vector-stream-0.1.0.1 Starting utf8-string-1.0.2 Starting zenc-0.1.2 Starting xml-1.3.14 Starting ordered-containers-0.2.3 Starting parser-combinators-1.3.0 Starting network-3.1.4.0 Starting unliftio-core-0.2.1.0 Starting void-0.7.3 Building StateVar-1.2.2 Building BoundedChan-1.0.3.0 Building OneTuple-0.4.1.1 Building bimap-0.5.0 Starting hashable-1.4.3.0 Building call-stack-0.4.0 Starting splitmix-0.1.0.5 Building bitwise-1.0.0.1 Starting zlib-0.6.3.0 Building config-value-0.8.3 Building data-default-class-0.1.2.0 Building copilot-core-3.18 Building dlist-1.0 Building fingertree-0.1.5.0 Building old-locale-1.0.0.7 Building integer-logarithms-1.0.3.1 Building indexed-traversable-0.1.3 Building parallel-3.2.2.0 Building primitive-0.9.0.0 Starting base-compat-0.13.1 Building prettyprinter-1.7.1 Building reflection-2.1.7 Building semigroups-0.20 Building tagged-0.8.8 Building s-cargot-0.1.6.0 Building type-equality-1 Building th-abstraction-0.5.0.0 Building safe-exceptions-0.1.7.4 Building vector-stream-0.1.0.1 Building unbounded-delays-0.1.1.1 Building transformers-compat-0.7.2 Building utf8-string-1.0.2 Building base-orphans-0.9.1 Building ordered-containers-0.2.3 Building parser-combinators-1.3.0 Building zenc-0.1.2 Building xml-1.3.14 Building void-0.7.3 Building unliftio-core-0.2.1.0 Building hashable-1.4.3.0 Building splitmix-0.1.0.5 Building zlib-0.6.3.0 Building base-compat-0.13.1 Building network-3.1.4.0 Completed void-0.7.3 Completed BoundedChan-1.0.3.0 Completed call-stack-0.4.0 Completed data-default-class-0.1.2.0 Starting data-default-instances-containers-0.0.1 Completed unbounded-delays-0.1.1.1 Starting concurrent-extra-0.7.0.12 Completed old-locale-1.0.0.7 Starting data-default-instances-old-locale-0.0.1 Building data-default-instances-containers-0.0.1 Completed type-equality-1 Completed integer-logarithms-1.0.3.1 Building concurrent-extra-0.7.0.12 Completed semigroups-0.20 Building data-default-instances-old-locale-0.0.1 Completed zenc-0.1.2 Completed OneTuple-0.4.1.1 Completed copilot-core-3.18 Starting copilot-prettyprinter-3.18 Starting copilot-interpreter-3.18 Completed StateVar-1.2.2 Starting contravariant-1.5.5 Completed unliftio-core-0.2.1.0 Building copilot-prettyprinter-3.18 Completed parser-combinators-1.3.0 Building copilot-interpreter-3.18 Building contravariant-1.5.5 Completed splitmix-0.1.0.5 Starting random-1.2.1.1 Completed dlist-1.0 Starting data-default-instances-dlist-0.0.1 Completed tagged-0.8.8 Starting assoc-1.1 Building random-1.2.1.1 Completed parallel-3.2.2.0 Completed transformers-compat-0.7.2 Building data-default-instances-dlist-0.0.1 Completed safe-exceptions-0.1.7.4 Building assoc-1.1 Completed bimap-0.5.0 Completed vector-stream-0.1.0.1 Completed utf8-string-1.0.2 Completed base-orphans-0.9.1 Starting transformers-base-0.4.6 Starting distributive-0.6.2.1 Completed reflection-2.1.7 Completed bitwise-1.0.0.1 Building transformers-base-0.4.6 Building distributive-0.6.2.1 Completed ordered-containers-0.2.3 Completed hashable-1.4.3.0 Starting case-insensitive-1.2.1.0 Starting constraints-0.13.4 Starting async-2.2.5 Starting libBF-0.6.7 Starting unordered-containers-0.2.19.1 Completed fingertree-0.1.5.0 Completed xml-1.3.14 Building case-insensitive-1.2.1.0 Building constraints-0.13.4 Building async-2.2.5 Building libBF-0.6.7 Building unordered-containers-0.2.19.1 Completed zlib-0.6.3.0 Starting zlib-bindings-0.1.1.5 Completed data-default-instances-old-locale-0.0.1 Completed indexed-traversable-0.1.3 Building zlib-bindings-0.1.1.5 Completed data-default-instances-containers-0.0.1 Completed th-abstraction-0.5.0.0 Starting th-lift-0.8.4 Starting deriving-compat-0.6.5 Completed concurrent-extra-0.7.0.12 Completed s-cargot-0.1.6.0 Building deriving-compat-0.6.5 Building th-lift-0.8.4 Completed copilot-prettyprinter-3.18 Completed config-value-0.8.3 Completed prettyprinter-1.7.1 Completed copilot-interpreter-3.18 Completed data-default-instances-dlist-0.0.1 Starting data-default-0.7.1.1 Completed contravariant-1.5.5 Completed assoc-1.1 Starting these-1.2 Building data-default-0.7.1.1 Completed base-compat-0.13.1 Starting gitrev-1.3.1 Completed transformers-base-0.4.6 Building these-1.2 Completed primitive-0.9.0.0 Starting scientific-0.3.7.0 Starting vector-0.13.1.0 Building gitrev-1.3.1 Completed distributive-0.6.2.1 Starting comonad-5.0.8 Building scientific-0.3.7.0 Building vector-0.13.1.0 Building comonad-5.0.8 Completed zlib-bindings-0.1.1.5 Completed case-insensitive-1.2.1.0 Completed network-3.1.4.0 Completed th-lift-0.8.4 Completed async-2.2.5 Starting unliftio-0.2.25.0 Completed data-default-0.7.1.1 Building unliftio-0.2.25.0 Completed random-1.2.1.1 Starting temporary-1.3 Completed gitrev-1.3.1 Starting panic-0.4.0.1 Building temporary-1.3 Completed libBF-0.6.7 Building panic-0.4.0.1 Completed constraints-0.13.4 Completed these-1.2 Starting strict-0.5 Completed scientific-0.3.7.0 Starting megaparsec-9.6.1 Starting attoparsec-0.14.4 Completed comonad-5.0.8 Starting bifunctors-5.6.1 Building strict-0.5 Building megaparsec-9.6.1 Building attoparsec-0.14.4 Building bifunctors-5.6.1 Completed temporary-1.3 Completed panic-0.4.0.1 Completed unordered-containers-0.2.19.1 Starting data-reify-0.6.3 Completed deriving-compat-0.6.5 Building data-reify-0.6.3 Completed unliftio-0.2.25.0 Completed data-reify-0.6.3 Completed strict-0.5 Completed bifunctors-5.6.1 Starting profunctors-5.6.2 Starting semigroupoids-6.0.0.1 Building profunctors-5.6.2 Building semigroupoids-6.0.0.1 Completed megaparsec-9.6.1 Starting versions-6.0.4 Completed attoparsec-0.14.4 Building versions-6.0.4 Completed versions-6.0.4 Completed vector-0.13.1.0 Starting th-lift-instances-0.1.20 Starting indexed-traversable-instances-0.1.1.2 Starting io-streams-1.5.2.2 Starting hashtables-1.3.1 Completed profunctors-5.6.2 Starting invariant-0.6.2 Building indexed-traversable-instances-0.1.1.2 Building th-lift-instances-0.1.20 Building io-streams-1.5.2.2 Building hashtables-1.3.1 Building invariant-0.6.2 Completed semigroupoids-6.0.0.1 Starting free-5.2 Building free-5.2 Completed th-lift-instances-0.1.20 Completed indexed-traversable-instances-0.1.1.2 Completed invariant-0.6.2 Completed io-streams-1.5.2.2 Completed hashtables-1.3.1 Completed free-5.2 Starting adjunctions-4.4.2 Building adjunctions-4.4.2 Completed adjunctions-4.4.2 Starting kan-extensions-5.2.5 Building kan-extensions-5.2.5 Completed kan-extensions-5.2.5 Starting lens-5.2.3 Building lens-5.2.3 Completed lens-5.2.3 Starting parameterized-utils-2.1.7.0 Building parameterized-utils-2.1.7.0 Completed parameterized-utils-2.1.7.0 Starting bv-sized-1.0.5 Building bv-sized-1.0.5 Completed bv-sized-1.0.5 Starting what4-1.5.1 Building what4-1.5.1 Completed what4-1.5.1 Starting copilot-theorem-3.18 Building copilot-theorem-3.18 Failed to install copilot-theorem-3.18 Build log ( /home/builder/.cabal/logs/ghc-9.6.3/copilot-theorem-3.18-1asrxsXpO5qKiYWSYiVmI7.log ): cabal: Entering directory '/tmp/cabal-tmp-2100177/copilot-theorem-3.18' Configuring copilot-theorem-3.18... Preprocessing library for copilot-theorem-3.18.. Building library for copilot-theorem-3.18.. on the commandline: warning: [-Wdeprecated-flags] -fcontext-stack=100 is deprecated: use -freduction-depth=100 instead [ 1 of 34] Compiling Copilot.Theorem.IL.Spec ( src/Copilot/Theorem/IL/Spec.hs, dist/build/Copilot/Theorem/IL/Spec.o, dist/build/Copilot/Theorem/IL/Spec.dyn_o ) [ 2 of 34] Compiling Copilot.Theorem.IL.PrettyPrint ( src/Copilot/Theorem/IL/PrettyPrint.hs, dist/build/Copilot/Theorem/IL/PrettyPrint.o, dist/build/Copilot/Theorem/IL/PrettyPrint.dyn_o ) [ 3 of 34] Compiling Copilot.Theorem.IL.Transform ( src/Copilot/Theorem/IL/Transform.hs, dist/build/Copilot/Theorem/IL/Transform.o, dist/build/Copilot/Theorem/IL/Transform.dyn_o ) [ 4 of 34] Compiling Copilot.Theorem.IL.Translate ( src/Copilot/Theorem/IL/Translate.hs, dist/build/Copilot/Theorem/IL/Translate.o, dist/build/Copilot/Theorem/IL/Translate.dyn_o ) src/Copilot/Theorem/IL/Translate.hs:64:5: error: [GHC-88464] Variable not in scope: forM :: [C.Property] -> (C.Property -> StateT TransST Data.Functor.Identity.Identity (C.Name, ([Expr], Expr))) -> StateT TransST Data.Functor.Identity.Identity [(PropId, ([Expr], Expr))] | 64 | forM specProperties | ^^^^ src/Copilot/Theorem/IL/Translate.hs:92:7: error: [GHC-88464] Variable not in scope: when :: Bool -> Trans () -> StateT TransST Data.Functor.Identity.Identity () | 92 | when b $ localConstraint (Op2 Bool And | ^^^^ src/Copilot/Theorem/IL/Translate.hs:322:23: error: [GHC-88464] Variable not in scope: liftM2 :: ([a0] -> [a0] -> [a0]) -> f0 [Expr] -> Trans [Expr] -> StateT TransST Data.Functor.Identity.Identity [Expr] Suggested fix: Perhaps use one of these: liftA2 (imported from Prelude), lift (imported from Control.Monad.State), liftIO (imported from Control.Monad.State) | 322 | popLocalConstraints = liftM2 (++) (localConstraints <$> get) getMuxes | ^^^^^^ [ 6 of 34] Compiling Copilot.Theorem.Kind2.AST ( src/Copilot/Theorem/Kind2/AST.hs, dist/build/Copilot/Theorem/Kind2/AST.o, dist/build/Copilot/Theorem/Kind2/AST.dyn_o ) [ 7 of 34] Compiling Copilot.Theorem.Misc.Error ( src/Copilot/Theorem/Misc/Error.hs, dist/build/Copilot/Theorem/Misc/Error.o, dist/build/Copilot/Theorem/Misc/Error.dyn_o ) [ 8 of 34] Compiling Copilot.Theorem.Misc.SExpr ( src/Copilot/Theorem/Misc/SExpr.hs, dist/build/Copilot/Theorem/Misc/SExpr.o, dist/build/Copilot/Theorem/Misc/SExpr.dyn_o ) [ 9 of 34] Compiling Copilot.Theorem.Kind2.PrettyPrint ( src/Copilot/Theorem/Kind2/PrettyPrint.hs, dist/build/Copilot/Theorem/Kind2/PrettyPrint.o, dist/build/Copilot/Theorem/Kind2/PrettyPrint.dyn_o ) [10 of 34] Compiling Copilot.Theorem.Misc.Utils ( src/Copilot/Theorem/Misc/Utils.hs, dist/build/Copilot/Theorem/Misc/Utils.o, dist/build/Copilot/Theorem/Misc/Utils.dyn_o ) src/Copilot/Theorem/Misc/Utils.hs:19:1: error: [GHC-44360] System.Directory: Can't be safely imported! The module itself isn't safe. | 19 | import System.Directory | ^^^^^^^^^^^^^^^^^^^^^^^ [11 of 34] Compiling Copilot.Theorem.Prove ( src/Copilot/Theorem/Prove.hs, dist/build/Copilot/Theorem/Prove.o, dist/build/Copilot/Theorem/Prove.dyn_o ) src/Copilot/Theorem/Prove.hs:78:10: error: [GHC-88464] Variable not in scope: liftM :: (a1 -> b) -> ProofScheme a a1 -> ProofScheme a b Suggested fix: Perhaps use lift (imported from Control.Monad.Writer) | 78 | fmap = liftM | ^^^^^ src/Copilot/Theorem/Prove.hs:82:11: error: [GHC-88464] Variable not in scope: ap :: ProofScheme a (a1 -> b) -> ProofScheme a a1 -> ProofScheme a b Suggested fix: Perhaps use map (imported from Prelude) | 82 | (<*>) = ap | ^^ [20 of 34] Compiling Copilot.Theorem.TransSys.Invariants ( src/Copilot/Theorem/TransSys/Invariants.hs, dist/build/Copilot/Theorem/TransSys/Invariants.o, dist/build/Copilot/Theorem/TransSys/Invariants.dyn_o ) [21 of 34] Compiling Copilot.Theorem.TransSys.Type ( src/Copilot/Theorem/TransSys/Type.hs, dist/build/Copilot/Theorem/TransSys/Type.o, dist/build/Copilot/Theorem/TransSys/Type.dyn_o ) [22 of 34] Compiling Copilot.Theorem.TransSys.Cast ( src/Copilot/Theorem/TransSys/Cast.hs, dist/build/Copilot/Theorem/TransSys/Cast.o, dist/build/Copilot/Theorem/TransSys/Cast.dyn_o ) src/Copilot/Theorem/TransSys/Cast.hs:30:16: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In a case alternative: Patterns of type Type t not matched: Array _ Struct _ | 30 | castedType t = case t of | ^^^^^^^^^... [23 of 34] Compiling Copilot.Theorem.TransSys.Operators ( src/Copilot/Theorem/TransSys/Operators.hs, dist/build/Copilot/Theorem/TransSys/Operators.o, dist/build/Copilot/Theorem/TransSys/Operators.dyn_o ) src/Copilot/Theorem/TransSys/Operators.hs:138:54: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In a case alternative: Patterns of type C.Op1 _a _b not matched: C.Ceiling _ C.Floor _ C.GetField _ _ _ | 138 | handleOp1 resT (op, e) handleExpr notHandledF mkOp = case op of | ^^^^^^^^^^... src/Copilot/Theorem/TransSys/Operators.hs:224:65: warning: [GHC-62161] [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In a case alternative: Patterns of type C.Op2 _a _b _c not matched: C.Atan2 _ C.Index _ | 224 | handleOp2 resT (op, e1, e2) handleExpr notHandledF mkOp notOp = case op of | ^^^^^^^^^^... [33 of 34] Compiling Copilot.Theorem.What4.Translate ( src/Copilot/Theorem/What4/Translate.hs, dist/build/Copilot/Theorem/What4/Translate.o, dist/build/Copilot/Theorem/What4/Translate.dyn_o ) src/Copilot/Theorem/What4/Translate.hs:373:13: warning: [GHC-62161] [-Wincomplete-uni-patterns] Pattern match(es) are non-exhaustive In a pattern binding: Patterns of type Maybe (V.Vector x (XExpr sym)) not matched: Nothing | 373 | let Just v = V.fromList n elts | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [34 of 34] Compiling Copilot.Theorem.What4 ( src/Copilot/Theorem/What4.hs, dist/build/Copilot/Theorem/What4.o, dist/build/Copilot/Theorem/What4.dyn_o ) src/Copilot/Theorem/What4.hs:119:25: error: [GHC-88464] Variable not in scope: forM :: [CS.Property] -> (CS.Property -> TransM (WB.ExprBuilder x BuilderState (WB.Flags What4.FloatMode.FloatIEEE)) (CE.Name, SatResult)) -> TransM sym0 [(CE.Name, SatResult)] | 119 | let proveProperties = forM (CS.specProperties spec) $ \pr -> do | ^^^^ src/Copilot/Theorem/What4.hs:121:23: error: [GHC-88464] Variable not in scope: forM :: [Integer] -> (Integer -> TransM (WB.ExprBuilder x BuilderState (WB.Flags What4.FloatMode.FloatIEEE)) (WB.Expr x WI.BaseBoolType)) -> TransM (WB.ExprBuilder x BuilderState (WB.Flags What4.FloatMode.FloatIEEE)) (t2 (WB.Expr x WI.BaseBoolType)) | 121 | base_cases <- forM [0 .. maxBufLen - 1] $ \i -> do | ^^^^ src/Copilot/Theorem/What4.hs:129:21: error: [GHC-88464] Variable not in scope: forM :: [Integer] -> (Integer -> TransM (WB.ExprBuilder x BuilderState (WB.Flags What4.FloatMode.FloatIEEE)) (WB.Expr x WI.BaseBoolType)) -> TransM (WB.ExprBuilder x BuilderState (WB.Flags What4.FloatMode.FloatIEEE)) (t1 (WB.Expr x WI.BaseBoolType)) | 129 | ind_hyps <- forM [0 .. maxBufLen-1] $ \i -> do | ^^^^ src/Copilot/Theorem/What4.hs:265:9: error: [GHC-88464] Variable not in scope: forM :: [CS.Stream] -> (CS.Stream -> IO (CE.Id, Some CT.Type, [XExpr sym])) -> IO [(CE.Id, Some CT.Type, [XExpr sym])] | 265 | xs <- forM (CS.specStreams spec) $ | ^^^^ src/Copilot/Theorem/What4.hs:281:9: error: [GHC-88464] Variable not in scope: forM :: [CS.Stream] -> (CS.Stream -> TransM sym (CE.Id, Some CT.Type, [XExpr sym])) -> TransM sym [(CE.Id, Some CT.Type, [XExpr sym])] | 281 | xs <- forM (CS.specStreams spec) $ | ^^^^ src/Copilot/Theorem/What4.hs:299:9: error: [GHC-88464] Variable not in scope: forM :: [CS.Stream] -> (CS.Stream -> TransM sym (CE.Id, Some CT.Type, [XExpr sym])) -> TransM sym [(CE.Id, Some CT.Type, [XExpr sym])] | 299 | xs <- forM (CS.specStreams spec) $ | ^^^^ src/Copilot/Theorem/What4.hs:315:32: error: [GHC-88464] Variable not in scope: forM :: [CS.Trigger] -> (CS.Trigger -> TransM sym (CE.Name, WI.SymExpr sym WI.BaseBoolType, [(Some CT.Type, XExpr sym)])) -> TransM sym [(CE.Name, WI.SymExpr sym WI.BaseBoolType, [(Some CT.Type, XExpr sym)])] | 315 | computeTriggerState sym spec = forM (CS.specTriggers spec) $ | ^^^^ src/Copilot/Theorem/What4.hs:338:3: error: [GHC-88464] Variable not in scope: forM :: [(CE.Name, Some CT.Type)] -> ((CE.Name, Some CT.Type) -> TransM sym (CE.Name, Some CT.Type, XExpr sym)) -> TransM sym [(CE.Name, Some CT.Type, XExpr sym)] | 338 | forM exts $ \(nm, Some tp) -> do | ^^^^ src/Copilot/Theorem/What4.hs:353:16: error: [GHC-88464] Variable not in scope: forM :: [CE.Expr Bool] -> (CE.Expr Bool -> TransM sym [WI.SymExpr sym WI.BaseBoolType]) -> TransM sym (t0 [WI.SymExpr sym WI.BaseBoolType]) | 353 | concat <$> forM specPropertyExprs computeAssumption | ^^^^ src/Copilot/Theorem/What4.hs:370:27: error: [GHC-88464] Variable not in scope: forM :: [a0] -> (Integer -> TransM sym (WI.SymExpr sym WI.BaseBoolType)) -> TransM sym [WI.SymExpr sym WI.BaseBoolType] | 370 | computeAssumption e = forM [0 .. maxBufLen] $ \i -> do | ^^^^ cabal: Leaving directory '/tmp/cabal-tmp-2100177/copilot-theorem-3.18' Error: cabal: Some packages failed to install: copilot-language-3.18-5eeJGIpSMHy2x36XyERaxx depends on copilot-language-3.18 which failed to install. copilot-libraries-3.18-2UHZbtP8l1GIxXRHXhrQKT depends on copilot-libraries-3.18 which failed to install. copilot-theorem-3.18-1asrxsXpO5qKiYWSYiVmI7 failed during the building phase. The exception was: ExitFailure 1