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