Resolving dependencies... Configuring ansi-terminal-0.6.2.3... Configuring base-orphans-0.5.4... Building ansi-terminal-0.6.2.3... Building base-orphans-0.5.4... Installed base-orphans-0.5.4 Configuring cmdargs-0.10.14... Building cmdargs-0.10.14... Configuring dlist-0.8.0.2... Installed ansi-terminal-0.6.2.3 Building dlist-0.8.0.2... Configuring prelude-extras-0.4.0.3... Installed dlist-0.8.0.2 Building prelude-extras-0.4.0.3... Configuring random-1.1... Installed prelude-extras-0.4.0.3 Building random-1.1... Configuring mtl-2.2.1... Installed random-1.1 Building mtl-2.2.1... Configuring safe-0.3.10... Installed mtl-2.2.1 Building safe-0.3.10... Configuring semigroups-0.18.2... Installed cmdargs-0.10.14 Building semigroups-0.18.2... Configuring split-0.2.3.1... Installed safe-0.3.10 Building split-0.2.3.1... Configuring stm-2.4.4.1... Installed semigroups-0.18.2 Building stm-2.4.4.1... Configuring stringsearch-0.3.6.6... Installed split-0.2.3.1 Building stringsearch-0.3.6.6... Configuring text-1.2.2.1... Installed stm-2.4.4.1 Building text-1.2.2.1... Configuring transformers-compat-0.5.1.4... Installed stringsearch-0.3.6.6 Building transformers-compat-0.5.1.4... Configuring unix-compat-0.4.2.0... Installed transformers-compat-0.5.1.4 Building unix-compat-0.4.2.0... Installed unix-compat-0.4.2.0 Configuring regex-base-0.93.2... Building regex-base-0.93.2... Configuring StateVar-1.1.0.4... Installed regex-base-0.93.2 Building StateVar-1.1.0.4... Configuring MonadRandom-0.4.2.3... Installed StateVar-1.1.0.4 Building MonadRandom-0.4.2.3... Configuring exceptions-0.8.3... Installed text-1.2.2.1 Building exceptions-0.8.3... Configuring mmorph-1.0.9... Installed MonadRandom-0.4.2.3 Building mmorph-1.0.9... Configuring tagged-0.8.5... Installed exceptions-0.8.3 Configuring transformers-base-0.4.4... Installed mmorph-1.0.9 Building tagged-0.8.5... Building transformers-base-0.4.4... Configuring async-2.1.1... Installed transformers-base-0.4.4 Building async-2.1.1... Installed tagged-0.8.5 Configuring regex-pcre-0.94.4... Building regex-pcre-0.94.4... Configuring regex-posix-0.95.2... Installed async-2.1.1 Building regex-posix-0.95.2... Configuring hashable-1.2.4.0... Installed regex-pcre-0.94.4 Building hashable-1.2.4.0... Configuring monad-control-1.0.1.0... Installed regex-posix-0.95.2 Building monad-control-1.0.1.0... Configuring distributive-0.5.0.2... Installed hashable-1.2.4.0 Installed monad-control-1.0.1.0 Configuring void-0.7.1... Building void-0.7.1... Configuring unordered-containers-0.2.7.1... Installed void-0.7.1 Building unordered-containers-0.2.7.1... Building distributive-0.5.0.2... Configuring contravariant-1.4... Installed distributive-0.5.0.2 Building contravariant-1.4... Installed contravariant-1.4 Configuring comonad-5... Installed unordered-containers-0.2.7.1 Building comonad-5... Installed comonad-5 Configuring bifunctors-5.4.1... Building bifunctors-5.4.1... Installed bifunctors-5.4.1 Configuring profunctors-5.2... Configuring semigroupoids-5.1... Building profunctors-5.2... Building semigroupoids-5.1... Installed profunctors-5.2 Installed semigroupoids-5.1 Configuring free-4.12.4... Building free-4.12.4... Installed free-4.12.4 Configuring either-4.4.1.1... Building either-4.4.1.1... Installed either-4.4.1.1 Downloading cgrep-6.5.15... Configuring cgrep-6.5.15... Building cgrep-6.5.15... Failed to install cgrep-6.5.15 Build log ( /home/builder/.cabal/logs/cgrep-6.5.15.log ): cabal: Entering directory '/tmp/cabal-tmp-12584/cgrep-6.5.15' Configuring cgrep-6.5.15... Building cgrep-6.5.15... Preprocessing executable 'cgrep' for cgrep-6.5.15... [ 1 of 26] Compiling Util ( src/Util.hs, dist/build/cgrep/cgrep-tmp/Util.o ) [ 2 of 26] Compiling Paths_cgrep ( dist/build/autogen/Paths_cgrep.hs, dist/build/cgrep/cgrep-tmp/Paths_cgrep.o ) [ 3 of 26] Compiling Options ( src/Options.hs, dist/build/cgrep/cgrep-tmp/Options.o ) [ 4 of 26] Compiling Debug ( src/Debug.hs, dist/build/cgrep/cgrep-tmp/Debug.o ) [ 5 of 26] Compiling CmdOptions ( src/CmdOptions.hs, dist/build/cgrep/cgrep-tmp/CmdOptions.o ) [ 6 of 26] Compiling CGrep.Types ( src/CGrep/Types.hs, dist/build/cgrep/cgrep-tmp/CGrep/Types.o ) [ 7 of 26] Compiling CGrep.Token ( src/CGrep/Token.hs, dist/build/cgrep/cgrep-tmp/CGrep/Token.o ) [ 8 of 26] Compiling CGrep.Parser.Token ( src/CGrep/Parser/Token.hs, dist/build/cgrep/cgrep-tmp/CGrep/Parser/Token.o ) [ 9 of 26] Compiling CGrep.Parser.Generic.Token ( src/CGrep/Parser/Generic/Token.hs, dist/build/cgrep/cgrep-tmp/CGrep/Parser/Generic/Token.o ) [10 of 26] Compiling CGrep.Parser.Cpp.Token ( src/CGrep/Parser/Cpp/Token.hs, dist/build/cgrep/cgrep-tmp/CGrep/Parser/Cpp/Token.o ) [11 of 26] Compiling CGrep.Output ( src/CGrep/Output.hs, dist/build/cgrep/cgrep-tmp/CGrep/Output.o ) [12 of 26] Compiling CGrep.Lang ( src/CGrep/Lang.hs, dist/build/cgrep/cgrep-tmp/CGrep/Lang.o ) [13 of 26] Compiling Config ( src/Config.hs, dist/build/cgrep/cgrep-tmp/Config.o ) [14 of 26] Compiling CGrep.Distance ( src/CGrep/Distance.hs, dist/build/cgrep/cgrep-tmp/CGrep/Distance.o ) [15 of 26] Compiling CGrep.Context ( src/CGrep/Context.hs, dist/build/cgrep/cgrep-tmp/CGrep/Context.o ) [16 of 26] Compiling CGrep.Common ( src/CGrep/Common.hs, dist/build/cgrep/cgrep-tmp/CGrep/Common.o ) [17 of 26] Compiling CGrep.Filter ( src/CGrep/Filter.hs, dist/build/cgrep/cgrep-tmp/CGrep/Filter.o ) [18 of 26] Compiling CGrep.Parser.WildCard ( src/CGrep/Parser/WildCard.hs, dist/build/cgrep/cgrep-tmp/CGrep/Parser/WildCard.o ) [19 of 26] Compiling CGrep.Strategy.BoyerMoore ( src/CGrep/Strategy/BoyerMoore.hs, dist/build/cgrep/cgrep-tmp/CGrep/Strategy/BoyerMoore.o ) [20 of 26] Compiling CGrep.Strategy.Cpp.Semantic ( src/CGrep/Strategy/Cpp/Semantic.hs, dist/build/cgrep/cgrep-tmp/CGrep/Strategy/Cpp/Semantic.o ) [21 of 26] Compiling CGrep.Strategy.Cpp.Tokenizer ( src/CGrep/Strategy/Cpp/Tokenizer.hs, dist/build/cgrep/cgrep-tmp/CGrep/Strategy/Cpp/Tokenizer.o ) [22 of 26] Compiling CGrep.Strategy.Generic.Semantic ( src/CGrep/Strategy/Generic/Semantic.hs, dist/build/cgrep/cgrep-tmp/CGrep/Strategy/Generic/Semantic.o ) [23 of 26] Compiling CGrep.Strategy.Levenshtein ( src/CGrep/Strategy/Levenshtein.hs, dist/build/cgrep/cgrep-tmp/CGrep/Strategy/Levenshtein.o ) [24 of 26] Compiling CGrep.Strategy.Regex ( src/CGrep/Strategy/Regex.hs, dist/build/cgrep/cgrep-tmp/CGrep/Strategy/Regex.o ) [25 of 26] Compiling CGrep.CGrep ( src/CGrep/CGrep.hs, dist/build/cgrep/cgrep-tmp/CGrep/CGrep.o ) [26 of 26] Compiling Main ( src/Main.hs, dist/build/cgrep/cgrep-tmp/Main.o ) src/Main.hs:105:61: error: Ambiguous occurrence ‘isSymbolicLink’ It could refer to either ‘System.Directory.isSymbolicLink’, imported from ‘System.Directory’ at src/Main.hs:45:1-23 or ‘System.PosixCompat.Files.isSymbolicLink’, imported from ‘System.PosixCompat.Files’ at src/Main.hs:48:1-31 (and originally defined in ‘unix-2.7.2.0:System.Posix.Files.Common’) cabal: Leaving directory '/tmp/cabal-tmp-12584/cgrep-6.5.15' cabal: Error: some packages failed to install: cgrep-6.5.15 failed during the building phase. The exception was: ExitFailure 1