haskell / ThreadScope

A graphical tool for profiling parallel Haskell programs
http://www.haskell.org/haskellwiki/ThreadScope
Other
153 stars 36 forks source link

ThreadScope doesn't build on Windows #97

Open HerbM opened 4 years ago

HerbM commented 4 years ago
  1. No Windows binaries available as indicated on the HaskelWiki ThreadScope page (and link): ThreadScope https://wiki.haskell.org/ThreadScope ...which points here: v0.2.11.1 https://github.com/haskell/ThreadScope/releases

  2. Building from source fails to build Cairo, GTK, glib and sometimes more. (see below).

Trying to follow various links/pages to install a MSys2 for this, normal HaskellPlatform, Stack, choco ghc & cabal continues to result in same or very similar errors. (Also recommendations about adding gtk to Msys2 didn't work as documented there.)

[I really appreciated the consideration and work put into making this repo work.] Thank you.

Also, even though I am a beginner, I had significant help over 3 days (2-4 hours each) from kind people on Discord Functional Programming -> Haskell -> Tools.

Windows 10: The following is the typical result whether building in PowerShell, cmd.exe, or Msys2 console with cabal or stack (from Stack or HaskelPlatform fresh installs) and various versions of ghc & cabal but this one is ghc 8.8.1 & cabal 3.0.0.0 from Chocolatey.

cabal.exe: Failed to build cairo-0.13.6.1-987105696650394a34eb74af34617e03a3933041. The failure occurred during the configure step. Failed to build gio-0.13.6.1 because it depends on gio-0.13.6.1 which itself failed to build. Failed to build glib-0.13.7.1-3582c70d9057abba298033561529f13cb9f4d125. The failure occurred during the configure step. Failed to build gtk-0.15.3 because it depends on gtk-0.15.3 which itself failed to build. Failed to build pango-0.13.6.1 because it depends on pango-0.13.6.1 which itself failed to build. Failed to build threadscope-0.2.11.1 because it depends on threadscope-0.2.11.1 which itself failed to build.

maoe commented 4 years ago

Do you have more detailed log messages? Also does the Windows binary for v0.2.11 work?

HerbM commented 4 years ago

I'll get the entire log for you. Do I need to add switches for more verbose output?

Also, I didn't know about the v0.2.11 binaries so will try those next.

Thx.

maoe commented 4 years ago

Do I need to add switches for more verbose output?

Probably cabal build with -j1 is enough to see what's going.

Thanks.

HerbM commented 4 years ago

Glasgow Haskell Compiler, Version 8.8.1, stage 2 booted by GHC version 8.6.2 cabal-install version 3.0.0.0 compiled using version 3.0.0.0 of the Cabal librarycabal v2-build --build-log=ThreadScopeLOG.txt --verbose=3

cabal v2-clean cabal v2-build --build-log=ThreadScopeLOG.txt --verbose=3

ThreadScopeLOG.txt

Thanks again for any consideration, suggestions, or fixes you can offer....

maoe commented 4 years ago
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found

Apparently the cairo C library isn't available for some reason.

maoe commented 4 years ago

Latest Windows binary is available at https://github.com/haskell/ThreadScope/releases/tag/v0.2.13. I edited the title accordingly.