-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cross-compiling fails running generate_translations_header #3056
Comments
+cmake |
@danrmiller could you check if PR #3062 improves things when cross-compiling? |
I don't know what I need to do to differentiate between when the host tools are used and when the target tools are used. Are there CMake variables I need to use? Am I explaining the issue alright?
You can see the result here:
|
For the Win64 build, running generate_translations_header doesn't work in the current master branch (a529f0a):
but it works with PR #3062 :
So there is some improvement. For the android-armv7 build (with PR #3062), the message:
looks like a shell script error (I'm not sure what script would cause that). I think trying to run a binary compiled for the wrong architecture would print something like:
|
For the armv7 cross-compilation, if cmake peeks the armv7 toolchain instead of the x86_64 toolchain when configuring generate_translations_header because the
instead of
in the Makefile. @danrmiller What do you think? |
The monero-android-armv7 cross-compilation test in PR #3066 unsets the In https://build.getmonero.org/builders/monero-android-armv7/builds/1277/steps/compile/logs/stdio:
|
OK I can adjust the paths for the build job, but do you know for which tools? It seems this part is using /usr/bin/cc - gcc-5 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 and /usr/bin/as GNU assembler (GNU Binutils for Ubuntu) 2.26.1 for a target of `x86_64-linux-gnu' which I would think is what we want for the step building generate_translations_header. I'll look into it, but thanks, it seems like this will work. |
Do we have a solution for that: unrecognized option '--64' error? |
You need to make sure that the |
Thank you @danrmiller 👍 |
I'm sorry I didn't have a chance to look at it this weekend. I found this approach we can try: https://cmake.org/Wiki/CMake_Cross_Compiling#Using_executables_in_the_build_created_during_the_build |
Did anyone manage to solve this or is it still an issue, any workarounds/further insight would be much appreciated 🙂 |
Since #2934 I cannot cross-compile because the
generate_translations_header
command is built for the target and run on the host. How should we handle this? Is there a convention for this?I know @hyc cross-builds for ARM, and @MoroccanMalinois, so maybe they can help. Or @glv2 who wrote the change I refer to.
The text was updated successfully, but these errors were encountered: