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

ghcup install ghc 8.0.2 fails on Github Actions #947

Open
robx opened this issue Dec 7, 2023 · 3 comments
Open

ghcup install ghc 8.0.2 fails on Github Actions #947

robx opened this issue Dec 7, 2023 · 3 comments

Comments

@robx
Copy link

robx commented Dec 7, 2023

The CI action on github.com/PostgREST/configurator-pg is failing to install ghc-8.0.2, and I'm a bit stuck figuring out why.

I hope it's appropriate to report this here, happy to take it elsewhere if preferable.

Debug results so far:

  • ghcup upgrade does nothing, already up-to-date
  • I dumped the log files; they end with
Info: Installing GHC (this may take a while)
Debug: Running sh with arguments ["./configure","--prefix=/usr/local/.ghcup/ghc/8.0.2"]
Debug: Running gmake with arguments ["DESTDIR=/usr/local/.ghcup/tmp/ghcup-60ce8deb918b9668","install"]
Error: (https://errors.haskell.org/messages/GHCup-00841) Process "gmake" with arguments ["DESTDIR=/usr/local/.ghcup/tmp/ghcup-60ce8deb918b9668",
                                "install"] failed with exit code 2.
  • gmake is available, version 4.3

More details:

@hasufell
Copy link
Member

hasufell commented Dec 7, 2023

/usr/local/.ghcup/tmp/ghcup-27aab4df8c9b048c/usr/local/.ghcup/ghc/8.0.2/lib/ghc-8.0.2/bin/ghc-pkg: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

Some distros dropped support for ncurses5, rendering old bindists broken.

Also see:

@robx
Copy link
Author

robx commented Dec 7, 2023

I see, thanks for the info! It's in the logs, too

/usr/local/.ghcup/tmp/ghcup-27aab4df8c9b048c/usr/local/.ghcup/ghc/8.0.2/lib/ghc-8.0.2/bin/ghc-pkg: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

In our case it's not critical for this to keep working, okay from my side to close this issue.

Do you think it'd be easy to improve error messages here to make it clearer what's going wrong? But between the log message and this issue, I should imagine it's possible for others to figure this out.

robx added a commit to PostgREST/configurator-pg that referenced this issue Dec 7, 2023
ghc-8.0.2 is no longer installable on current github base images, compare
haskell/ghcup-hs#947
@hasufell
Copy link
Member

Do you think it'd be easy to improve error messages here

That would mean we have to parse the output log. I'm not a fan, since it's very fuzzy.

Another solution is to be more verbose here:

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

2 participants