-
Notifications
You must be signed in to change notification settings - Fork 36
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
stack build failure due to Base version. #114
Comments
gtk2hs doesn't support GHC 8.10.1 yet so threadscope cannot build with 8.10.1 unfortunately. Can you try with GHC 8.8.3? |
It doesn't build with 8.8.3. Looking on hackage Its hard to see a combination of threadscope and ghc versions that do work |
Could you please elaborate? What commands did you run on what platform and how did it fail etc? FYI the instructions to build threadscope are available at https://github.com/haskell/ThreadScope#building-from-source. Also the latest binaries are available at https://github.com/haskell/ThreadScope/releases/tag/v0.2.13 so you don't have to build it yourself unless you develop something in threadscope or to run it on a platform where a pre-built binary is unavailable.
Currently supported (tested) range is 8.2-8.8. This info is also available at https://matrix.hackage.haskell.org/#/package/threadscope, which is linked from https://hackage.haskell.org/package/threadscope. Search for 'Status'. The Haskell CI badge links to the matrix builder page.
You can propose such a feature at https://github.com/haskell/hackage-server. I'm in favor of making supported GHC range stand out more on Hackage. |
Thanks. I started a fresh build from the git repo and made more progress. Howeever it looks lie te core issue isn't threadscope per se but Gtk(glib)
I've tried both OSX an Ubuntu. I'm using ghc-8.8.3
thanks - David |
I see. That build failure is a known issue in gtk2hs. See gtk2hs/gtk2hs#291. Hopefully it'll be fixed upstream soon but for now you can install gcc using homebrew and use stack.osx.yaml to build the project. See the instructions I updated a few days ago.
That sounds great! |
After another ghc upgrade 8.10.4 I've run into different issues with stack build for Threadscope, this time tge culprit is libiconv -- While building package threadscope-0.2.14 (scroll up to its section to see the error) using: No iconv issues have been a known issue with ghc on OSX for a while. Unfortunately I found stack's output a bit cryptic its not clear what actions I can take - does anyone have any insight: |
A quick google search turned up commercialhaskell/stack#825, which looks quite similar. |
thank you for the suggestions However neither
* install ihaskell, nor
* add extra-lib-dir: to stack.yaml resolved the issue
*
*
* IIRC whenit last cropped up the solution ws to rebuild ghc and using
* config flags to set various iconv flags. However this is not an option for me at present due to various unrelated issues with building ghc. ore fundamentally it points as per the disussion to something fundamentally broke i the the build system.
thanks anyway.
*
…________________________________
From: Mitsutoshi Aoe <notifications@github.com>
Sent: 19 February 2021 15:49
To: haskell/ThreadScope <ThreadScope@noreply.github.com>
Cc: David Duke <D.J.Duke@leeds.ac.uk>; Author <author@noreply.github.com>
Subject: Re: [haskell/ThreadScope] stack build failure due to Base version. (#114)
stack --stack-yaml=stack.osx.yaml build works for me on Big Sur with stack 2.5.1.
A quick google search turned up commercialhaskell/stack#825<commercialhaskell/stack#825>, which looks quite similar.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#114 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADVIHP7GMU2ABX5OF6TZOB3S72B73ANCNFSM4NSMH6BQ>.
|
I have ghc 8.10.1 so surprised by:
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for Cabal-2.0.1.1:
containers-0.6.2.1 from stack configuration does not match >=0.4 && <0.6 (latest matching version is 0.5.11.0)
time-1.9.3 from stack configuration does not match >=1.4 && <1.9 (latest matching version is 1.8.0.4)
needed due to threadscope-0.2.13 -> Cabal-2.0.1.1
In the dependencies for gio-0.13.6.1:
gtk2hs-buildtools must match >=0.13.2.0 && <0.14, but the stack configuration has no specified version (latest matching version is 0.13.8.0)
needed due to threadscope-0.2.13 -> gio-0.13.6.1
In the dependencies for glib-0.13.7.1:
gtk2hs-buildtools must match >=0.13.2.0 && <0.14, but the stack configuration has no specified version (latest matching version is 0.13.8.0)
needed due to threadscope-0.2.13 -> glib-0.13.7.1
In the dependencies for gtk-0.15.4:
cairo must match >=0.13.0.0 && <0.14, but the stack configuration has no specified version (latest matching version is 0.13.8.0)
gtk2hs-buildtools must match >=0.13.2.0 && <0.14, but the stack configuration has no specified version (latest matching version is 0.13.8.0)
needed due to threadscope-0.2.13 -> gtk-0.15.4
In the dependencies for pango-0.13.6.1:
cairo must match >=0.13.0.0 && <0.14, but the stack configuration has no specified version (latest matching version is 0.13.8.0)
gtk2hs-buildtools must match >=0.13.2.0 && <0.14, but the stack configuration has no specified version (latest matching version is 0.13.8.0)
needed due to threadscope-0.2.13 -> pango-0.13.6.1
In the dependencies for process-1.4.3.0:
base-4.13.0.0 from stack configuration does not match >=4.4 && <4.11 (latest matching version is 4.10.1.0)
needed due to threadscope-0.2.13 -> process-1.4.3.0
In the dependencies for threadscope-0.2.13:
cairo must match <0.14, but the stack configuration has no specified version (latest matching version is 0.13.8.0)
needed since threadscope is a build target.
Some different approaches to resolving this:
Plan construction failed.
The text was updated successfully, but these errors were encountered: