-
Notifications
You must be signed in to change notification settings - Fork 29
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
Use system linker on android #25
Comments
Does this mean that you can't cross compile packages like vector at all? Or is there a way to do it manually? |
@bendlas, I'm lost, how do you expect this to work? Are you running GHC on an ARM system? If not, how do you expect to link in ARM object files, static or dynamic? I think recent versions of vector specifically don't require dynamic code loading. |
@rwbarton it's been some time since I worked on this. I used a cross-compilation toolchain to compile and link for arm (there are tutorials on this). It mostly worked and even compiled simple binaries, but more complex examples hit the linker limitation of the GHC linker. I even found out about some plans to enable using the system (cross-compile-toolchain) linker for this, but IIRC @neurocyte wanted to hold off until some mainline work was finished. |
The issue just mentioned, Dependency on 'linear' introduces many more recursive dependencies, has status closed but is not resolved (since it is actually a ghc-android issue, probably this issue). We tried to compile the same code for iOS where we did not encounter this I do not know if this issue is relate, but @rwbarton raised is and seems to describe linker incapabilities on in the |
ghc-android builds with 'DYNAMIC_GHC_PROGRAMS = NO', hence uses GHCs builtin linker, whose arm support is inclomplete. This leads to error cases such as:
The text was updated successfully, but these errors were encountered: