Skip to content

No setup information found for ghc-8.4.3 when not installed ncurses version 5 #4144

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

Closed
ncaq opened this issue Jul 10, 2018 · 9 comments
Closed

Comments

@ncaq
Copy link
Contributor

ncaq commented Jul 10, 2018

General summary/comments (optional)

User environment do not have ncurses 5.
But have ncurses 6.

So, [CompilerBuild] not include CompilerBuildStandard.
[CompilerBuild] is tinfo6 and ncurses6.

stack setup fails according to stack-setup-2.yaml.

Steps to reproduce

For example:

  1. Prepare an environment with ncurses version 6 instead of 5.(example Gentoo, Arch)
  2. Run command stack config set resolver lts.
  3. Make sure LTS is 12
  4. Run command stack blah.
packages: []
resolver: lts-12.0

Expected

stack setup install ghc 8.4.3.

Actual

% stack setup
Writing implicit global project config file to: /home/ncaq/.stack/global-project/stack.yaml
Note: You can change the snapshot via the resolver field there.
Using latest snapshot resolver: lts-12.0
Downloaded lts-12.0 build plan.
No setup information found for ghc-8.4.3 on your platform.
This probably means a GHC bindist has not yet been added for OS key 'linux64-ncurses6', 'linux64-tinfo6'.
Supported versions: ghc-7.8.4, ghc-7.10.2, ghc-7.10.3, ghc-8.0.1, ghc-8.0.2, ghc-8.2.1, ghc-8.2.2, ghc-8.4.1, ghc-8.4.2

Stack version

% stack --version
Version 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807 commits) x86_64 hpack-0.28.2

Method of installation

  • Official binary, downloaded from stackage.org or fpcomplete's package repository

Workaround

User install ncurses version 5.

Example, case Gentoo, write sys-libs/ncurses tinfo in package.use, sudo emerge ncurses:5.

@ncaq
Copy link
Contributor Author

ncaq commented Jul 10, 2018

This problem report on Reddit.
Arch Linux have problem too.

@ncaq
Copy link
Contributor Author

ncaq commented Jul 10, 2018

It is the following place of the source code that judges whether it is the standard environment.
stack/Setup.hs at 735240f5b99c343e5d86fa57db0893a3fd05f32a · commercialhaskell/stack

@borsboom
Copy link
Contributor

borsboom commented Jul 10, 2018

Unfortunately there has not yet been a fedora27 bindist released for ghc-8.4.3, which is needed to support distros with the newer libtinfo6. @bgamari, are there plans to build this like has been done for the previous ghc-8.4.* releases?

@wdanilo
Copy link

wdanilo commented Jul 10, 2018

The same problem on Gentoo. Just fyi.

@bgamari
Copy link

bgamari commented Jul 11, 2018 via email

@Kasama
Copy link

Kasama commented Jul 14, 2018

any news on this issue? Still experiencing it on Arch Linux

EDIT: installing aur/ncurses5-compat-libs solves the problem for now. So the problem is an incompatibility issue with ncurses 6

@bgamari
Copy link

bgamari commented Jul 14, 2018 via email

@borsboom
Copy link
Contributor

Thanks! I think once Stackage LTS 12 was released, which uses GHC 8.4.3, people really noticed that this bindist was missing.

I've added the metadata for this build to Stack's setup metadata, so Stack will now be able to find it on systems with libtinfo6/libncurses6.

@ncaq Please confirm that this works, and close the issue if so.

@ncaq
Copy link
Contributor Author

ncaq commented Jul 17, 2018

Great, I confirmed, I close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants