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

ThreadScope doesn't build on Windows #97

Open
HerbM opened this issue Nov 29, 2019 · 6 comments
Open

ThreadScope doesn't build on Windows #97

HerbM opened this issue Nov 29, 2019 · 6 comments

Comments

@HerbM
Copy link

HerbM commented Nov 29, 2019

  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
Copy link
Member

maoe commented Nov 29, 2019

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

@HerbM
Copy link
Author

HerbM commented Nov 30, 2019

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
Copy link
Member

maoe commented Nov 30, 2019

Do I need to add switches for more verbose output?

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

Thanks.

@HerbM
Copy link
Author

HerbM commented Nov 30, 2019

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
Copy link
Member

maoe commented Dec 2, 2019

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.

  • How did you install cairo?
  • Can you check if pkg-config --modversion cairo prints a proper version in your shell?

@maoe maoe changed the title ThreadScope doesn't build on Windows & no binaries on release page ThreadScope doesn't build on Windows Apr 6, 2020
@maoe
Copy link
Member

maoe commented Apr 6, 2020

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

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

No branches or pull requests

2 participants