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

[Gentoo GNU/Linux] Failed to merge the stable (3.4.1.0-r1) dev-haskell/cabal package #1496

Open
Shirumipi opened this issue Nov 2, 2023 · 5 comments

Comments

@Shirumipi
Copy link

I have the following error:

Could not load module ‘Data.Array’
It is a member of the hidden package ‘array-0.5.4.0’.

I tried to install the latest unstable version (3.6.3.0) and I was able to install it without any issue.

@hololeap
Copy link
Member

hololeap commented Nov 3, 2023

  1. What ghc version are you using?
  2. Are you using packages from the haskell overlay or the main gentoo tree?
  3. Please provide relevant build.log
  4. What reason do you need to use old dev-haskell/cabal?

@Shirumipi
Copy link
Author

  1. ghc version: 9.0.2-r4 (stable)
  2. The main Gentoo tree
  3. Build.log here: https://bpa.st/27IQ
  4. I don't know because it was pulled as a dependency ( I suppose) but I forgot which package brought it. By the way, I did not know that this cabal package was old.

@hololeap
Copy link
Member

hololeap commented Nov 4, 2023

Thanks for the explanation. This bug tracker is for the ::haskell overlay which has newer versions of dev-haskell/cabal, but it's fine that you reported here.

It looks like you're using ghc-9.2.*, although it's hard to tell from the build log. If you were using ghc-9.0.2-r4, it should trigger CABAL_CORE_LIB_GHC_PV which skips building Cabal and just uses the version bundled with GHC.

CABAL_CORE_LIB_GHC_PV="9.0.2"

Also, I see that in your build log that it is using a newer version of Cabal which comes bundled with ghc-9.2, which is more evidence that you're using a newer version of GHC than you specified.

* Using cabal-3.6.3.0

The best way to know for sure is to run:

/usr/bin/ghc --info

@hololeap
Copy link
Member

hololeap commented Nov 4, 2023

If you're using an ~arch version of GHC, I highly recommend adding all of dev-haskell/* to package.accept_keywords, as well as whatever "target" packages (e.g. pandoc, shellcheck) you plan on using:

echo 'dev-haskell/*' >> /etc/portage/package.accept_keywords/haskell
echo 'app-text/pandoc' >> /etc/portage/package.accept_keywords/haskell

(I recommend this in general because the stable versions are OLD)


Could not load module ‘Data.Array’
It is a member of the hidden package ‘array-0.5.4.0’.

This did actually uncover a bug, so thanks for reporting!

hololeap added a commit that referenced this issue Nov 4, 2023
The array package has been available via dev-lang/ghc for years but was
not included as a default for GHC_BOOTSTRAP_PKGS. This adds 'array' to
default_exposed_pkgs.

Reported-by: Shirumipi <https://github.com/Shirumipi>
Bug: #1496
See: 5cfaa84
Signed-off-by: hololeap <hololeap@protonmail.com>
@Shirumipi
Copy link
Author

Hi Hololeap,

Thanks a lot for your help!

In fact, as the stable version is bugged, I decided to merge the unstable one.
I will roll back to the next stable version.

Shiru

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

2 participants