-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Can't build GHC 8.4.2 for android #40194
Comments
I've just hit htis as well. |
@angerman Yea, it seems to happen on several cross targets. Not sure if it's all or only some. |
FWIW, I get exactly the same error if I switch to a git checkout at ghc/ghc@28595b7 rather than the source dist (though it required adding |
@ElvishJerricco right, but that is to be expected. The source dist is build from that commit. |
@ElvishJerricco did you by any chance try to build it outside of nix with the same result? |
@ElvishJerricco do you have a known good commit as close by as possbile? |
@angerman Sort of. But my process was designed to exactly mimic The nearest known good commit I can point you too is the revision that |
So we are essentially looking at something like this ghc/ghc@e1d4140...28595b7 |
|
Alright, so the ghcHEAD commit isn't in the 8.4.2 commit's history, so I had to work in a different pattern from their common ancestor.
ghc/ghc@595f60f is also broken in the same way, so the fix came on master (as an ancestor of ghc/ghc@e1d4140) after 8.4 was cut. Thus, I did a bisect on ghc/ghc@595f60f...e1d4140, and found ghc/ghc@1ecbe9c as the commit that fixed it.
So I guess this is no surprise :P |
Fixed by #40210. Thanks both of you!! |
Fix android prebuilt ghc [Fixes #40194]
Issue description
GHC 8.4.2 does not build for the android prebuilt cross compilation target. EDIT: Some further clarification, there are some commits on my https://github.com/ElvishJerricco/nixpkgs/tree/android-prebuilt-ghc branch necessary to even try this for android.
Steps to reproduce
Build log:
Technical details
The
integer-simple
build of the compiler is used because of a different issue withgmp
, which we can solve at a later date. I believe this is irrelevant to this issue.haskell.packages.integer-simple.ghcHEAD.ghc
builds fine. I had to bumpghcHEAD
because it was ironically behindghc842
. But it built fine both before and after this bump. So this may just be a problem with the source distribution of 8.4.2?Note that it doesn't even seem to try to build
ghc-cabal
before trying to build the boot libraries, unless you build with--cores 1
(my default is--cores 4
). Can't imagine why that would be. If you do build with--cores 1
, you get a different but seemingly related error:The text was updated successfully, but these errors were encountered: