[Barrelfish-users] build error: Main.hs: Expecting one more argument to ‘Exp’
Michael Neilly
mneilly at yahoo.com
Sat Apr 29 22:45:52 CEST 2017
FYI - I just wrote a dumb script that moved HEAD back 1 commit at a time and ran hake.sh until it found a commit that worked.
I have to go back to August 17 2015 to find a hash that doesn't fail with the same message.
commit 2344a661f9c23c73358fc92dc5f4fbfe9ad7d3beDate: Mon Aug 17 21:22:53 2015 +0200
Generates a Makefile
The next commit fails with same error:
commit 8c286e59ab0913c0827954210ae6daab52c11bf0Date: Tue Aug 18 09:24:19 2015 +0200
Replaced old hake
From: Michael Neilly <mneilly at yahoo.com>
To: Timothy Roscoe <troscoe at inf.ethz.ch>
Cc: "barrelfish-users at lists.inf.ethz.ch" <barrelfish-users at lists.inf.ethz.ch>
Sent: Saturday, April 29, 2017 11:42 AM
Subject: Re: [Barrelfish-users] build error: Main.hs: Expecting one more argument to ‘Exp’
Thanks for the response Timothy. Unfortunately, I'm seeing the same error on Ubuntu with GHC 7.10.3. FWIW - I've attached the output from "cabal list --installed" and "dpkg -l | grep ghc" to show the versions in case there are any issues there...
mneilly at vm-ubuntu:~/OSS/barrelfish/build$
NAME="Ubuntu"VERSION="16.04.1 LTS (Xenial Xerus)"ID=ubuntuID_LIKE=debianPRETTY_NAME="Ubuntu 16.04.1 LTS"VERSION_ID="16.04"HOME_URL="http://www.ubuntu.com/"SUPPORT_URL="http://help.ubuntu.com/"BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"UBUNTU_CODENAME=xenial
mneilly at vm-ubuntu:~/OSS/barrelfish/build$ ghc --versionThe Glorious Glasgow Haskell Compilation System, version 7.10.3
mneilly at vm-ubuntu:~/OSS/barrelfish/build$ ../hake/hake.sh -s ../ -a x86_64Install directory defaulting to '.'Source directory is ../Architectures to build: "x86_64"Setting up hake build directory...You already have Config.hs, leaving it as-is.Building hake...[13 of 13] Compiling Main ( ../hake/Main.hs, hake/Main.o )
../hake/Main.hs:348:43: Expecting one more argument to ‘Exp’ The first argument of ‘Either’ should have kind ‘*’, but ‘Exp’ has kind ‘* -> *’ In the type signature for ‘parseHake’: parseHake :: FilePath -> String -> Either Exp HakeError
../hake/Main.hs:406:25: Expecting one more argument to ‘Exp’ Expected a type, but ‘Exp’ has kind ‘* -> *’ In the type signature for ‘wrapHake’: wrapHake :: FilePath -> Exp -> Exp
From: Timothy Roscoe <troscoe at inf.ethz.ch>
To: Michael Neilly <mneilly at yahoo.com>
Cc: "barrelfish-users at lists.inf.ethz.ch" <barrelfish-users at lists.inf.ethz.ch>
Sent: Saturday, April 29, 2017 10:29 AM
Subject: Re: [Barrelfish-users] build error: Main.hs: Expecting one more argument to ‘Exp’
Dear Michael,
This is most likely a Haskell problem - the glorious Glasgow Haskell
people like to make subtle incompatible changes to their compiler with
each new version.
As a rule, we always support (and our CI tests run on) a reasonably
recent version of Ubuntu LTS - right now that's 16.04 (Xenial), which
ships with GHC version 7.10.3. I'd suggest trying that, and let us
know if the problem persists.
Best regards,
-- Mothy
At Sat, 29 Apr 2017 16:03:33 +0000, Michael Neilly <mneilly at yahoo.com> wrote:
> Hello, I thought I'd take a look at barrelfish. I have cloned the git repo and am attempting to build from mastesr but I am seeing the following error. Any suggestions on how I can resolve this? Thx!
> $ ghc --versionThe Glorious Glasgow Haskell Compilation System, version 8.0.1
> $ ../hake/hake.sh -s ../ -a x86_64Install directory defaulting to '.'Source directory is ../Architectures to build: "x86_64"Setting up hake build directory...You already have Config.hs, leaving it as-is.Building hake...[13 of 13] Compiling Main ( ../hake/Main.hs, hake/Main.o )
> ../hake/Main.hs:348:43: error: • Expecting one more argument to ‘Exp’ Expected a type, but ‘Exp’ has kind ‘* -> *’ • In the first argument of ‘Either’, namely ‘Exp’ In the type signature: parseHake :: FilePath -> String -> Either Exp HakeError
> ../hake/Main.hs:406:25: error: • Expecting one more argument to ‘Exp’ Expected a type, but ‘Exp’ has kind ‘* -> *’ • In the type signature: wrapHake :: FilePath -> Exp -> Exp
> ../hake/Main.hs:406:32: error: • Expecting one more argument to ‘Exp’ Expected a type, but ‘Exp’ has kind ‘* -> *’ • In the type signature: wrapHake :: FilePath -> Exp -> Exp$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/barrelfish-users/attachments/20170429/028f8b1e/attachment.html>
More information about the Barrelfish-users
mailing list