1
Vote

Error building koka

description

➜ koka jake
build: koka 0.6.0-dev (debug version)
mkdir -p out/debug/Platform
ghc -c src/Platform/cpp/Platform/cconsole.c -fwarn-incomplete-patterns -io...
ghc -c src/Platform/cpp/Platform/Config.hs -fwarn-incomplete-patterns -iou...
ghc -c src/Platform/cpp/Platform/Runtime.hs -fwarn-incomplete-patterns -io...
ghc -c src/Platform/cpp/Platform/Var.hs -fwarn-incomplete-patterns -iout/d...
ghc -c src/Platform/cpp/Platform/Console.hs -fwarn-incomplete-patterns -io...
ghc -c src/Platform/cpp/Platform/ReadLine.hs -fwarn-incomplete-patterns -i...
ghc -c src/Platform/cpp/Platform/GetOptions.hs -fwarn-incomplete-patterns ...
ghc -c src/Platform/cpp/Platform/Filetime.hs -fwarn-incomplete-patterns -i...
ghc -c src/Lib/Printer.hs -fwarn-incomplete-patterns -iout/debug -odir out...
/debug -hidir out/debug
src/Lib/Printer.hs:37:1:
Failed to load interface for ‘Data.Text’
Perhaps you meant Data.Set (from containers-0.5.6.2)
Use -v to see a list of the files searched for.
src/Lib/Printer.hs:38:1:
Failed to load interface for ‘Data.Text.IO’
Use -v to see a list of the files searched for.
command failed with exit code 1.

➜ koka ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3
➜ koka node --version
v5.9.1

any ideas?

comments

daan wrote Apr 28, 2016 at 3:07 PM

Too strange -- Data.Text is a standard package; I am building here with 7.10.2 and some previous version of ghc and everything works fine. Perhaps it is the experimental version you build with? Can you check if you have the text package?
ghc-pkg list 
lists everything; you can say
ghc-pkg list text
to see if you have the text package.

Hope this helps,
-- Daan

anaderi wrote Apr 29, 2016 at 6:25 PM

➜  bin ghc-pkg list text
/usr/local/Cellar/ghc/7.10.3b/lib/ghc-7.10.3/package.conf.d
➜  bin ghc-pkg list
/usr/local/Cellar/ghc/7.10.3b/lib/ghc-7.10.3/package.conf.d
   Cabal-1.22.5.0
   array-0.5.1.0
   base-4.8.2.0
   bin-package-db-0.0.0.0
   binary-0.7.5.0
   bytestring-0.10.6.0
   containers-0.5.6.2
   deepseq-1.4.1.1
   directory-1.2.2.0
   filepath-1.4.0.0
   ghc-7.10.3
   ghc-prim-0.4.0.0
   haskeline-0.7.2.1
   hoopl-3.10.0.2
   hpc-0.6.0.2
   integer-gmp-1.0.0.0
   pretty-1.1.2.0
   process-1.2.3.0
   rts-1.0
   template-haskell-2.10.0.0
   terminfo-0.4.0.1
   time-1.5.0.1
   transformers-0.4.2.0
   unix-2.7.1.0
   xhtml-3000.2.1
➜  bin

daan wrote Apr 29, 2016 at 7:38 PM

It seems you don't have the package text; strange -- I guess I always install the Haskell Platform which comes with this by default but plain GHC may not have it. Anyway, you can install it using cabal, i.e.
cabal install text
should do the trick.