Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Cannot install Clash on Mac OS X, 10.12.6. #7

Open
latendre opened this issue Dec 21, 2017 · 2 comments
Open

Cannot install Clash on Mac OS X, 10.12.6. #7

latendre opened this issue Dec 21, 2017 · 2 comments

Comments

@latendre
Copy link

I tried to install Clash on OS X. It appears that even with ghc 8.2.2, the dependencies failed. Does it mean that we need exactly version 8.0 of GHC with Clash? See trace below.

Thank you.

-- Mario

ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.2

cabal install clash-ghc --enable-documentation --enable-executable-dynamic
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: clash-ghc-0.7.2 (user goal)
trying: base-4.10.1.0/installed-4.1... (dependency of clash-ghc-0.7.2)
next goal: ghci (dependency of clash-ghc-0.7.2)
rejecting: ghci-8.2.2/installed-8.2..., ghci-8.2.2, ghci-8.2.1 (conflict:
clash-ghc => ghci>=8.0.1 && <8.2)
rejecting: ghci-8.0.2, ghci-8.0.1 (conflict: base==4.10.1.0/installed-4.1...,
ghci => base==4.9.*)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: clash-ghc, template-haskell,
clash-lib, lens, clash-prelude, clash-verilog, base, ghc, reflection, unbound,
RepLib, mtl, ghci

@christiaanb
Copy link
Member

Clash is deeply tied to GHC, so it’s been very difficult to support multiple versions. The currently released version only runs on GHC 8. While the next version will only work with GHC 8.2.

You can try the development version, which will work with your GHC 8.2 install, using the following instructions: https://github.com/clash-lang/clash-compiler/wiki/FAQ#how-do-i-run-the-development-version-of-clash

But note that there are considerable changes to the API compared to the released version.

@leonschoorl
Copy link
Member

Or you could try to let stack manage everything.

  1. Install stack using these instructions
  2. Install Clash using the command: stack install --resolver=lts-9.20 --install-ghc clash-ghc
  3. Now to use clash you have to run it with stack and the right resolver:
    stack --resolver lts-9.20 exec -- clash --vhdl YourFile.hs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants