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
Getting link error when compiling for aarch64-linux-android (File in wrong format) #2
Comments
This looks like it doesn't pick up the proper Could you post the full log with |
I guess I had toolchain-wrapper in the path before running the configure. Anyways I tried reinstalling it now and I'm still getting the same error magesh% aarch64-linux-android-cabal install tagged --allow-newer -v |
So this supposedly happens when trying to link two files built with different compilers. I’m still confused how this happened. Could you try building just a simple
Sorry for all the trouble :-( |
Simple Program compiles fine without any issue. magesh% cat Hello.hs sayHello :: String -> String magesh% aarch64-linux-android-ghc -staticlib Hello.hs -o Hello As far as cabal is concerned, I was playing with IOS Simulator version (x86_64-apple-ios) of previous build and it was working fine. Haven't checked with the latest build though in Mac |
So, it's somewhere with how cabal handles things (or potentially stale cabal left overs, somewhere?). On the other hand Anyway. Could you try building |
new-build is working fine. |
Good to know! Looking forward to the iOS report! |
I'm getting failure while trying to install zlib
Any idea about why this might be happening |
Do you have the |
Is it called zlib1g-dev in ubuntu. Because when I tried apt-get install libz-dev, I was getting
|
Ohh wait. I'm stupid. You are trying to cross compile to android, right? So installing it on your build systems doesn't help. The issue is that it can't find libz in the SDK. Does the Android NDK come with libz? Otherwise you might need to install it for android. |
Hi @angerman Ya I'm able get
|
Ahh the love those errors... looking at network.cabal,
if this was just However for configure we clearly need to pass |
How come this is working fine in x86_64-apple-ios version? |
Well, with However if the test binary is built for |
Does this mean we will face the same issue for aarch64-apple-ios build?
Getting the same error. Not sure even whether the way I'm passing the flag is correct |
Hmm... I'll have to dig into this, and won't have a chance before tomorrow. Maybe the |
Here I was trying to build the same set of dependencies for |
Could I ask you to open an issue with haskell/cabal regarding the ignorance of |
Done. |
I believe the core issue here is haskell/cabal#4939, as such unpacking / adding the dependency as a submodule should get you further for the time being. Sorry about that. |
when I tried to build for android using the following command
I'm gettinig following error
Any idea / suggestion to fix this error?
The text was updated successfully, but these errors were encountered: