Cannot install cabal install tidal for macos 10.11.6

hi, i tried to install tidal using the

" cabal install tidal --lib "

i already installed the haskell 8.6.3 ,but when i do the command for tidal i got this info on my terminal:

LOG ON THE TERMINAL

Last login: Sat Nov 28 14:28:14 on ttys000

Raihans-MacBook-Pro:~ raihan$ cabal update

Warning: The update command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-update command

or the legacy v1-update alias as new-style projects will become the default in

the next version of cabal-install. Please file a bug if you cannot replicate a

working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

Downloading the latest package list from hackage.haskell.org

To revert to previous state run:

cabal update --index-state='2020-11-28T02:00:03Z'

Raihans-MacBook-Pro:~ raihan$ cabal new-install tidal --lib

Resolving dependencies...

Build profile: -w ghc-8.6.3 -O1

In order, the following will be built (use -v for more details):

  • comonad-5.0.6 (lib:comonad) (requires build)

  • network-3.1.2.1 (lib:network) (requires build)

  • vector-0.12.1.2 (lib) (requires build)

  • bifunctors-5.5.8 (lib) (requires build)

  • hosc-0.18.1 (lib) (requires build)

  • tidal-1.6.1 (lib) (requires build)

Starting comonad-5.0.6 (all, legacy fallback)

Starting vector-0.12.1.2 (lib)

Starting network-3.1.2.1 (all, legacy fallback)

Building vector-0.12.1.2 (lib)

Building comonad-5.0.6 (all, legacy fallback)

Building network-3.1.2.1 (all, legacy fallback)

Haddock comonad-5.0.6 (all, legacy fallback)

Installing comonad-5.0.6 (all, legacy fallback)

Completed comonad-5.0.6 (all, legacy fallback)

Haddock vector-0.12.1.2 (lib)

Installing vector-0.12.1.2 (lib)

Completed vector-0.12.1.2 (lib)

Warning: Some package(s) failed to build. Try rerunning with -j1 if you can't

see the error.

Failed to build network-3.1.2.1.

Build log ( /Users/raihan/.cabal/logs/ghc-8.6.3/ntwrk-3.1.2.1-842fe959.log ):

Configuring network-3.1.2.1...

configure: WARNING: unrecognized options: --with-compiler

checking build system type... x86_64-apple-darwin15.6.0

checking host system type... x86_64-apple-darwin15.6.0

checking for gcc... /usr/bin/gcc

checking whether the C compiler works... yes

checking for C compiler default output file name... a.out

checking for suffix of executables...

checking whether we are cross compiling... no

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether /usr/bin/gcc accepts -g... yes

checking for /usr/bin/gcc option to accept ISO C89... none needed

checking for an ANSI C-conforming const... yes

checking how to run the C preprocessor... /usr/bin/gcc -E

checking for grep that handles long lines and -e... /usr/bin/grep

checking for egrep... /usr/bin/grep -E

checking for ANSI C header files... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking limits.h usability... yes

checking limits.h presence... yes

checking for limits.h... yes

checking for stdlib.h... (cached) yes

checking for unistd.h... (cached) yes

checking for sys/types.h... (cached) yes

checking fcntl.h usability... yes

checking fcntl.h presence... yes

checking for fcntl.h... yes

checking sys/uio.h usability... yes

checking sys/uio.h presence... yes

checking for sys/uio.h... yes

checking sys/socket.h usability... yes

checking sys/socket.h presence... yes

checking for sys/socket.h... yes

checking netinet/in.h usability... yes

checking netinet/in.h presence... yes

checking for netinet/in.h... yes

checking netinet/tcp.h usability... yes

checking netinet/tcp.h presence... yes

checking for netinet/tcp.h... yes

checking sys/un.h usability... yes

checking sys/un.h presence... yes

checking for sys/un.h... yes

checking arpa/inet.h usability... yes

checking arpa/inet.h presence... yes

checking for arpa/inet.h... yes

checking netdb.h usability... yes

checking netdb.h presence... yes

checking for netdb.h... yes

checking net/if.h usability... yes

checking net/if.h presence... yes

checking for net/if.h... yes

checking netioapi.h usability... no

checking netioapi.h presence... no

checking for netioapi.h... no

checking for struct ucred... no

checking for gai_strerror... yes

checking for gethostent... yes

checking for accept4... no

checking for getpeereid... yes

checking whether AI_ADDRCONFIG is declared... yes

checking whether AI_ALL is declared... yes

checking whether AI_NUMERICSERV is declared... yes

checking whether AI_V4MAPPED is declared... yes

checking whether IPV6_V6ONLY is declared... yes

checking whether IPPROTO_IP is declared... yes

checking whether IPPROTO_TCP is declared... yes

checking whether IPPROTO_IPV6 is declared... yes

checking whether SO_PEERCRED is declared... no

checking for struct msghdr.msg_control... yes

checking for struct msghdr.msg_accrights... no

checking for struct sockaddr.sa_len... yes

configure: creating ./network.buildinfo

configure: creating ./config.status

config.status: creating include/HsNetworkConfig.h

configure: WARNING: unrecognized options: --with-compiler

Preprocessing library for network-3.1.2.1..

Cmsg.hsc:60:16: error: use of undeclared identifier 'IP_RECVTOS'

hsc_const (IP_RECVTOS);

^

Cmsg.hsc:60:16: error: use of undeclared identifier 'IP_RECVTOS'

Cmsg.hsc:60:16: error: use of undeclared identifier 'IP_RECVTOS'

3 errors generated.

compiling dist/build/Network/Socket/Posix/Cmsg_hsc_make.c failed (exit code 1)

command was: /usr/bin/gcc -c dist/build/Network/Socket/Posix/Cmsg_hsc_make.c -o dist/build/Network/Socket/Posix/Cmsg_hsc_make.o -fno-stack-protector -fno-stack-protector -D__GLASGOW_HASKELL__=806 -Ddarwin_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Ddarwin_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Iinclude -Idist/build/include -Idist/build/autogen -Idist/build/global-autogen -include dist/build/autogen/cabal_macros.h -I/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/unix-2.7.2.2/include -I/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/time-1.8.0.2/include -I/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/bytestring-0.10.8.2/include -I/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/base-4.12.0.0/include -I/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/integer-gmp-1.0.2.0/include -I/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include -I/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/

cabal: Failed to build network-3.1.2.1 (which is required by tidal-1.6.1). See

the build log above for details.

Raihans-MacBook-Pro:~ raihan

======

could anyone help me with this issue?

Sorry I only just saw this question, did you manage to resolve it?

I had the exact same issue with install on Mac OS Mojave. To resolve, I followed the instructions at the end of the page here:
https://tidalcycles.org/Troubleshooting_a_Tidal_install

and installed with Stack instead of Cabal. That got me most of the way there.

Also added this entry to .bashrc in my user folder:
alias ghci='stack ghci'

That works for me. Maybe it could help if anyone else encounters the same issue?

1 Like