-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Problem Installing GHC on Raspberry Pi 3 #31666
Comments
I was told to tag @peti on the IRC channel :) |
I am sorry, but we cannot bootstrap |
Thanks for the quick response, I will take a crack at it. I just wanted to make sure that it was not a solved problem. |
Upstream does seem to provide armv7 and aarch64 binary releases for 8.2.1: https://downloads.haskell.org/~ghc/8.2.1/. So I'd assume you'd need to create a |
@kalhauge Put the files in this gist in your You'll also need to copy/symlink the patch files referred to in The It's a bit hacky, but it does the trick. I've been building GHC for The bootstrap process will probably take ages on an RPi3, so be prepared to wait :) Also make sure you have plenty of disk space. Limitations/issues:
I only got this working as an overlay just yesterday -- previously, I was maintaining it as patches/my own fork against |
@dezgeg I was trying something similar yesterday, but I didn't get very far (master...kalhauge:ghc-on-arm) @dhess, Great work! Is there a reason you have not opened a pull request? |
@kalhauge There are some reasons why I think this isn't ready for a pull request in its current form, and I don't know how to address them. I outlined the problems with the current approach here: #19926 (comment), when I replied to an issue about needing more GHC binary derivations for faster GHC bootstrapping with an earlier version of this work. Most of the problems I outlined in that comment still apply to this overlay version. If someone can tell me how to fix/mitigate these limitations to ensure the work gets upstreamed, I'm happy to submit a PR, but I don't want to submit a PR in the current form because I expect that it would be rejected as-is. |
It seems like there is already a PR on this #29688, and it also includes bootstrapping for aarch64. @dhess, I tried your Gist, and it seems to work. You have to put the 8.0.2.nix and 8.0.1-binary.nix in another folder, as putting them directly in the overlays folder makes nix load them. This results in weird errors. I am currently confirming that all works by compiling everything, but it takes some time. |
@kalhauge Yes, sorry. In my overlays tree, those files are in a |
@dhess the build finally completed but it failed:
Any Idea why? |
@kalhauge No, but it's been awhile since I've built this on |
Sorry, still haven't had time to revisit this yet, but I will try again in the next few days. |
Thanks for still looking into it. In the meantime, I tried out #29688, but it too had problems.
|
@kalhauge Finally got around to looking into your issue. I'm building GHC 8.0.2 now for edit 1 It ran out of memory, but got well past the point where you had issues. Unfortunately, I'll have to up the swap and start over again, but I think it looks promising. edit 2 It finally built! It took about 12 hours and I had to bump the swap up to 4GB on my Jetson TX1 with 4GB RAM. Here is the output of Also, I've now published this overlay as part of https://github.com/quixoftic/quixops-modules. If you clone that repo somewhere and then point your overlays to the |
@dhess, Thanks! I'm building it now. edit: Same problem here.
Trying with 3 gb of swap! |
Hi @dhess, It totally worked. It did take around 10 days to compile but it actually worked. Big thanks from here! |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
@kalhauge seemed to solve the issue. |
Issue description
GHC does not install out of the box on raspberry pi 3 using the 'aarch64' platform.
Steps to reproduce
Install nixos on a raspberry pi using the description on the nixos, using the 'aarch64' version. And
upgrade to the newest version.
Set config.nix:
Then try to install:
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
The text was updated successfully, but these errors were encountered: