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 fails to install on FreeBSD-13.2 "Unable to find a download for the requested version/distro" #834

Closed
abnerseth opened this issue May 31, 2023 · 7 comments

Comments

@abnerseth
Copy link

Hardware: Lenovo Thinkpad Yoga
Operating System: FreeBSD-13.2-RELEASE

cat ~/.ghcup/logs/ghcup.log
Debug: Identified platform as: FreeBSD, 13.2-RELEASE
Debug: last access was 6.174976388s ago, cache interval is 300s
Debug: Decoding yaml at : /home/me/.ghcup/cache/ghcup-0.0.7.yaml
Error: [GHCup-00010] Unable to find a download for the requested version/distro.
Error: Also check the logs in /home/me/.hgcup/logs

@hasufell
Copy link
Member

What version did you request?

@abnerseth
Copy link
Author

abnerseth commented May 31, 2023

What version did you request?

I used command:
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

Was I supposed to include another argument in the above command?

@hasufell
Copy link
Member

hasufell commented Jun 1, 2023

GHC has dropped explicit support for FreeBSD. New releases don't have upstream bindists. As such, I sometimes build GHC manually for FreeBSD, but that's cumbersome.

9.2.8 currently doesn't have a FreeBSD bindist and that's the version the script is trying to install.

You can direct it to install 9.2.7 instead:

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org |  BOOTSTRAP_HASKELL_GHC_VERSION=9.2.7 sh

Here's some info on FreeBSD revival:

Feel free to contact @arrowd if you want to push for better support.

@avysk
Copy link
Contributor

avysk commented Jun 4, 2023

Can I help somehow? I have FreeBSD 13.2 (both x64 and arm64) and reasonably good with computers. There are multiple unofficial bindists for FreeBSD but not 9.2.8 (shown by ghcup as "recommended") and not 9.6.2 ("latest"). I believe that all versions between are available.

@arrowd
Copy link

arrowd commented Jun 4, 2023

I have submitted 9.2.8 bindists yesterday: commercialhaskell/stackage-content@d9b4f54

@abnerseth
Copy link
Author

abnerseth commented Jun 4, 2023 via email

@hasufell
Copy link
Member

hasufell commented Jun 4, 2023

Well, ghcup doesn't use stacks metadata.

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

4 participants