Closed Tener closed 11 years ago
It looks like upstream changes have broken things. Will will have to remove the -fPIC option somehow because that is not supported on android afaik.
Ah, too bad. The commit that introduces this error message is from Oct 2012: http://www.haskell.org/pipermail/cvs-ghc/2012-October/076730.html
The code in question is: https://github.com/ghc/ghc/blob/master/compiler/main/DynFlags.hs#L3429
To be honest I'm not sure it does the right thing - the code is hard to read and I dont know what which flag mean.
Perhaps it simply doesn't take Android into account?
My last successful build was on 7th March. So that can’t be it. I think Ian Lynagh's clean-up of the build system a couple weeks ago changed something.
Probably commit 84df08debf13562f8a1fc7cd59054aaa9c379294
https://github.com/ghc/ghc/commit/84df08debf13562f8a1fc7cd59054aaa9c379294
That was just a wild guess. What is your recommendation on how to get a working build?
You could try reverting https://github.com/neurocyte/ghc-android/commit/84df08debf13562f8a1fc7cd59054aaa9c379294
It didn't work unfortunately, nothing appear to have changed. I'll try with 7th March HEAD later.
Finally!
It took some nerves, but .... BUT ... it builds ... installs ... foreign-jni installs ... android-haskell-activity installs ... and works!!! Hooray!
My path to glory:
My greatest admiration to CJ!!!
Now it's time for me to step on the shoulder of giant and actually create something ... see you later.
I disabled dynamic linking in the build config, so it should work with the latest ghc head again (for now).
I tried to run ./build on my Arch Linux, x86-64 PC. Lots of things compile but now it's failing at this line:
The ghc-stage1 reports this information: