Skip to content

ThreadScope doesn't build on Windows #97

Description

@HerbM
  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.

Activity

  1. maoe commented on Nov 29, 2019

    @maoe
    Member

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

  2. HerbM commented on Nov 30, 2019

    @HerbM
    Author

    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.

  3. maoe commented on Nov 30, 2019

    @maoe
    Member

    Do I need to add switches for more verbose output?

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

    Thanks.

  4. HerbM commented on Nov 30, 2019

    @HerbM
    Author

    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....

  5. maoe commented on Dec 2, 2019

    @maoe
    Member
    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?
  6. changed the title [-]ThreadScope doesn't build on Windows & no binaries on release page[/-] [+]ThreadScope doesn't build on Windows[/+] on Apr 6, 2020
  7. maoe commented on Apr 6, 2020

    @maoe
    Member

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

  8. added a commit that references this issue on May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions