View previous topic :: View next topic |
Author |
Message |
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 104
|
Posted: Tue Sep 13, 2022 9:55 pm Post subject: Weird errors installing certain haskell packages |
|
|
Lately I haven't been able to rebuild or upgrade certain haskell packages. It gives an error such as this:
Code: | /var/tmp/portage/dev-haskell/xml-conduit-1.9.1.1/work/xml-conduit-1.9.1.1/Setup.hs:3:1: error:
Could not load module ‘Distribution.Extra.Doctest’
It is a member of the hidden package ‘cabal-doctest-1.0.9’.
You can run ‘:set -package cabal-doctest’ to expose it.
(Note: this unloads all the modules in the current scope.)
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
3 | import Distribution.Extra.Doctest (defaultMainWithDoctests)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* ERROR: dev-haskell/xml-conduit-1.9.1.1::haskell failed (configure phase):
* compiling /var/tmp/portage/dev-haskell/xml-conduit-1.9.1.1/work/xml-conduit-1.9.1.1/Setup.hs failed |
In this case, the "hidden package" is cabal-doctest and refers to Distribution.Extra.Doctest. But for other packages, a different "hidden package" and function gives the same error.
Tried haskell-updater, no luck.
Tried removing the packages, now I can't reinstall them.
I know nothing about Haskell, I just want to have Gifcurry installed on my system, which is now not installed because I can't re-install the necessary dependencies without these build errors happening.
Does anyone know what is causing this problem and how to fix it? |
|
Back to top |
|
|
etc404 n00b
Joined: 14 Sep 2022 Posts: 7 Location: New Mexico, USA
|
Posted: Wed Sep 14, 2022 8:10 pm Post subject: |
|
|
What happens when you try to reinstall those packages? Please attach the errors there are any. |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 104
|
Posted: Fri Sep 16, 2022 8:48 pm Post subject: |
|
|
etc404 wrote: | What happens when you try to reinstall those packages? Please attach the errors there are any. |
They've been removed and I'm trying to reinstall them. That is the error. |
|
Back to top |
|
|
etc404 n00b
Joined: 14 Sep 2022 Posts: 7 Location: New Mexico, USA
|
Posted: Fri Sep 16, 2022 9:20 pm Post subject: |
|
|
My apologies, I was asking what the output is when you try. |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 104
|
Posted: Fri Sep 16, 2022 10:06 pm Post subject: |
|
|
etc404 wrote: | My apologies, I was asking what the output is when you try. |
Here is another example error, when trying to build the haskell-gi package:
Code: | /var/tmp/portage/dev-haskell/haskell-gi-0.26.0/work/haskell-gi-0.26.0/Setup.hs:3:1: error:
Could not load module ‘Distribution.Extra.Doctest’
It is a member of the hidden package ‘cabal-doctest-1.0.9’.
You can run ‘:set -package cabal-doctest’ to expose it.
(Note: this unloads all the modules in the current scope.)
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
3 | import Distribution.Extra.Doctest (defaultMainWithDoctests)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* ERROR: dev-haskell/haskell-gi-0.26.0::haskell failed (configure phase):
* compiling /var/tmp/portage/dev-haskell/haskell-gi-0.26.0/work/haskell-gi-0.26.0/Setup.hs failed |
|
|
Back to top |
|
|
etc404 n00b
Joined: 14 Sep 2022 Posts: 7 Location: New Mexico, USA
|
Posted: Fri Sep 16, 2022 10:16 pm Post subject: |
|
|
Based on what's throwing the error, I would assume this is more an issue on the Haskell end than Gentoo. You did say lately, though; did you change anything in your setup recently? I'm assuming you already tried the command the error suggested, but I'm curious what it says when you do? |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 104
|
Posted: Sat Sep 17, 2022 1:02 pm Post subject: |
|
|
etc404 wrote: | Based on what's throwing the error, I would assume this is more an issue on the Haskell end than Gentoo. You did say lately, though; did you change anything in your setup recently? I'm assuming you already tried the command the error suggested, but I'm curious what it says when you do? |
I don't know anything about Haskell. How do I execute that command? |
|
Back to top |
|
|
etc404 n00b
Joined: 14 Sep 2022 Posts: 7 Location: New Mexico, USA
|
Posted: Sun Sep 18, 2022 3:21 pm Post subject: |
|
|
I'm not particularly experienced myself, but does running ghci and then running Code: | :set -package cabal-doctest | fix it? Theoretically it may work, but I'm not sure if haskell manages hidden packages globally or on a shell-by-shell basis. |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 104
|
Posted: Sun Sep 18, 2022 5:08 pm Post subject: |
|
|
etc404 wrote: | I'm not particularly experienced myself, but does running ghci and then running Code: | :set -package cabal-doctest | fix it? Theoretically it may work, but I'm not sure if haskell manages hidden packages globally or on a shell-by-shell basis. |
Doesn't work. |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 104
|
Posted: Wed Sep 21, 2022 11:28 pm Post subject: |
|
|
Thought I would try uninstalling everything Haskell related including the compiler and all dependencies, but when reinstalling gifcurry's dependencies I still have this "hidden package" error on dependencies such as (dev-haskell/)cairo and gi-glib. Some of these "hidden packages" include gtk2hs-buildtools and haskell-gi which have successfully been installed already.
Does anyone know how I can "unhide" these packages and install Gifcurry again? |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 104
|
Posted: Wed Sep 21, 2022 11:33 pm Post subject: |
|
|
I just noticed something when trying to install dev-haskell/cairo.
Code: | /usr/bin/ghc -hide-all-packages -package Cabal -package base -package binary -package bytestring -package containers -package deepseq -package directory -package exceptions -package filepath -package haskeline -package mtl -package parsec -package pretty -package process -package stm -package template-haskell -package terminfo -package text -package time -package transformers -package unix -package xhtml --make /var/tmp/portage/dev-haskell/cairo-0.13.8.1-r1/work/cairo-0.13.8.1/Setup.hs -j8 +RTS -A256M -qb0 -RTS -threaded -dynamic -o setup
[1 of 1] Compiling Main ( /var/tmp/portage/dev-haskell/cairo-0.13.8.1-r1/work/cairo-0.13.8.1/Setup.hs, /var/tmp/portage/dev-haskell/cairo-0.13.8.1-r1/work/cairo-0.13.8.1/Setup.o )
/var/tmp/portage/dev-haskell/cairo-0.13.8.1-r1/work/cairo-0.13.8.1/Setup.hs:5:1: error:
Could not load module ‘Gtk2HsSetup’
It is a member of the hidden package ‘gtk2hs-buildtools-0.13.8.3’.
You can run ‘:set -package gtk2hs-buildtools’ to expose it.
(Note: this unloads all the modules in the current scope.)
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
5 | import Gtk2HsSetup ( gtk2hsUserHooks ) |
This is probably failing because for some reason, gtk2hs-buildtools is not being included in the packages being passed to ghc. |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 104
|
Posted: Wed Sep 21, 2022 11:45 pm Post subject: |
|
|
I noticed this in the output of one of the failed packages:
Code: | * CHDEP: 'Cabal >= 1.24 && < 3.3' -> 'Cabal >= 1.24' |
I tried masking >=dev-haskell/cabal-3.3 but apparently it won't work because Gifcurry depends on the later version of cabal even though its dependencies might not? |
|
Back to top |
|
|
sadddc21 n00b
Joined: 28 Sep 2022 Posts: 1 Location: Turkey
|
Posted: Wed Sep 28, 2022 5:37 pm Post subject: |
|
|
I had the same problem while emerging dev-haskell/vector-0.12.3.1-r1 and I have just found the solution. According to wiki page about haskell, add this line to /etc/portage/package.accept_keywords and enable haskell repository then sync the repos and update the world. Good Luck |
|
Back to top |
|
|
redblade7 Tux's lil' helper
Joined: 11 Jan 2018 Posts: 104
|
Posted: Wed Sep 28, 2022 7:51 pm Post subject: |
|
|
sadddc21 wrote: | I had the same problem while emerging dev-haskell/vector-0.12.3.1-r1 and I have just found the solution. According to wiki page about haskell, add this line to /etc/portage/package.accept_keywords and enable haskell repository then sync the repos and update the world. Good Luck |
Already have that |
|
Back to top |
|
|
|