2
Vote

OS X 10.9 install error due to missing directory?

description

Hello. My installation process is dying (near the end I think) during the jake command like this:
... everthing builds fine, then:
> ghc -c src/Compiler/Compile.hs -fwarn-incomplete-patterns -O2 -iout/releas...
> ghc -c src/Interpreter/Command.hs -fwarn-incomplete-patterns -O2 -iout/rel...
> ghc -c src/Interpreter/Interpret.hs -fwarn-incomplete-patterns -O2 -iout/r...
> ghc -c src/Main.hs -fwarn-incomplete-patterns -O2 -iout/release -odir out/...
> ghc -o out/release/koka-0.5.0-dev -fwarn-incomplete-patterns -O2 -package ...
build ok.
> out/release/koka-0.5.0-dev  --outdir=out/lib -ilib
does not existjake aborted.
Error: Process exited with error.
    at api.fail (/usr/local/lib/node_modules/jake/lib/api.js:326:18)
    at null.<anonymous> (/usr/local/lib/node_modules/jake/lib/utils/index.js:136:9)
(See full trace by running task with --trace)
It occurs for all jake build variants.

After some inspection, I manually ran:
out/debug/koka-0.5.0-dev  --outdir=out/debug/Lib
And it does start up the koka interpreter, but there seems to be a problem with loading some things:
error: could not find: std/core
search path: <empty>

unable to load the std/core module; standard functions are not available
evaluation is disabled
Then again, I used "--outdir=out/debug/Lib" which doesn't make a lot of sense (a directory named "Lib" as an option named "outdir").

So there seems to be a path misconfiguration somewhere.

comments

chritcu wrote Jan 6, 2015 at 2:31 PM

Having the same problem building Koka on Linux.
[hritcu@detained koka]$ jake variant=release --trace
build: koka 0.6.0-dev (release version)
build ok.
> out/release/koka-0.6.0-dev  --outdir=out/lib -ilib 
does not existjake aborted.
Error: Process exited with error.
    at api.fail (/home/hritcu/.npm-global/lib/node_modules/jake/lib/api.js:336:18)
    at null.<anonymous> (/home/hritcu/.npm-global/lib/node_modules/jake/lib/utils/index.js:136:9)
    at emit (events.js:98:17)
    at ChildProcess.<anonymous> (/home/hritcu/.npm-global/lib/node_modules/jake/lib/utils/index.js:219:20)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12)
[hritcu@detained koka]$ ls out    
debug  release
I could run this manually though:
[hritcu@detained koka]$ out/release/koka-0.6.0-dev  --outdir=out/release -ilib 
 _          _           
| |        | |          
| | __ ___ | | __ __ _  
| |/ // _ \| |/ // _` | welcome to the koka interpreter
|   <| (_) |   <| (_| | version 0.6.0-dev, Jan  6 2015
|_|\_\\___/|_|\_\\__,_| type :? for help

compile: lib/std/core.kk
check  : std/core

>