Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows - Tidal fails to start with ghc 9.6.1 #1009

Closed
HighHarmonics2 opened this issue May 2, 2023 · 4 comments
Closed

Windows - Tidal fails to start with ghc 9.6.1 #1009

HighHarmonics2 opened this issue May 2, 2023 · 4 comments

Comments

@HighHarmonics2
Copy link

Multiple Windows users have reported failure to run Tidal under Pulsar after running the Chocolatey automated installer. The problem started March 12 when the GHC package on Chocolatey was updated to 9.6.1. The Tidal installer did not require a fixed GHC version, so Chocolatey would install the latest GHC.

With further investigation and install testing, it was determined that GHC 9.6.1 has similar errors when installed via ghcup. These problems do not occur on Linux or MacOS with 9.6.1.

These errors come when running Tidal commands via Pulsar or from a boot/reboot of Tidal:

t> ghc-9.6.1.exe:  | C:\Users\cristofolini\AppData\Roaming\cabal\x86_64-windows-ghc-9.6.1\network-3.1.2.8-5DV0dwervpqBgBVxbTLy29\libHSnetwork-3.1.2.8-5DV0dwervpqBgBVxbTLy29.a: unknown symbol '__mingw_vsprintf'`

GHC.ByteCode.Linker.lookupIE
During interactive linking, GHCi couldn't find the following symbol:
  tidalzm1zi9zi4zmCLxK61fFt9vJnm5xEO9En4_SoundziTidalziStream_Target_con_info or tidalzm1zi9zi4zmCLxK61fFt9vJnm5xEO9En4_SoundziTidalziStream_Target_static_info
This may be due to you not asking GHCi to load extra object files,
archives or DLLs needed by your current session.  Restart GHCi, specifying
the missing library using the -L/path/to/object/dir and -lmissinglibname
flags, or simply by naming the relevant files on the GHCi command line.
Alternatively, this link failure might indicate a bug in GHCi.

There is a closely related Issue recently raised on Haskell GitLab: https://gitlab.haskell.org/ghc/ghc/-/issues/23309


We have been telling people that ghc 9.6.1 is not compatible with Tidal and they need to downgrade to 9.4.4, which is known to be stable and reliable on Windows. Work is underway to get the Tidal Cycles package in Chocolatey to restrict ghc to 9.4.4, but that is delayed. Ultimately, we need a fix for this so that Windows users could run Tidal with ghc 9.6.1.

@Zalastax
Copy link
Collaborator

Zalastax commented May 2, 2023

The linked issue has a great discussion that I find easy to follow. The very quick summary is that GHC changed compiler tool chain on Windows and now no longer ships MinGW. However, the network library accidentally forced loading of MinGW. This was fixed in haskell/network#552. Let's monitor the thread to see whether we should force a newer version of network in Tidal or if they will resolve it: haskell/network#552 (comment)

@il-mix
Copy link

il-mix commented May 2, 2023

Fix was implemented in network-3.1.2.9. Installing GHC 9.6.1 and Cabal 3.10.1.0 (last versions at the current time), network-3.1.2.9 package will be automatically installed by Cabal. With this version there will be no more errors when booting Tidal from Pulsar.

@Zalastax
Copy link
Collaborator

They ended up fixing this at the source! From the discussion in haskell/network#552 I believe this is solved and cabal will install the correct version of the library. @HighHarmonics2 let's close this issue?

@HighHarmonics2
Copy link
Author

Thanks @Zalastax. Yes, this is resolved. I'll close it.

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

No branches or pull requests

3 participants