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

What needs to be done to have ghc-vis running on newest GHC? #29

Open
EncodePanda opened this issue Nov 30, 2021 · 11 comments
Open

What needs to be done to have ghc-vis running on newest GHC? #29

EncodePanda opened this issue Nov 30, 2021 · 11 comments

Comments

@EncodePanda
Copy link

@def- what work do you think is needed to get this project up and running again?

@EncodePanda
Copy link
Author

In other words, how can we help? :)

@def-
Copy link
Owner

def- commented Nov 30, 2021

Since we are working with GHC internals ghc-vis and ghc-heap-view are prone to breaking often. I'll try to upgrade the dependencies in ghc-heap-view and ghc-vis and check where it fails. This should help for ghc-heap-view: nomeata/ghc-heap-view#36

@def-
Copy link
Owner

def- commented Nov 30, 2021

My Haskell foo is a bit rusty, is there an easy way to test cabal install . with the (unreleased) ghc-heap-view 0.6.3?

@Anton-Latukha
Copy link

Anton-Latukha commented Nov 30, 2021

Haskell-foo differs from Cabal-foo.

This should help:
haskell-nix/hnix@06b0fca#diff-b8ed06757045fac949c89f2139a862498ad2b6d1f82c61a31e7c91d6cf0eaa70

There hnix was patched so it would build cryptohash-sha512 dependency from particular git source.

@def-
Copy link
Owner

def- commented Nov 30, 2021

Now that ghc-heap-view is updated, I noticed one further dependency problem: gtk2hs/gtk2hs#309

@jwaldmann
Copy link

also, gtk2hs/svgcairo#14 ?

@def-
Copy link
Owner

def- commented Dec 4, 2021

Haven't gotten that far

@def-
Copy link
Owner

def- commented Nov 16, 2022

I have tried switching to gi-cairo instead of svgcairo. Now I'm running into the next problem:

Failed to build hashtables-1.3.1.
Build log (
/home/deen/.cabal/logs/ghc-9.0.2/hashtables-1.3.1-b18534b8e35d69179499dfbf94fca581c20ec0d1aec725813e429075202373a7.log
):
Configuring library for hashtables-1.3.1..
Preprocessing library for hashtables-1.3.1..
Building library for hashtables-1.3.1..
[ 1 of 12] Compiling Data.HashTable.Class ( src/Data/HashTable/Class.hs, dist/build/Data/HashTable/Class.o, dist/build/Data/HashTable/Class.dyn_o )

src/Data/HashTable/Class.hs:54:1: error:
    Could not find module ‘Data.Hashable’
    There are files missing in the ‘hashable-1.4.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
54 | import           Data.Hashable
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build hashtables-1.3.1 (which is required by ghc-vis-0.9.2).
See the build log above for details.

This seems to be an Arch Linux problem, I'm now trying with cabal build --ghc-options=-dynamic

@def-
Copy link
Owner

def- commented Nov 16, 2022

Failed to build haskell-gi-0.26.2. The failure occurred during the configure
step.
Build log (
/home/deen/.cabal/logs/ghc-9.0.2/haskell-gi-0.26.2-536188c901579b27a3ccfb812769db11726ed1d9d0076d1cae7e9cdf0e0f1a1f.log
):
[1 of 1] Compiling Main             ( /home/deen/git/ghc-vis/dist-newstyle/tmp/src-1938273/haskell-gi-0.26.2/dist/setup/setup.hs, /home/deen/git/ghc-vis/dist-newstyle/tmp/src-1938273/haskell-gi-0.26.2/dist/setup/Main.o )
Linking /home/deen/git/ghc-vis/dist-newstyle/tmp/src-1938273/haskell-gi-0.26.2/dist/setup/setup ...
Configuring haskell-gi-0.26.2...
setup: The pkg-config package 'gobject-introspection-1.0' version >=1.32 is
required but it could not be found.

cabal: Failed to build haskell-gi-0.26.2 (which is required by ghc-vis-0.9.2).
See the build log above for details.

Edit: Installed extra/gobject-introspection
Edit2: gi-cairo doesn't seem to contain everything we require, so this doesn't work.

@slyfox3
Copy link

slyfox3 commented Nov 17, 2022

Edit2: gi-cairo doesn't seem to contain everything we require, so this doesn't work.

What is missing? Does it make sense to create an issue there to accommodate our need?

@def-
Copy link
Owner

def- commented Nov 17, 2022

I didn't see anything related to svgcairo

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

5 participants