# Failed to build exe:hsc2hs from hsc2hs-0.68.7

**URL:** <https://uzu.lurk.org/t/failed-to-build-exe-hsc2hs-from-hsc2hs-0-68-7/3418>\
**Category:** TidalCycles\
**Tags:** installation\
**Created:** [19 August 2021 12:29 UTC](https://uzu.lurk.org/t/failed-to-build-exe-hsc2hs-from-hsc2hs-0-68-7/3418 "2021-08-19T12:29:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francesco\_Corvi](https://uzu.lurk.org/user_avatar/uzu.lurk.org/francesco_corvi/32/2826_2.png) [@Francesco\_Corvi](https://uzu.lurk.org/u/Francesco_Corvi)\
**Post date:** [19 August 2021 12:29 UTC](https://uzu.lurk.org/t/failed-to-build-exe-hsc2hs-from-hsc2hs-0-68-7/3418/1 "2021-08-19T12:29:04Z")

</div>

Hello everyone,  
during a workshop I encountered this problem when installing tidal on one laptop which was solved with the help of @Leofltt. This post is for people that will have the same issue in the future.

If you get this error when installing tidal from cabal:

```haskell
cabal: Failed to build exe:hsc2hs from hsc2hs-0.68.7 (which is required by
tidal-1.7.8). 

```

It means your ghc version and your cabal version are not compatible, this can be solved by updating ghc to a newer version.

If you have installed with ghcup type this:

```haskell
ghcup install ghc 9.0.1

```

and then after the installation is done:

```haskell
ghcup set ghc 9.0.1

```

after setting the appropriate version you should be able to install tidal with

```haskell
cabal install tidal --lib

```

Hope this solves your problem if you stumble across this 😃

---

<div class="post-metadata">

**Author:** ![juanscolari](https://uzu.lurk.org/user_avatar/uzu.lurk.org/juanscolari/32/2128_2.png) [@juanscolari](https://uzu.lurk.org/u/juanscolari)\
**Post date:** [5 January 2022 02:48 UTC](https://uzu.lurk.org/t/failed-to-build-exe-hsc2hs-from-hsc2hs-0-68-7/3418/2 "2022-01-05T02:48:40Z")

</div>

For Mac users with the M1 chip this may solve it:

```haskell
C_INCLUDE_PATH="`xcrun --show-sdk-path`/usr/include/ffi" cabal install tidal --lib

```

I ran into the same issue, but changing the `ghc` version didn't work for me.

I found that solution [on this post](https://gitlab.haskell.org/ghc/ghc/-/issues/20592)
